-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Possibility to use lokal settings #682
Comments
can you submit a PR with a failing test that shows your desired expected verified file |
Hmm.. don't know if that would help. But they way that i have tried to setup my testsuite i get somthing like this:
The headers is gone.. Im using a webapplicationfactory to create a httpclient. |
sorry if you cant distill this down to a minimal repro that illustrates the problem, i dont think i can help |
Im using Verify.Http for my integrationtests using the webapplicationfactory framework.
Im building a fetered authentication application that uses jwt's.
Some of the endpoints relais heavly on headers and some less.
For example my login-endpoint sets a httponly jwt.
So I would like to have my test verify that the responsemessage contains headers like this, where the response headers clealy contains a "Set-Cookie":
When im doing
VerifyHttp.Initialize();
some converters is set on the globalVerifierSettings
which simplifies the headers.This means that when im trying to verify the response of my login endpoint, im left with a response that looks like this:
Some of my tests is okay with the simplyfied headers, but this means that i need a way to specify the simplicity of the headers.
So i wondering if it would be possibly to somehow specify how simple the headers should be?
And a side note.. it is pretty hard to use
ScrubLinesWithReplace
afterVerifyHttp.Initialize();
.I havent found a way to scrub the jwt, without ignoring the entire header.
Kind regards
The text was updated successfully, but these errors were encountered: