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

http language: body variable substitution #21

Closed
sassman opened this issue Jan 7, 2023 · 0 comments · Fixed by #24
Closed

http language: body variable substitution #21

sassman opened this issue Jan 7, 2023 · 0 comments · Fixed by #24
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@sassman
Copy link
Member

sassman commented Jan 7, 2023

Extension to the http language file format #5

A body can contain variables that should be processed as in the CLI.

Example

### Send request with 2 variables in request's body
POST https://httpbin.org/post
Content-Type: application/json

{
  "id": {{ id }},
  "user": "{{ username }}"
}
@sassman sassman added the enhancement New feature or request label Jan 7, 2023
@sassman sassman added this to the http language milestone Jan 7, 2023
@sassman sassman changed the title http-language: body variable substitution http language: body variable substitution Jan 7, 2023
@sassman sassman self-assigned this Jan 16, 2023
sassman added a commit that referenced this issue Jan 16, 2023
- introduce echo server behaviour to the testlib, to verify the variable substitution on the body

Signed-off-by: Sven Kanoldt <[email protected]>
sassman added a commit that referenced this issue Jan 16, 2023
- implement test case with payload that contains placeholders
- implement variable substitution on the body

Signed-off-by: Sven Kanoldt <[email protected]>
sassman added a commit that referenced this issue Jan 16, 2023
- closes #21 
- introduce echo server behaviour to the testlib, to verify the variable substitution on the body
- implement test case with payload that contains placeholders
- implement variable substitution on the body
- bump `env_logger` and `minijinja` versions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant