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

Add an integration test for --header option #3504

Open
jcamiel opened this issue Dec 8, 2024 · 1 comment
Open

Add an integration test for --header option #3504

jcamiel opened this issue Dec 8, 2024 · 1 comment
Assignees
Labels
good first issue Good for newcomers

Comments

@jcamiel
Copy link
Collaborator

jcamiel commented Dec 8, 2024

Add an integration test for --header with this file:

integration/hurl/tests_ok/add_header.hurl

GET http://localhost:8000/add-header-0
HTTP 200

GET http://localhost:8000/add-header-1
header-a: foo
HTTP 200

GET http://localhost:8000/add-header-2
header-b: bar
{"message":"hi!"}
HTTP 200

and the script file integration/hurl/tests_ok/add_header.sh

$ hurl --header 'header-b:baz" --header 'header-c:qux' add_header.hurl

The Flask file integration/hurl/tests_ok/add_header.py should have 3 endpoint add_header_0, add_header_1, add_header_2 that test request headers do contain the right headers.

@theoforger
Copy link
Contributor

@jcamiel I'll take this one. Might as well😆

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

No branches or pull requests

2 participants