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 header option per request #3576

Merged

Conversation

theoforger
Copy link
Contributor

Closes #3575.

Description

This PR adds a header option to the hurl file's [Options] field, along with the integration test for this new feature.

Note

I also regenerated the grammar.md file using the latest build of fabricereix/grammar.

@theoforger theoforger force-pushed the 3575-header-option-per-request branch 2 times, most recently from 5c2c5eb to 9349ff3 Compare January 11, 2025 02:17
@jcamiel jcamiel self-requested a review January 11, 2025 08:26
Copy link
Collaborator

@jcamiel jcamiel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything is perfect @theoforger ! What we could do, in another PR, is adding a variable that will be used in the additional headers:

Command line:

$ hurl --header "test: from-cli" --variable my_header=from-var tests_ok/header_option.hurl

Hurl file:

...
# in the same request
[Options]
...
header: {{my_header}}

(no issue needed as it's just code improvement)

@jcamiel
Copy link
Collaborator

jcamiel commented Jan 11, 2025

/accept

@hurl-bot
Copy link
Collaborator

🕗 /accept is running, please wait for completion.

* Remove `cli-only`
* Add `header` in the `options` field
* Add integration test for header option
@hurl-bot
Copy link
Collaborator

🔨 Auto rebase from Orange-OpenSource/hurl/master succeeds, theoforger/hurl/3575-header-option-per-request now embeds these commits:

@hurl-bot
Copy link
Collaborator

🕗 /accept is still running, please wait for completion.

@hurl-bot hurl-bot force-pushed the 3575-header-option-per-request branch from 9349ff3 to 17d8dc5 Compare January 11, 2025 08:54
@hurl-bot
Copy link
Collaborator

✅ Pull request merged with fast forward by jcamiel..

# List of commits merged from theoforger/hurl/3575-header-option-per-request branch into Orange-OpenSource/hurl/master branch:

  • 17d8dc5 Add header option per request

@hurl-bot hurl-bot merged commit 17d8dc5 into Orange-OpenSource:master Jan 11, 2025
24 checks passed
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

Successfully merging this pull request may close these issues.

Add header option per request
3 participants