Remove get_overcloud_passwords, a unused function
Change-Id: I81883b8e501481a3ddf372abc547d85215475411
This commit is contained in:
parent
097210977f
commit
7f3853abe1
@ -46,22 +46,6 @@ class TestParameterWorkflows(utils.TestCommand):
|
||||
execution.id = "IDID"
|
||||
self.workflow.executions.create.return_value = execution
|
||||
|
||||
def test_get_overcloud_passwords(self):
|
||||
self.websocket.wait_for_messages.return_value = iter([{
|
||||
"execution_id": "IDID",
|
||||
"status": "SUCCESS",
|
||||
"message": "passwords",
|
||||
}])
|
||||
|
||||
parameters.get_overcloud_passwords(
|
||||
self.app.client_manager,
|
||||
container='container-name'
|
||||
)
|
||||
|
||||
self.workflow.executions.create.assert_called_once_with(
|
||||
'tripleo.plan_management.v1.get_passwords',
|
||||
workflow_input={'container': 'container-name'})
|
||||
|
||||
@mock.patch('yaml.safe_load')
|
||||
@mock.patch("six.moves.builtins.open")
|
||||
def test_invoke_plan_env_workflows(self, mock_open,
|
||||
|
@ -24,33 +24,6 @@ def update_parameters(workflow_client, **input_):
|
||||
**input_)
|
||||
|
||||
|
||||
def get_overcloud_passwords(clients, **workflow_input):
|
||||
"""Retrieves overcloud passwords from a plan via a workflow
|
||||
|
||||
:param clients:
|
||||
:param workflow_input:
|
||||
:return:
|
||||
"""
|
||||
|
||||
workflow_client = clients.workflow_engine
|
||||
tripleoclients = clients.tripleoclient
|
||||
|
||||
with tripleoclients.messaging_websocket() as ws:
|
||||
execution = base.start_workflow(
|
||||
workflow_client,
|
||||
'tripleo.plan_management.v1.get_passwords',
|
||||
workflow_input=workflow_input
|
||||
)
|
||||
|
||||
# Getting the passwords is a quick operation, but to allow space for
|
||||
# delays or heavy loads, timeout after 60 seconds.
|
||||
for payload in base.wait_for_messages(workflow_client, ws, execution,
|
||||
60):
|
||||
assert payload['status'] == "SUCCESS"
|
||||
|
||||
return payload['message']
|
||||
|
||||
|
||||
def invoke_plan_env_workflows(clients, stack_name, plan_env_file):
|
||||
"""Invokes the workflows in plan environment file"""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user