From e83f02ad71d9abde0232aca809723a587a5630ef Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Tue, 16 Apr 2019 16:52:42 -0400 Subject: [PATCH] test_mons: test mon listening on port 3300 Since nautilus and msgr2 the monitors also bind on port 3300 in addition of 6789. This patch updates test_mons to reflect that change. Signed-off-by: Dimitri Savineau (cherry picked from commit c84a74592a21afa0b723b21ec84063d88c8a8ee4) --- tests/functional/tests/mon/test_mons.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/functional/tests/mon/test_mons.py b/tests/functional/tests/mon/test_mons.py index 1c57b40c3..aa916ea42 100644 --- a/tests/functional/tests/mon/test_mons.py +++ b/tests/functional/tests/mon/test_mons.py @@ -8,8 +8,12 @@ class TestMons(object): def test_ceph_mon_package_is_installed(self, node, host): assert host.package("ceph-mon").is_installed - def test_mon_listens_on_6789(self, node, host, setup): - assert host.socket("tcp://%s:6789" % setup["address"]).is_listening + @pytest.mark.parametrize("mon_port", [3300, 6789]) + def test_mon_listens(self, node, host, setup, mon_port): + assert host.socket("tcp://{address}:{port}".format( + address=setup["address"], + port=mon_port + )).is_listening def test_mon_service_is_running(self, node, host): service_name = "ceph-mon@{hostname}".format(