From 92e858914d1a3515ffa1017c5adaad3ef5d89f5b Mon Sep 17 00:00:00 2001 From: Matej Vasek Date: Mon, 17 May 2021 23:16:55 +0200 Subject: fix: response body of containers wait endpoint The `Error` part of response must be nil (or omitted) if no error occurred. Before this commit a zero value for the struct was returned. Signed-off-by: Matej Vasek --- test/apiv2/python/rest_api/test_v2_0_0_container.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/apiv2/python/rest_api') diff --git a/test/apiv2/python/rest_api/test_v2_0_0_container.py b/test/apiv2/python/rest_api/test_v2_0_0_container.py index 70c07d47f..ad096ed38 100644 --- a/test/apiv2/python/rest_api/test_v2_0_0_container.py +++ b/test/apiv2/python/rest_api/test_v2_0_0_container.py @@ -99,7 +99,7 @@ class ContainerTestCase(APITestCase): r = requests.post(self.podman_url + f"/v1.40/containers/{create['Id']}/wait") self.assertEqual(r.status_code, 200, r.text) wait = r.json() - self.assertEqual(wait["StatusCode"], 0, wait["Error"]["Message"]) + self.assertEqual(wait["StatusCode"], 0, wait["Error"]) prune = requests.post(self.podman_url + "/v1.40/containers/prune") self.assertEqual(prune.status_code, 200, prune.status_code) -- cgit v1.2.3-54-g00ecf