Implement /launch endpoint on job template

Partial implementation of:

https://trello.com/c/7uXHs7ze/14-require-admin-to-be-able-to-run-a-job-without-a-job-template
This commit is contained in:
Matthew Jones
2014-09-04 13:25:21 -04:00
parent e48309b6aa
commit 58b71ca9f9
6 changed files with 85 additions and 1 deletions

View File

@@ -302,7 +302,7 @@ class BaseTestMixin(object):
self.assertFalse(response.content)
#if return_response_object:
# return response
if response.status_code not in [ 202, 204, 405 ] and method_name != 'head' and response.content:
if response.status_code not in [ 204, 405 ] and method_name != 'head' and response.content:
# no JSON responses in these at least for now, 409 should probably return some (FIXME)
if response['Content-Type'].startswith('application/json'):
obj = json.loads(response.content)