From 7a4c92e7171d642a1e1fce324441710ad4d44ce9 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 19 May 2018 18:45:36 +0300 Subject: Change: use build graphs in build resources, instead of action list --- ick2/workapi_tests.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ick2/workapi_tests.py') 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', -- cgit v1.2.1