diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-05-19 18:45:36 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-05-19 22:58:43 +0300 |
commit | 7a4c92e7171d642a1e1fce324441710ad4d44ce9 (patch) | |
tree | 290526533839801bf060df347f8ee32232f3e1e5 /ick2/workapi_tests.py | |
parent | b11d31ef23c5dfee6bfa54afbec47fc8b8bab7b1 (diff) | |
download | ick2-7a4c92e7171d642a1e1fce324441710ad4d44ce9.tar.gz |
Change: use build graphs in build resources, instead of action list
Diffstat (limited to 'ick2/workapi_tests.py')
-rw-r--r-- | ick2/workapi_tests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ick2/workapi_tests.py b/ick2/workapi_tests.py index 05e91a0..b4d72a7 100644 --- a/ick2/workapi_tests.py +++ b/ick2/workapi_tests.py @@ -90,6 +90,7 @@ class WorkAPITests(unittest.TestCase): 'parameters': { 'foo': 'bar', }, + 'action_id': '1', 'step': { 'action': 'create_workspace', 'where': 'host', @@ -124,6 +125,7 @@ class WorkAPITests(unittest.TestCase): 'parameters': { 'foo': 'bar', }, + 'action_id': '1', 'step': { 'action': 'create_workspace', 'where': 'host', @@ -156,6 +158,7 @@ class WorkAPITests(unittest.TestCase): # We should get the next step now. got = work.get_work(claims=claims) + expected['action_id'] = '2' expected['step'] = {'shell': 'step-1', 'where': 'host'} self.assertEqual(got, expected) @@ -164,6 +167,7 @@ class WorkAPITests(unittest.TestCase): work.update_work(done) # We should get the next step now. + expected['action_id'] = '3' expected['step'] = {'shell': 'step-2', 'where': 'host'} self.assertEqual(work.get_work(claims=claims), expected) @@ -189,6 +193,7 @@ class WorkAPITests(unittest.TestCase): 'parameters': { 'foo': 'bar', }, + 'action_id': '1', 'step': { 'action': 'create_workspace', 'where': 'host', |