summaryrefslogtreecommitdiff
path: root/smoketest
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-12-31 23:25:36 +0100
committerChristian Poessinger <christian@poessinger.com>2023-01-02 07:21:58 +0100
commitb672b435eef2e47a7a730b34cbfb923230fd5251 (patch)
tree0a6140f5b0133580edfc34cf5a50531e98a6e975 /smoketest
parenta3ab7f00d5714973bb8f75ab84c1023371c77ee2 (diff)
downloadvyos-1x-b672b435eef2e47a7a730b34cbfb923230fd5251.tar.gz
vyos-1x-b672b435eef2e47a7a730b34cbfb923230fd5251.zip
smoketest: container: T578: adjust to podman 3.0.1 JSON output
The podman version used in VyOS 1.3 differs from the one used in VyOS 1.4 as it is currently not possible to build podman 4.2 for Debian Buster. Due to this restriction we need to adjust the handling of the JSON output when working with container networks.
Diffstat (limited to 'smoketest')
-rwxr-xr-xsmoketest/scripts/cli/test_container.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/smoketest/scripts/cli/test_container.py b/smoketest/scripts/cli/test_container.py
index 902156ee6..49978151c 100755
--- a/smoketest/scripts/cli/test_container.py
+++ b/smoketest/scripts/cli/test_container.py
@@ -102,7 +102,7 @@ class TestContainer(VyOSUnitTestSHIM.TestCase):
self.cli_commit()
n = cmd_to_json(f'sudo podman network inspect {net_name}')
- json_subnet = n['subnets'][0]['subnet']
+ json_subnet = n['plugins'][0]['ipam']['ranges'][0][0]['subnet']
c = cmd_to_json(f'sudo podman container inspect {cont_name}')
json_ip = c['NetworkSettings']['Networks'][net_name]['IPAddress']