]> git.ipfire.org Git - thirdparty/bind9.git/commit
add unit test for plugin_register source param
authorColin Vidal <colin@isc.org>
Tue, 19 Aug 2025 12:45:56 +0000 (14:45 +0200)
committerColin Vidal <colin@isc.org>
Tue, 9 Sep 2025 07:42:34 +0000 (09:42 +0200)
commitced276b26614805b252e37a3b041bcb6bd09ab3f
tree1d35da8b3bf857991fd3999328a00f385a88eea4
parent260bbc24c941e2585e196bb91f3e810c52280e21
add unit test for plugin_register source param

Update the existing test's syncplugin plugin with a new parameter
indicating whether the plugin should be loaded in a view or a zone.
If it doesn't match where the plugin is actually loaded, it fails the
initialization. This covers the correctless of the `source` parameter of
`plugin_register` API.
bin/tests/system/hooks/conf/bad-topviewlevel.conf.j2
bin/tests/system/hooks/conf/good-toplevel.conf.j2
bin/tests/system/hooks/conf/good-viewlevel.conf.j2
bin/tests/system/hooks/conf/good-viewzonelevel.conf.j2
bin/tests/system/hooks/conf/good-zonelevel.conf.j2
bin/tests/system/hooks/driver/test-async.c
bin/tests/system/hooks/driver/test-syncplugin.c
bin/tests/system/hooks/ns2/named.conf.j2