From efc051d17cfc78f5caf841bd946f41ada29affaa Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Mon, 4 Feb 2019 16:14:37 +0100 Subject: [PATCH] tests: update test_mon_host_line_has_correct_value() since msgr2 introduction, this test must be updated. Signed-off-by: Guillaume Abrioux --- tests/functional/tests/test_install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/functional/tests/test_install.py b/tests/functional/tests/test_install.py index 7d7a2a9bb..5c958b541 100644 --- a/tests/functional/tests/test_install.py +++ b/tests/functional/tests/test_install.py @@ -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 result = True 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: result = False assert result