summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-04-12 16:17:22 +0200
committerGitHub <noreply@github.com>2021-04-12 16:17:22 +0200
commitbd3dcb9ec4d4b2d722e25a9d001c63474e54dd53 (patch)
tree848323c6b2eee2a998f48febdf2c398f15243ea0 /test
parent0ac73f25eb45611324f255b5222863b6ff0e8525 (diff)
parentd41c33eb91e6890de80826eba98dcc80e9e1994a (diff)
downloadpodman-bd3dcb9ec4d4b2d722e25a9d001c63474e54dd53.tar.gz
podman-bd3dcb9ec4d4b2d722e25a9d001c63474e54dd53.tar.bz2
podman-bd3dcb9ec4d4b2d722e25a9d001c63474e54dd53.zip
Merge pull request #9969 from jwhonce/wip/manifests
Update manifest API endpoints
Diffstat (limited to 'test')
-rw-r--r--test/apiv2/rest_api/test_rest_v2_0_0.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/apiv2/rest_api/test_rest_v2_0_0.py b/test/apiv2/rest_api/test_rest_v2_0_0.py
index e3874c182..97336cb71 100644
--- a/test/apiv2/rest_api/test_rest_v2_0_0.py
+++ b/test/apiv2/rest_api/test_rest_v2_0_0.py
@@ -727,10 +727,13 @@ class TestApi(unittest.TestCase):
start = json.loads(r.text)
self.assertGreater(len(start["Errs"]), 0, r.text)
+ def test_manifest_409(self):
+ r = requests.post(_url("/manifests/create"), params={"name": "ThisIsAnInvalidImage"})
+ self.assertEqual(r.status_code, 400, r.text)
+
def test_df(self):
r = requests.get(_url("/system/df"))
self.assertEqual(r.status_code, 200, r.text)
-
if __name__ == "__main__":
unittest.main()