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

sub-render variables if they contain templates in SetVariableTask and HttpClientTask #344

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

mgor
Copy link
Collaborator

@mgor mgor commented Sep 12, 2024

this is needed when the value of a variable contains a template (string) that we want to be rendered., e.g.:

Given value for variable "template" is "file://./template.j2.xml"  # template.j2.xml itself contains templates, variable "template" is now the content of the file, hence unrendered

...

Given value for variable "payload" is "{{ template }}"  # this will, runtime render the template and save it in variable "payload"

don't touch global jinja2.filters.FILTERS when testing filters, and make sure to always remove any test filters during tests.

…nd `HttpClientTask`

don't touch global `jinja2.filters.FILTERS` when testing filters, and make sure to always remove any test filters during tests.
@mgor mgor requested a review from boffman September 12, 2024 15:32
@boffman boffman merged commit cd58490 into Biometria-se:main Sep 13, 2024
14 checks passed
@mgor mgor deleted the bug/http_render_text_source branch September 13, 2024 06:16
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.

2 participants