Nothing Special   »   [go: up one dir, main page]

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

[Question] Is there a way to make authenticated integration tests ? #783

Closed
NathanNeves opened this issue Apr 2, 2024 · 1 comment
Closed

Comments

@NathanNeves
Copy link

Great tool!

Is there a way to test endpoints that require an authentication token? How can I authenticate and pass the authentication token to subsequent tests?

@NathanNeves NathanNeves changed the title [Question] There is a way to make authenticated integration tests [Question] Is there a way to make authenticated integration tests ? Apr 2, 2024
@yesnault
Copy link
Member
yesnault commented Apr 2, 2024

Hi, yes, it's possible as you can inject variable with value from a previous step. It really depends on your usecase, which executor, etc... If it's to test a http webapp, the executor http is ok to inject variable as header for example. And if an existing executor is not enough, you should be able to do what you want with the exec executor.

@yesnault yesnault closed this as completed Apr 2, 2024
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