diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-01-19 19:16:57 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-01-19 19:16:57 +0200 |
commit | 66fe1de8368ba7e754fa6dad798bf351f3c3bf93 (patch) | |
tree | e1e410beeaa3264212f2760debfbcfeebd46c50d /ick2/workapi_tests.py | |
parent | 3bc16ac24091009e73d9c4b9c2fbda0cdca6cff5 (diff) | |
download | ick2-66fe1de8368ba7e754fa6dad798bf351f3c3bf93.tar.gz |
Change: builds are now numbered foo/123, as are logs
Diffstat (limited to 'ick2/workapi_tests.py')
-rw-r--r-- | ick2/workapi_tests.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ick2/workapi_tests.py b/ick2/workapi_tests.py index 049e17c..fdfc601 100644 --- a/ick2/workapi_tests.py +++ b/ick2/workapi_tests.py @@ -79,7 +79,7 @@ class WorkAPITests(unittest.TestCase): self.create_worker_api() work = self.create_work_api() expected = { - 'build_id': 1, + 'build_id': 'foo/1', 'worker': 'asterix', 'project': 'foo', 'pipeline': 'build', @@ -89,7 +89,7 @@ class WorkAPITests(unittest.TestCase): 'step': { 'action': 'create_workspace', }, - 'log': '/logs/1', + 'log': '/logs/foo/1', } self.assertEqual(work.get_work('asterix'), expected) @@ -104,7 +104,7 @@ class WorkAPITests(unittest.TestCase): # Ask for some work. expected = { - 'build_id': 1, + 'build_id': 'foo/1', 'worker': 'asterix', 'project': 'foo', 'pipeline': 'build', @@ -114,13 +114,13 @@ class WorkAPITests(unittest.TestCase): 'step': { 'action': 'create_workspace', }, - 'log': '/logs/1', + 'log': '/logs/foo/1', } self.assertEqual(work.get_work('asterix'), expected) # Post a partial update. done = { - 'build_id': 1, + 'build_id': 'foo/1', 'worker': 'asterix', 'project': 'foo', 'pipeline': 'build', @@ -171,7 +171,7 @@ class WorkAPITests(unittest.TestCase): # Ask for some work. expected = { - 'build_id': 1, + 'build_id': 'foo/1', 'worker': 'asterix', 'project': 'foo', 'pipeline': 'build', @@ -181,13 +181,13 @@ class WorkAPITests(unittest.TestCase): 'step': { 'action': 'create_workspace', }, - 'log': '/logs/1', + 'log': '/logs/foo/1', } self.assertEqual(work.get_work('asterix'), expected) # Post a partial update. done = { - 'build_id': 1, + 'build_id': 'foo/1', 'worker': 'asterix', 'project': 'foo', 'pipeline': 'build', |