ovh / venom

🐍 Manage and run your integration tests with efficiency - Venom run executors (script, HTTP Request, web, imap, etc... ) and assertions
Apache License 2.0
1.06k stars 144 forks source link

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

Closed NathanNeves closed 7 months ago

NathanNeves commented 8 months ago

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?

yesnault commented 7 months ago

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.