diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-04-12 11:56:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-12 11:56:44 -0700 |
commit | d40c3076ac664b2510f4097d1ece7bca50ca3f83 (patch) | |
tree | beb2382c810fa2e52099ae6a2b0b85a3c2f79285 | |
parent | 7203e0a76a82e278b6a41e7a5851463a0b2f571e (diff) | |
parent | 59283322e755b5ab82cb4c6cff2ca60119aea711 (diff) | |
download | podman-d40c3076ac664b2510f4097d1ece7bca50ca3f83.tar.gz podman-d40c3076ac664b2510f4097d1ece7bca50ca3f83.tar.bz2 podman-d40c3076ac664b2510f4097d1ece7bca50ca3f83.zip |
Merge pull request #9999 from jwhonce/wip/swagger
[CI:DOCS] Correct status code for /pods/create
-rw-r--r-- | pkg/api/server/register_pods.go | 2 | ||||
-rw-r--r-- | test/apiv2/rest_api/test_rest_v2_0_0.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/pkg/api/server/register_pods.go b/pkg/api/server/register_pods.go index 5944b98fd..3bcc50ba4 100644 --- a/pkg/api/server/register_pods.go +++ b/pkg/api/server/register_pods.go @@ -38,7 +38,7 @@ func (s *APIServer) registerPodsHandlers(r *mux.Router) error { // schema: // $ref: "#/definitions/PodSpecGenerator" // responses: - // 200: + // 201: // schema: // $ref: "#/definitions/IdResponse" // 400: 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 97336cb71..bf0ee0603 100644 --- a/test/apiv2/rest_api/test_rest_v2_0_0.py +++ b/test/apiv2/rest_api/test_rest_v2_0_0.py @@ -735,5 +735,6 @@ class TestApi(unittest.TestCase): r = requests.get(_url("/system/df")) self.assertEqual(r.status_code, 200, r.text) + if __name__ == "__main__": unittest.main() |