diff --git a/watcherclient/tests/v1/test_action_plan.py b/watcherclient/tests/v1/test_action_plan.py index 165a923..22831d8 100644 --- a/watcherclient/tests/v1/test_action_plan.py +++ b/watcherclient/tests/v1/test_action_plan.py @@ -38,7 +38,7 @@ ACTION_PLAN2 = { } UPDATED_ACTION_PLAN = copy.deepcopy(ACTION_PLAN1) -NEW_STATE = 'STARTING' +NEW_STATE = 'TRIGGERED' UPDATED_ACTION_PLAN['state'] = NEW_STATE fake_responses = { diff --git a/watcherclient/tests/v1/test_action_plan_shell.py b/watcherclient/tests/v1/test_action_plan_shell.py index f667f91..75eb8ac 100644 --- a/watcherclient/tests/v1/test_action_plan_shell.py +++ b/watcherclient/tests/v1/test_action_plan_shell.py @@ -137,7 +137,7 @@ class ActionPlanShellTest(utils.BaseTestCase): ap_shell.do_action_plan_start(client_mock, args) patch = commonutils.args_array_to_patch( - 'replace', ['state=STARTING']) + 'replace', ['state=TRIGGERED']) client_mock.action_plan.update.assert_called_once_with( 'a5199d0e-0702-4613-9234-5ae2af8dafea', patch) diff --git a/watcherclient/v1/action_plan_shell.py b/watcherclient/v1/action_plan_shell.py index 878a225..e889adc 100644 --- a/watcherclient/v1/action_plan_shell.py +++ b/watcherclient/v1/action_plan_shell.py @@ -145,7 +145,7 @@ def do_action_plan_start(cc, args): action_plan_uuid = getattr(args, 'action-plan') if uuidutils.is_uuid_like(action_plan_uuid): args.op = 'replace' - args.attributes = [['state=STARTING']] + args.attributes = [['state=TRIGGERED']] patch = utils.args_array_to_patch( args.op,