summaryrefslogtreecommitdiff
path: root/smoketest
diff options
context:
space:
mode:
authorNicolas Vollmar <nvo@scaling.ch>2024-12-09 07:18:05 +0100
committerNicolas Vollmar <nvo@scaling.ch>2024-12-09 07:18:05 +0100
commit1db8a48a8b9d1b7b125d9ca29cc4c48534640375 (patch)
tree468b9a74aef9c3ac83046a17d2eaa55ef5bf70b2 /smoketest
parentf9ddf3f68f42080efc471e934d6bdaa1fec17459 (diff)
downloadvyos-1x-1db8a48a8b9d1b7b125d9ca29cc4c48534640375.tar.gz
vyos-1x-1db8a48a8b9d1b7b125d9ca29cc4c48534640375.zip
T6927: adds option to set container name server
-add container check
Diffstat (limited to 'smoketest')
-rwxr-xr-xsmoketest/scripts/cli/test_container.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_container.py b/smoketest/scripts/cli/test_container.py
index db67add31..5d574ab7d 100755
--- a/smoketest/scripts/cli/test_container.py
+++ b/smoketest/scripts/cli/test_container.py
@@ -108,6 +108,9 @@ class TestContainer(VyOSUnitTestSHIM.TestCase):
n = cmd_to_json(f'sudo podman inspect {cont_name}')
self.assertEqual(n['HostConfig']['Dns'][0], name_server)
+ tmp = cmd(f'sudo podman exec -it {cont_name} cat /etc/resolv.conf')
+ self.assertIn(name_server, tmp)
+
def test_cpu_limit(self):
cont_name = 'c2'