summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-06-10 13:07:38 +0200
committerGitHub <noreply@github.com>2024-06-10 13:07:38 +0200
commiteaf20bb54c62f0eff0879d538cc1e9c52cabf07a (patch)
tree8c3f8f5749417164618f6dc68968b92ed648b367 /smoketest/scripts/cli
parent82607438d6df5291c581d802c7a2a98eabe084ff (diff)
parentf030464952168b553b5b3e29b461d437c2642a9b (diff)
downloadvyos-1x-eaf20bb54c62f0eff0879d538cc1e9c52cabf07a.tar.gz
vyos-1x-eaf20bb54c62f0eff0879d538cc1e9c52cabf07a.zip
Merge pull request #3614 from nvollmar/T6219
T6219: Add support for container sysctl parameter
Diffstat (limited to 'smoketest/scripts/cli')
-rwxr-xr-xsmoketest/scripts/cli/test_container.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_container.py b/smoketest/scripts/cli/test_container.py
index 90f821c60..3dd97a175 100755
--- a/smoketest/scripts/cli/test_container.py
+++ b/smoketest/scripts/cli/test_container.py
@@ -80,6 +80,7 @@ class TestContainer(VyOSUnitTestSHIM.TestCase):
self.cli_set(base_path + ['name', cont_name, 'image', cont_image])
self.cli_set(base_path + ['name', cont_name, 'allow-host-networks'])
+ self.cli_set(base_path + ['name', cont_name, 'sysctl', 'parameter', 'kernel.msgmax', 'value', '4096'])
# commit changes
self.cli_commit()
@@ -91,6 +92,10 @@ class TestContainer(VyOSUnitTestSHIM.TestCase):
# Check for running process
self.assertEqual(process_named_running(PROCESS_NAME), pid)
+ # verify
+ tmp = cmd(f'sudo podman exec -it {cont_name} sysctl kernel.msgmax')
+ self.assertEqual(tmp, 'kernel.msgmax = 4096')
+
def test_cpu_limit(self):
cont_name = 'c2'