Commit 53fae232 authored by Daniele Venzano's avatar Daniele Venzano

Fix expected HTTP status

parent d3bef6da
......@@ -60,7 +60,7 @@ Where:
* ``application`` is the full ZApp JSON document, the application description
Will return a 201 HTTP status in case the JSON document passes validation, 400 otherwise.
Will return a 200 HTTP status in case the JSON document passes validation, 400 otherwise.
Execution endpoint
------------------
......
......@@ -85,7 +85,7 @@ class ZoeRestTestSuccess(unittest.TestCase):
data = json.loads(data_file.read())
req = requests.post(self.__class__.uri + 'zapp_validate', json={"application": data})
self.assertEqual(req.status_code, 201)
self.assertEqual(req.status_code, 200)
if __name__ == '__main__':
if len(sys.argv) > 1:
......
......@@ -38,7 +38,7 @@ class ZoeValidationAPI(ZoeAPIBase):
"application": application_description,
}
data_, status_code = self._rest_post('/zapp_validate', zapp)
if status_code != 201:
if status_code != 200:
return False
else:
return True
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment