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:
parent
b4fb6f7573
commit
893bbd7a52
@ -343,7 +343,7 @@ class ActionPlan(base.APIResourceWrapper):
|
||||
:type action_plan_id: int
|
||||
"""
|
||||
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)
|
||||
|
||||
@property
|
||||
@ -422,7 +422,7 @@ class Action(base.APIResourceWrapper):
|
||||
:type action_id: int
|
||||
"""
|
||||
patch = []
|
||||
patch.append({'op': 'replace', 'path': '/state', 'value': 'TRIGGERED'})
|
||||
patch.append({'op': 'replace', 'path': '/state', 'value': 'PENDING'})
|
||||
watcherclient(request).action.update(action_id, patch)
|
||||
|
||||
@property
|
||||
|
@ -207,7 +207,7 @@ class WatcherAPITests(test.APITestCase):
|
||||
def test_action_plan_start(self):
|
||||
action_plan_id = self.api_action_plans.first()['id']
|
||||
patch = []
|
||||
patch.append({'path': '/state', 'value': 'TRIGGERED', 'op': 'replace'})
|
||||
patch.append({'path': '/state', 'value': 'PENDING', 'op': 'replace'})
|
||||
|
||||
watcherclient = self.stub_watcherclient()
|
||||
watcherclient.action_plan = self.mox.CreateMockAnything()
|
||||
|
Loading…
Reference in New Issue
Block a user