mirror of
https://github.com/containers/podman
synced 2024-10-21 01:34:37 +00:00
[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:
parent
7203e0a76a
commit
59283322e7
|
@ -38,7 +38,7 @@ func (s *APIServer) registerPodsHandlers(r *mux.Router) error {
|
|||
// schema:
|
||||
// $ref: "#/definitions/PodSpecGenerator"
|
||||
// responses:
|
||||
// 200:
|
||||
// 201:
|
||||
// schema:
|
||||
// $ref: "#/definitions/IdResponse"
|
||||
// 400:
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue