Merge "Update the Mistral action names"

This commit is contained in:
Jenkins 2016-09-20 23:03:05 +00:00 committed by Gerrit Code Review
commit 32172b4a09
5 changed files with 13 additions and 13 deletions

View File

@ -57,7 +57,7 @@ class TestSetParameters(utils.TestCommand):
# Verify
self.workflow.action_executions.create.assert_called_once_with(
'tripleo.update_parameters',
'tripleo.parameters.update',
{
'container': 'overcast',
'parameters': data.get('parameter_defaults', data)

View File

@ -33,7 +33,7 @@ class TestOvercloudPlanList(utils.TestCommand):
result = self.cmd.take_action(None)
self.workflow.action_executions.create.assert_called_once_with(
'tripleo.list_plans')
'tripleo.plan.list')
self.assertEqual(0, len(result[1]))
@ -43,7 +43,7 @@ class TestOvercloudPlanList(utils.TestCommand):
result = self.cmd.take_action(None)
self.workflow.action_executions.create.assert_called_once_with(
'tripleo.list_plans')
'tripleo.plan.list')
self.assertEqual(1, len(result[0]))
self.assertEqual([('test-plan-1',), ('test-plan-2',)], result[1])
@ -68,7 +68,7 @@ class TestOvercloudDeletePlan(utils.TestCommand):
self.cmd.take_action(parsed_args)
self.workflow.action_executions.create.assert_called_once_with(
'tripleo.delete_plan', input={'container': 'test-plan'})
'tripleo.plan.delete', input={'container': 'test-plan'})
def test_delete_multiple_plans(self):
argslist = ['test-plan1', 'test-plan2']
@ -81,9 +81,9 @@ class TestOvercloudDeletePlan(utils.TestCommand):
self.cmd.take_action(parsed_args)
self.workflow.action_executions.create.assert_has_calls(
[mock.call('tripleo.delete_plan',
[mock.call('tripleo.plan.delete',
input={'container': 'test-plan1'}),
mock.call('tripleo.delete_plan',
mock.call('tripleo.plan.delete',
input={'container': 'test-plan2'})])
@ -183,7 +183,7 @@ class TestOvercloudCreatePlan(utils.TestCommand):
# Verify
self.workflow.action_executions.create.assert_called_once_with(
'tripleo.create_container', {"container": "overcast"}
'tripleo.plan.create_container', {"container": "overcast"}
)
self.workflow.executions.create.assert_called_once_with(
@ -216,7 +216,7 @@ class TestOvercloudCreatePlan(utils.TestCommand):
# Verify
self.workflow.action_executions.create.assert_called_once_with(
'tripleo.create_container', {"container": "overcast"}
'tripleo.plan.create_container', {"container": "overcast"}
)
self.workflow.executions.create.assert_called_once_with(

View File

@ -32,7 +32,7 @@ class ListPlans(command.Lister):
workflow_client = self.app.client_manager.workflow_engine
execution = workflow_client.action_executions.create(
'tripleo.list_plans')
'tripleo.plan.list')
try:
json_results = json.loads(execution.output)['result']
@ -69,7 +69,7 @@ class DeletePlan(command.Command):
for plan in parsed_args.plans:
print("Deleting plan %s..." % plan)
execution = workflow_client.action_executions.create(
'tripleo.delete_plan', input={'container': plan})
'tripleo.plan.delete', input={'container': plan})
try:
json_results = json.loads(execution.output)['result']

View File

@ -14,7 +14,7 @@ from tripleoclient.workflows import base
def update_parameters(workflow_client, **input_):
return base.call_action(workflow_client, 'tripleo.update_parameters',
return base.call_action(workflow_client, 'tripleo.parameters.update',
**input_)

View File

@ -89,11 +89,11 @@ def update_deployment_plan(clients, **workflow_input):
def list_deployment_plans(workflow_client, **input_):
return base.call_action(workflow_client, 'tripleo.list_plans', **input_)
return base.call_action(workflow_client, 'tripleo.plan.list', **input_)
def create_container(workflow_client, **input_):
return base.call_action(workflow_client, 'tripleo.create_container',
return base.call_action(workflow_client, 'tripleo.plan.create_container',
**input_)