bind9/bin
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
..
check Use EXIT_SUCCESS and EXIT_FAILURE 2024-08-06 15:19:06 +02:00
confgen Use EXIT_SUCCESS and EXIT_FAILURE 2024-08-06 15:19:06 +02:00
delv make "max_restarts" a configurable value 2024-08-07 15:36:15 -07:00
dig Correctly get final token 2024-10-18 02:10:39 +00:00
dnssec Remove 'statslock' from dnssec-signzone 2024-09-16 13:25:07 +10:00
named Don't create the HTTP server if libxml and libjson-c are unavailable 2024-09-12 03:27:43 +00:00
nsupdate Use EXIT_SUCCESS and EXIT_FAILURE 2024-08-06 15:19:06 +02:00
plugins Remove 'inst != NULL' from cleanup check in plugin_register 2023-04-05 10:27:52 +10:00
rndc Use EXIT_SUCCESS and EXIT_FAILURE 2024-08-06 15:19:06 +02:00
tests Support jinja2 templates in pytest runner 2024-10-31 14:01:12 +01:00
tools Change the NS_PER_SEC (and friends) from enum to static const 2024-08-19 15:32:03 +00:00
Makefile.am Remove native PKCS#11 support 2021-09-09 15:35:39 +02:00