summaryrefslogtreecommitdiff
path: root/test/apiv2
diff options
context:
space:
mode:
authorcdoern <cbdoer23@g.holycross.edu>2021-05-30 11:18:19 -0400
committercdoern <cbdoer23@g.holycross.edu>2021-06-01 14:54:02 -0400
commit2cc4535e1fb8d6a18a4992e395ace21fefe22efe (patch)
tree676fef9ff5615e2d1b3105253b3c9622ed85e6d5 /test/apiv2
parenta6f0ac229f57c1ac93fe0604dd923f704e976d9a (diff)
downloadpodman-2cc4535e1fb8d6a18a4992e395ace21fefe22efe.tar.gz
podman-2cc4535e1fb8d6a18a4992e395ace21fefe22efe.tar.bz2
podman-2cc4535e1fb8d6a18a4992e395ace21fefe22efe.zip
added tests in python rest api
Signed-off-by: cdoern <cbdoer23@g.holycross.edu>
Diffstat (limited to 'test/apiv2')
-rw-r--r--test/apiv2/python/rest_api/test_v2_0_0_container.py4
1 files changed, 4 insertions, 0 deletions
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/{}")))