diff options
author | Nicolas Vollmar <nvo@scaling.ch> | 2024-12-09 07:18:05 +0100 |
---|---|---|
committer | Nicolas Vollmar <nvo@scaling.ch> | 2024-12-09 07:18:05 +0100 |
commit | 1db8a48a8b9d1b7b125d9ca29cc4c48534640375 (patch) | |
tree | 468b9a74aef9c3ac83046a17d2eaa55ef5bf70b2 /smoketest | |
parent | f9ddf3f68f42080efc471e934d6bdaa1fec17459 (diff) | |
download | vyos-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-x | smoketest/scripts/cli/test_container.py | 3 |
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' |