From cb73ddf6bfbb3df6a4b7433d347947c9d993b117 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Mon, 27 Jan 2025 14:40:29 +0100 Subject: [PATCH] test: update unit test with DNS resolver operational data With support for dns resolver in place, the ietf-system output needs to be complemented with additional data collected from both the dnsmasq and openresolv subsystems. System date taken from 'client3' in the Infix DHCP server-subnets test. Signed-off-by: Joachim Wiberg --- test/case/statd/system/ietf-system.json | 21 +++++++++++++++++++ .../system/system/rootfs/etc/resolv.conf.head | 3 +++ .../system/system/run/+sbin+resolvconf_-l | 3 +++ 3 files changed, 27 insertions(+) create mode 100644 test/case/statd/system/system/rootfs/etc/resolv.conf.head create mode 100644 test/case/statd/system/system/run/+sbin+resolvconf_-l diff --git a/test/case/statd/system/ietf-system.json b/test/case/statd/system/ietf-system.json index f8e82eab..313356b3 100644 --- a/test/case/statd/system/ietf-system.json +++ b/test/case/statd/system/ietf-system.json @@ -93,6 +93,27 @@ } ] } + }, + "infix-system:dns-resolver": { + "options": { + "timeout": 3, + "attempts": 5 + }, + "server": [ + { + "address": "1.2.3.4", + "origin": "static" + }, + { + "address": "192.168.2.1", + "origin": "dhcp", + "interface": "e7" + } + ], + "search": [ + "example.com", + "kernelkit.org" + ] } } } diff --git a/test/case/statd/system/system/rootfs/etc/resolv.conf.head b/test/case/statd/system/system/rootfs/etc/resolv.conf.head new file mode 100644 index 00000000..92d3ceb7 --- /dev/null +++ b/test/case/statd/system/system/rootfs/etc/resolv.conf.head @@ -0,0 +1,3 @@ +options timeout:3 attempts:5 +search example.com kernelkit.org +nameserver 1.2.3.4 diff --git a/test/case/statd/system/system/run/+sbin+resolvconf_-l b/test/case/statd/system/system/run/+sbin+resolvconf_-l new file mode 100644 index 00000000..de95bfa9 --- /dev/null +++ b/test/case/statd/system/system/run/+sbin+resolvconf_-l @@ -0,0 +1,3 @@ +# resolv.conf from e7.conf +nameserver 192.168.2.1 # e7 +