mirror of https://github.com/ceph/ceph-ansible.git
tests: mon_initial_members should look for the right hostname
Signed-off-by: Alfredo Deza <adeza@redhat.com> Resolves: pytest#harnesspull/1058/head
parent
08e7103766
commit
8cda2db9c3
|
@ -15,7 +15,7 @@ class TestMon(object):
|
|||
ceph_conf_lines = ceph_conf.readlines()
|
||||
for line in ceph_conf_lines:
|
||||
if string in line:
|
||||
return line
|
||||
return line.strip().strip('\n')
|
||||
|
||||
@uses_mon_initial_members
|
||||
def test_ceph_config_has_inital_members_line(self, scenario_config):
|
||||
|
@ -29,4 +29,4 @@ class TestMon(object):
|
|||
cluster_name = scenario_config.get('ceph', {}).get('cluster_name', 'ceph')
|
||||
ceph_conf_path = '/etc/ceph/%s.conf' % cluster_name
|
||||
initial_members_line = self.get_line_from_config('mon initial members', ceph_conf_path)
|
||||
assert initial_members_line == 'mon initial members = mon0'
|
||||
assert initial_members_line == 'mon initial members = ceph-mon0'
|
||||
|
|
Loading…
Reference in New Issue