From 59c0dc667eb4832f56578c0b4b4b901caab594f3 Mon Sep 17 00:00:00 2001 From: Vincent Francoise Date: Mon, 25 Jan 2016 15:56:18 +0100 Subject: [PATCH] Updated STARTING to TRIGGERED Following https://review.openstack.org/269700, we now have to make the same changes to the python-watcherclient project. Change-Id: I894508dc3b04dd0f24101c5dfb396116f41dc23f Related-Bug: #1533245 --- watcherclient/tests/v1/test_action_plan.py | 2 +- watcherclient/tests/v1/test_action_plan_shell.py | 2 +- watcherclient/v1/action_plan_shell.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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,