Skip to content

Revisit HttpHeadersAssert API with more header-focused assertions #34168

@simonbasle

Description

@simonbasle

In 6.2.x, HttpHeadersAssert inherited AbstractMapAssert assertions. Since 7.0, HttpHeaders is no longer a Map and we should take that as an opportunity to introduce more header-focused assertions (potentially inspired by the Map ones).

In #33913, we already introduced the following:

  • containsOnlyHeaders
  • hasExactlyValues
  • hasExactlyValuesInAnyOrder

Some assertions that were ported over in #33913 might not be that relevant and should be re-evaluated as part of this effort:

  • size assertions between/lesser/greater
  • ...

Metadata

Metadata

Assignees

Labels

in: testIssues in the test moduletype: taskA general task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions