diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-06-01 19:49:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-01 19:49:15 -0400 |
commit | 1f3b13759fbfba118919c1809e0df0fc1646ab46 (patch) | |
tree | f4a76900791a945bc9163da5b7941ce6a9573f6a /test | |
parent | 24b364a230102acb8abdf5724c63153d50f03a6c (diff) | |
parent | 2cc4535e1fb8d6a18a4992e395ace21fefe22efe (diff) | |
download | podman-1f3b13759fbfba118919c1809e0df0fc1646ab46.tar.gz podman-1f3b13759fbfba118919c1809e0df0fc1646ab46.tar.bz2 podman-1f3b13759fbfba118919c1809e0df0fc1646ab46.zip |
Merge pull request #10517 from cdoern/master
API one-shot query implementation/handling
Diffstat (limited to 'test')
-rw-r--r-- | test/apiv2/python/rest_api/test_v2_0_0_container.py | 4 |
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/{}"))) |