Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve HeaderAssertions for specific tests [SPR-16285] #20832
While writing test assertions with
Testing media types
Testing for a missing header
I'd like to test that a response header is not present; with the current API, all methods test for the presence of a given header name. Adding a new method for that purpose could be useful.
Pinging rstoyanchev on this since we discussed that previously.
Referenced from: commits 6e587d5
Rossen Stoyanchev commented
For the Content-Type let's match to what we have in
For the header not present, perhaps something like
Brian Clozel commented
Your idea for Content-Type sounds good to me.