Headers
Background:
- Given I expect "
headers" to equal:Content-Type: text/plain Date: Fri, 31 Dec 1999 23:59:59 GMT Location: /here ETag: 68b329da9893e34099c7d8ad5cb9c940
Scenario: Header is missing in real payload
- Given the actual "
headers" equals:Content-Type: text/plain - When Gavel validates the HTTP message
- Then the actual HTTP message is NOT valid
- And the "
headers" is NOT valid
Scenario: Extra real header in real payload
- Given the actual "
headers" equals:Content-Type: text/plain Content-Length: 1354 Date: Fri, 31 Dec 1999 23:59:59 GMT Location: /here ETag: 68b329da9893e34099c7d8ad5cb9c940 - When Gavel validates the HTTP message
- Then the actual HTTP message is valid
- And the "
headers" is valid
Scenario: Content nogotiation significant header value is different in real payload
- Given the actual "
headers" equals:Content-Type: application/json Date: Fri, 31 Dec 1999 23:59:59 GMT Location: /here ETag: 68b329da9893e34099c7d8ad5cb9c940 - When Gavel validates the HTTP message
- Then the actual HTTP message is NOT valid
- And the "
headers" is NOT valid
Scenario: Content negotiation not significant header value is different in real payload
- Given the actual "
headers" equals:Content-Type: text/plain Date: Fri, 13 Dec 3000 23:59:59 GMT Location: /there ETag: something-completely-different - When Gavel validates the HTTP message
- Then the actual HTTP message is valid
- And the "
headers" is valid
Source: features/expectations/headers.feature at v4.1.0, Gavel (MIT license).