Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion to cookie's properties #499

Closed
righettod opened this issue Jan 27, 2022 · 2 comments
Closed

Assertion to cookie's properties #499

righettod opened this issue Jan 27, 2022 · 2 comments

Comments

@righettod
Copy link

Hi,

There is a keyword to access to a specific cookie's properties from a Set-Cookie response header ?

The goal is to be able to perform assertions on a issued cookie like for example the presence of the Secure, HttpOnly, SameSite attributes, for example, in a context of post deployment security validations.

I have read the documentation of the http executor but I only found access to headers.

I apologize in advance if I have missed the documentation part where it is described.

Thank you very much in advance 😃

@kevinramage
Copy link
Contributor

Hello,

You can find in attachment an example of header assertion.
test.txt

You can use this syntax to check an header: result.headers.set-cookie ShouldContainSubstring secure
Header key must be in lower case.

Regards,

@righettod
Copy link
Author

Thank you very much 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants