tests: update test_mon_host_line_has_correct_value()

since msgr2 introduction, this test must be updated.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/3571/head
Guillaume Abrioux 2019-02-04 16:14:37 +01:00 committed by Sébastien Han
parent 0d72fe9b30
commit efc051d17c
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class TestCephConf(object):
mon_host_line = host.check_output("grep 'mon host = ' /etc/ceph/{cluster}.conf".format(cluster=node['cluster_name'])) # noqa E501 mon_host_line = host.check_output("grep 'mon host = ' /etc/ceph/{cluster}.conf".format(cluster=node['cluster_name'])) # noqa E501
result = True result = True
for x in range(0, node["num_mons"]): for x in range(0, node["num_mons"]):
pattern = re.compile(("{}.1{}".format(node["subnet"], x))) pattern = re.compile(("v2:{subnet}.1{x}:3300,v1:{subnet}.1{x}:6789".format(subnet=node["subnet"], x=x)))
if pattern.search(mon_host_line) is None: if pattern.search(mon_host_line) is None:
result = False result = False
assert result assert result