mirror of https://github.com/ceph/ceph-ansible.git
tests/library: remove duplicate parameter
Remove duplicate fake_params parameter as it's already defined later as a dict (instead of an empty list). Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>pull/6196/head
parent
e66f12d138
commit
5a14510354
|
@ -8,19 +8,18 @@ fake_container_image = 'docker.io/ceph/daemon:latest'
|
||||||
|
|
||||||
class TestCephDashboardUserModule(object):
|
class TestCephDashboardUserModule(object):
|
||||||
def setup_method(self):
|
def setup_method(self):
|
||||||
self.fake_params = []
|
|
||||||
self.fake_binary = 'ceph'
|
self.fake_binary = 'ceph'
|
||||||
self.fake_cluster = 'ceph'
|
self.fake_cluster = 'ceph'
|
||||||
self.fake_name = 'foo'
|
self.fake_name = 'foo'
|
||||||
self.fake_user = 'foo'
|
self.fake_user = 'foo'
|
||||||
self.fake_password = 'bar'
|
self.fake_password = 'bar'
|
||||||
self.fake_module = MagicMock()
|
|
||||||
self.fake_module.params = self.fake_params
|
|
||||||
self.fake_roles = ['read-only', 'block-manager']
|
self.fake_roles = ['read-only', 'block-manager']
|
||||||
self.fake_params = {'cluster': self.fake_cluster,
|
self.fake_params = {'cluster': self.fake_cluster,
|
||||||
'name': self.fake_user,
|
'name': self.fake_user,
|
||||||
'password': self.fake_password,
|
'password': self.fake_password,
|
||||||
'roles': self.fake_roles}
|
'roles': self.fake_roles}
|
||||||
|
self.fake_module = MagicMock()
|
||||||
|
self.fake_module.params = self.fake_params
|
||||||
|
|
||||||
def test_create_user(self):
|
def test_create_user(self):
|
||||||
self.fake_module.params = self.fake_params
|
self.fake_module.params = self.fake_params
|
||||||
|
|
Loading…
Reference in New Issue