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
This commit is contained in:
Vincent Francoise 2016-01-25 15:56:18 +01:00
parent dee7be63d9
commit 59c0dc667e
3 changed files with 3 additions and 3 deletions

View File

@ -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 = {

View File

@ -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)

View File

@ -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,