From: Jakub Ružička Date: Wed, 6 Jan 2021 16:58:40 +0000 (+0100) Subject: distro/tests: add dnstap test X-Git-Tag: v5.3.0~18^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44db9911dc8e97f5f6a447c8abfe6559b197e3ea;p=thirdparty%2Fknot-resolver.git distro/tests: add dnstap test --- diff --git a/distro/tests/ansible-roles/knot_resolver/tasks/configure_dnstap.yaml b/distro/tests/ansible-roles/knot_resolver/tasks/configure_dnstap.yaml new file mode 100644 index 000000000..817b1179d --- /dev/null +++ b/distro/tests/ansible-roles/knot_resolver/tasks/configure_dnstap.yaml @@ -0,0 +1,10 @@ +--- +# SPDX-License-Identifier: GPL-3.0-or-later +- name: dnstap_config set up kresd.conf + blockinfile: + marker: -- {mark} ANSIBLE MANAGED BLOCK + block: | + modules.load('dnstap') + assert(dnstap) + path: /etc/knot-resolver/kresd.conf + insertbefore: BOF diff --git a/distro/tests/ansible-roles/knot_resolver/tasks/main.yaml b/distro/tests/ansible-roles/knot_resolver/tasks/main.yaml index d99ff3c53..921df1b1b 100644 --- a/distro/tests/ansible-roles/knot_resolver/tasks/main.yaml +++ b/distro/tests/ansible-roles/knot_resolver/tasks/main.yaml @@ -46,6 +46,16 @@ - include: test_doh.yaml when: distro in ["Fedora", "Debian", "CentOS"] or (distro == "Ubuntu" and ansible_distribution_major_version|int >= 18) + - name: Test dnstap module + block: + - name: Install knot-resolver-module-dnstap + package: + name: knot-resolver-module-dnstap + state: latest + - include: configure_dnstap.yaml + - include: restart_kresd.yaml + when: distro in ["Fedora", "Debian", "CentOS", "Ubuntu"] + always: - name: Get installed package version