Rename TRIGGERED state as PENDING

Following the change in Watcher, this patchset updates the
Watcher CLI to support this change. Also it updates README.rst
to pass python 3.4 ascii-tests.

Change-Id: Idfcf99ee3d6b5b7342f1bbc4f726e6edd82fc77c
Closes-Bug: #1548377
Related-Bug: #1554347
This commit is contained in:
Alexander Chadin 2016-03-21 13:39:56 +03:00 committed by Vincent Françoise
parent 15511203d8
commit 3640fc4a0b
4 changed files with 5 additions and 5 deletions

View File

@ -6,12 +6,12 @@ Client for resource optimization service for OpenStack.
OpenStack Watcher provides a flexible and scalable resource optimization
service for multi-tenant OpenStack-based clouds.
Watcher provides a complete optimization loopincluding everything from a
Watcher provides a complete optimization loop-including everything from a
metrics receiver, complex event processor and profiler, optimization processor
and an action plan applier. This provides a robust framework to realize a wide
range of cloud optimization goals, including the reduction of data center
operating costs, increased system performance via intelligent virtual machine
migration, increased energy efficiencyand more!
migration, increased energy efficiency-and more!
* Free software: Apache license
* Wiki: http://wiki.openstack.org/wiki/Watcher

View File

@ -38,7 +38,7 @@ ACTION_PLAN2 = {
}
UPDATED_ACTION_PLAN = copy.deepcopy(ACTION_PLAN1)
NEW_STATE = 'TRIGGERED'
NEW_STATE = 'PENDING'
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=TRIGGERED'])
'replace', ['state=PENDING'])
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=TRIGGERED']]
args.attributes = [['state=PENDING']]
patch = utils.args_array_to_patch(
args.op,