]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tests: update test_mon_host_line_has_correct_value()
authorGuillaume Abrioux <gabrioux@redhat.com>
Mon, 4 Feb 2019 15:14:37 +0000 (16:14 +0100)
committerSébastien Han <seb@redhat.com>
Tue, 5 Feb 2019 17:14:28 +0000 (18:14 +0100)
since msgr2 introduction, this test must be updated.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
tests/functional/tests/test_install.py

index 7d7a2a9bbe74bcacfd20cd8810526b4477c68031..5c958b5414221dd1a41991bbf722e2fd7680f1c9 100644 (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
         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