bind9/bin/tests
Nicki Křížek 89866d148a Support jinja2 templates in pytest runner
Configuration files in system tests which require some variables (e.g.
port numbers) filled in during test setup, can now use jinja2 templates
when `jinja2` python package is available.

Any `*.j2` file found within the system test directory will be
automatically rendered with the environment variables into a file
without the `.j2` extension by the pytest runner. E.g.
`ns1/named.conf.j2` will become `ns1/named.conf` during test setup. To
avoid automatic rendering, use `.j2.manual` extension and render the
files manually at test time.

New `templates` pytest fixture has been added. Its `render()` function
can be used to render a template with custom test variables. This can be
useful to fill in different config options during the test. With
advanced jinja2 template syntax, it can also be used to include/omit
entire sections of the config file rather than using `named1.conf.in`,
`named2.conf.in` etc.

(cherry picked from commit 60e118c4fb)
2024-10-31 14:01:12 +01:00
..
startperf Reformat shell scripts with shfmt 2023-10-26 13:05:00 +02:00
system Support jinja2 templates in pytest runner 2024-10-31 14:01:12 +01:00
testdata/wire move all optional tests from bin/tests to bin/tests/optional 2018-03-09 14:12:47 -08:00
.gitignore Refactor TLSDNS module to work with libuv/ssl directly 2021-01-25 09:19:22 +01:00
convert-trs-to-junit.py Use python3 in shebang lines for util scripts 2024-08-14 15:43:39 +00:00
Makefile.am Fix JUnit test status generator for out-of-tree system tests 2022-09-22 16:17:25 +02:00
test_client.c Use EXIT_SUCCESS and EXIT_FAILURE 2024-08-06 15:19:06 +02:00
test_server.c Use EXIT_SUCCESS and EXIT_FAILURE 2024-08-06 15:19:06 +02:00
wire_test.c Use EXIT_SUCCESS and EXIT_FAILURE 2024-08-06 15:19:06 +02:00