From 8fa7fb13ecf7032767e53ebe23f73d55f14d34c4 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Fri, 2 Oct 2026 12:46:55 +0200 Subject: [PATCH] test/python/docker: fix swagger check The moby swagger.yaml was changed to quote HTTP status codes as string as part of moby commit 79658025a2fd. Thus fix the key lookup here to use a string as well. Signed-off-by: Paul Holzinger --- test/python/docker/compat/test_containers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/python/docker/compat/test_containers.py b/test/python/docker/compat/test_containers.py index 57cd61867f..67f5d6357b 100644 --- a/test/python/docker/compat/test_containers.py +++ b/test/python/docker/compat/test_containers.py @@ -318,7 +318,7 @@ class TestContainers(common.DockerTestCase): try: spec = yaml.load(open("vendor/github.com/moby/moby/api/swagger.yaml").read(), Loader=yaml.Loader) ctr_inspect = json.loads(self.podman.run("inspect", ctr.id).stdout)[0] - schema = spec['paths']["/containers/{id}/json"]["get"]['responses'][200]['schema'] + schema = spec['paths']["/containers/{id}/json"]["get"]['responses']['200']['schema'] schema["definitions"] = spec["definitions"] OAS31Validator.check_schema(schema)