[CI:DOCS] Correct status code for /pods/create

Swagger documentation reported that the API endpoint /pods/create
returned 200 while the as-built code returned 201. 201 is more
correct so documentation updated.

Tests already checked for 201 so no updated needed.

Signed-off-by: Jhon Honce <jhonce@redhat.com>
This commit is contained in:
Jhon Honce 2021-04-12 09:33:51 -07:00
parent 7203e0a76a
commit 59283322e7
2 changed files with 2 additions and 1 deletions

View file

@ -38,7 +38,7 @@ func (s *APIServer) registerPodsHandlers(r *mux.Router) error {
// schema:
// $ref: "#/definitions/PodSpecGenerator"
// responses:
// 200:
// 201:
// schema:
// $ref: "#/definitions/IdResponse"
// 400:

View file

@ -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()