Skip to content

Explicitly test for header presence/absence in router_check_tool #10229

@kb000

Description

@kb000

Title: Router check tool could check for absence or presence of a header, regardless of header value.

Description:
router_check_tool can verify HTTP header values, but not explicitly test for http header absence. There's a workaround to test for empty value string, which is nearly but not quite the same thing.
Adding present: true/false to the request_header_fields and response_header_fields would allow for testing for value-agnostic presence of a header, and for explicit absence of a header.

validate:
  response_header_fields:
    - key: content-length
      present: true
validate:
  response_header_fields:
    - key: x-ride-corp-internal
      present: false

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions