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
[Bug]: Check "Location" does not check properly #130
Comments
Thanks for leaving the issue and sorry for the wait. Will be investigating tomorrow |
Wanted to come back to this. There's no |
I'm sorry, my example was buggy. Correct code for the check would be
I'm not sure why I posted this, must have been copying from a wrong file. |
Are you sure https://httpbin.org/redirect-to?url=/foo&status_code=301 has a Location header? |
This is the response I get when I request it with my regular http client
|
Are you sure you are using the correct URL?
|
Have you tried checking redirects using https://docs.stepci.com/reference/workflow-syntax.html#tests-test-steps-step-http-check-redirects Example for your case would be: check:
redirects:
- foo/ or check:
redirects:
- https://httpbin.org/foo/ |
Thanks for your hint! I revisited my testcase:
this is the result
So it seems to me, that the To come back to the original topic of this issue:
This check should fail, cause the header |
Hey Sven, /foo/ matches /foo Here's what you could have done: Location: /foo/ Matches regex /foo/ Location:
eq: /foo/ Equality comparison (==) |
What happened?
Given a call to httpbin.org, which returns a redirect to
/foo
:Both steps pass:
What did you expect to happen?
I'd expect, that the first step would pass, second test would fail.
/foo and /foo/ is clearly not the same URL.
Version
2.6.6
Environment
v19.8.1
How can we reproduce this bug?
No response
Relevant log output
No response
Would you be interested in working on a bugfix for this issue?
The text was updated successfully, but these errors were encountered: