diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-04-23 13:27:22 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-04-23 15:21:39 +0300 |
commit | 9d4e01e2df83a108c2c44cc4471666b5cecf4c36 (patch) | |
tree | 272049de3e1e30f67aee4ce6304c92e349bccea0 /ick2/workapi_tests.py | |
parent | de851333b5a0c90aa8cb7fb75e188b9e391b582d (diff) | |
download | ick2-9d4e01e2df83a108c2c44cc4471666b5cecf4c36.tar.gz |
Change: all actions must have a "where"
Diffstat (limited to 'ick2/workapi_tests.py')
-rw-r--r-- | ick2/workapi_tests.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ick2/workapi_tests.py b/ick2/workapi_tests.py index 92d34e5..d2d9df6 100644 --- a/ick2/workapi_tests.py +++ b/ick2/workapi_tests.py @@ -37,8 +37,8 @@ class WorkAPITests(unittest.TestCase): pipeline = { 'pipeline': 'build', 'actions': [ - {'shell': 'step-1'}, - {'shell': 'step-2'}, + {'shell': 'step-1', 'where': 'host'}, + {'shell': 'step-2', 'where': 'host'}, ], } @@ -88,6 +88,7 @@ class WorkAPITests(unittest.TestCase): }, 'step': { 'action': 'create_workspace', + 'where': 'host', }, 'log': '/logs/foo/1', } @@ -113,6 +114,7 @@ class WorkAPITests(unittest.TestCase): }, 'step': { 'action': 'create_workspace', + 'where': 'host', }, 'log': '/logs/foo/1', } @@ -139,7 +141,7 @@ class WorkAPITests(unittest.TestCase): work.update_work(done) # We should get the next step now. - expected['step'] = {'shell': 'step-1'} + expected['step'] = {'shell': 'step-1', 'where': 'host'} self.assertEqual(work.get_work('asterix'), expected) # Finish the step. @@ -147,7 +149,7 @@ class WorkAPITests(unittest.TestCase): work.update_work(done) # We should get the next step now. - expected['step'] = {'shell': 'step-2'} + expected['step'] = {'shell': 'step-2', 'where': 'host'} self.assertEqual(work.get_work('asterix'), expected) # Finish the step. @@ -179,6 +181,7 @@ class WorkAPITests(unittest.TestCase): }, 'step': { 'action': 'create_workspace', + 'where': 'host', }, 'log': '/logs/foo/1', } |