Correct stack in update unit tests.

As well as in [0], the stack being referenced
in the first of the updates test does not match
the one being mocked as part of the arguments.

[0] - https://review.openstack.org/#/c/561181/

Change-Id: I10e708c4c6b59f317a1d0b56d18083fe7ef1698d
This commit is contained in:
Jose Luis Franco Arza 2018-04-18 09:06:23 +02:00
parent 9b879e2886
commit f454fbb841
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ class TestOvercloudUpdatePrepare(fakes.TestOvercloudUpdatePrepare):
mock_abspath, mock_update, mock_logger,
mock_get_stack):
mock_stack = mock.Mock()
mock_stack.stack_name = 'mystack'
mock_stack.stack_name = 'overcloud'
mock_get_stack.return_value = mock_stack
mock_abspath.return_value = '/home/fake/my-fake-registry.yaml'
mock_yaml.return_value = {'fake_container': 'fake_value'}
@ -73,7 +73,7 @@ class TestOvercloudUpdatePrepare(fakes.TestOvercloudUpdatePrepare):
self.cmd.take_action(parsed_args)
mock_update.assert_called_once_with(
self.app.client_manager,
container='mystack',
container='overcloud',
container_registry={'fake_container': 'fake_value'},
ceph_ansible_playbook='/usr/share/ceph-ansible'
'/site-docker.yml.sample'