Skip to content
Permalink
Browse files

Log instances on test failure (#1144)

  • Loading branch information...
pschorf authored and dposada committed May 14, 2019
1 parent 7bff1b1 commit 137dbb39cf8219610926d22dca21fe933978f4e5
Showing with 2 additions and 2 deletions.
  1. +2 −2 integration/tests/cook/test_basic.py
@@ -280,7 +280,7 @@ def test_failing_submit(self):
job_uuid, resp = util.submit_job(self.cook_url, command='exit 1', executor=job_executor_type)
self.assertEqual(201, resp.status_code, msg=resp.content)
job = util.wait_for_job(self.cook_url, job_uuid, 'completed')
self.assertEqual(1, len(job['instances']))
self.assertEqual(1, len(job['instances']), job['instances'])
instance = job['instances'][0]
message = json.dumps(instance, sort_keys=True)
self.assertEqual('failed', instance['status'], message)
@@ -400,7 +400,7 @@ def test_multiple_progress_updates_submit_stdout(self):
job_uuid, resp = util.submit_job(self.cook_url, command=command, executor=job_executor_type, max_runtime=60000)
self.assertEqual(201, resp.status_code, msg=resp.content)
job = util.wait_for_job(self.cook_url, job_uuid, 'completed')
self.assertEqual(1, len(job['instances']))
self.assertEqual(1, len(job['instances']), job['instances'])
message = json.dumps(job['instances'][0], sort_keys=True)
self.assertEqual('success', job['instances'][0]['status'], message)

0 comments on commit 137dbb3

Please sign in to comment.
You can’t perform that action at this time.