From 2cc4535e1fb8d6a18a4992e395ace21fefe22efe Mon Sep 17 00:00:00 2001 From: cdoern Date: Sun, 30 May 2021 11:18:19 -0400 Subject: added tests in python rest api Signed-off-by: cdoern --- test/apiv2/python/rest_api/test_v2_0_0_container.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/apiv2/python') 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 ad096ed38..f67013117 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 @@ -30,6 +30,10 @@ class ContainerTestCase(APITestCase): self.assertIn(r.status_code, (200, 409), r.text) if r.status_code == 200: self.assertId(r.content) + r = requests.get(self.uri(self.resolve_container("/containers/{}/stats?stream=false&one-shot=true"))) + self.assertIn(r.status_code, (200, 409), r.text) + if r.status_code == 200: + self.assertId(r.content) def test_delete(self): r = requests.delete(self.uri(self.resolve_container("/containers/{}"))) -- cgit v1.2.3-54-g00ecf