Add ability to pass parameters during update
This patch add addtional option parameters for stack_update method, which is used in integration tests. Change-Id: If7a995616dc5b8fbf342e324f2355df17a1adeba
This commit is contained in:
parent
1b49a9d4a1
commit
8d78c26e2b
@ -256,9 +256,10 @@ class HeatIntegrationTest(testscenarios.WithScenarios,
|
||||
success_on_not_found=True)
|
||||
|
||||
def update_stack(self, stack_identifier, template, environment=None,
|
||||
files=None):
|
||||
files=None, parameters=None):
|
||||
env = environment or {}
|
||||
env_files = files or {}
|
||||
parameters = parameters or {}
|
||||
stack_name = stack_identifier.split('/')[0]
|
||||
self.client.stacks.update(
|
||||
stack_id=stack_identifier,
|
||||
@ -266,7 +267,7 @@ class HeatIntegrationTest(testscenarios.WithScenarios,
|
||||
template=template,
|
||||
files=env_files,
|
||||
disable_rollback=True,
|
||||
parameters={},
|
||||
parameters=parameters,
|
||||
environment=env
|
||||
)
|
||||
self._wait_for_stack_status(stack_identifier, 'UPDATE_COMPLETE')
|
||||
|
Loading…
Reference in New Issue
Block a user