diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-12-31 23:25:36 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2023-01-02 07:21:58 +0100 |
commit | b672b435eef2e47a7a730b34cbfb923230fd5251 (patch) | |
tree | 0a6140f5b0133580edfc34cf5a50531e98a6e975 /smoketest/scripts | |
parent | a3ab7f00d5714973bb8f75ab84c1023371c77ee2 (diff) | |
download | vyos-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/scripts')
-rwxr-xr-x | smoketest/scripts/cli/test_container.py | 2 |
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'] |