Skip to content

Case insensitive assert #801

Closed Answered by ivan-velasco
AviranAbady asked this question in Q&A
Discussion options

You must be logged in to vote

@AviranAbady You could introduce a new assertion to handle the changing characters. Here's an approach if you know which characters will change:

  assertions:
    - result.statuscode ShouldEqual 200
    - result.headers.Strict-Transport-Security ShouldNotBeNil
    - or:
      - result.headers.Strict-Transport-Security ShouldEqual "max-age=31536000; includeSubDomains"
      - result.headers.Strict-Transport-Security ShouldEqual "Max-age=31536000; IncludeSubDomains"

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AviranAbady
Comment options

Answer selected by AviranAbady
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants