Renamed 'TRIGGERED' state to 'PENDING'

Following the change in Watcher, this patchset updates the
Watcher Dashboard to support this change.

Change-Id: I3be475d3659dea2d427ffe3906637ddfbdd716c3
Closes-Bug: #1548377
This commit is contained in:
Vincent Francoise 2016-03-10 10:40:28 +01:00
parent b4fb6f7573
commit 893bbd7a52
2 changed files with 3 additions and 3 deletions

View File

@ -343,7 +343,7 @@ class ActionPlan(base.APIResourceWrapper):
:type action_plan_id: int :type action_plan_id: int
""" """
patch = [] patch = []
patch.append({'op': 'replace', 'path': '/state', 'value': 'TRIGGERED'}) patch.append({'op': 'replace', 'path': '/state', 'value': 'PENDING'})
watcherclient(request).action_plan.update(action_plan_id, patch) watcherclient(request).action_plan.update(action_plan_id, patch)
@property @property
@ -422,7 +422,7 @@ class Action(base.APIResourceWrapper):
:type action_id: int :type action_id: int
""" """
patch = [] patch = []
patch.append({'op': 'replace', 'path': '/state', 'value': 'TRIGGERED'}) patch.append({'op': 'replace', 'path': '/state', 'value': 'PENDING'})
watcherclient(request).action.update(action_id, patch) watcherclient(request).action.update(action_id, patch)
@property @property

View File

@ -207,7 +207,7 @@ class WatcherAPITests(test.APITestCase):
def test_action_plan_start(self): def test_action_plan_start(self):
action_plan_id = self.api_action_plans.first()['id'] action_plan_id = self.api_action_plans.first()['id']
patch = [] patch = []
patch.append({'path': '/state', 'value': 'TRIGGERED', 'op': 'replace'}) patch.append({'path': '/state', 'value': 'PENDING', 'op': 'replace'})
watcherclient = self.stub_watcherclient() watcherclient = self.stub_watcherclient()
watcherclient.action_plan = self.mox.CreateMockAnything() watcherclient.action_plan = self.mox.CreateMockAnything()