From e34c95d28f7b49d34a9458d1596dda67b5ea7d57 Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Tue, 24 Mar 2020 14:28:51 -0400 Subject: [PATCH] tests: update mgr dashboard socket listening test Since 15ed9ee the ceph-mgr daemon binds on the IP address on the public network instead of binding on all addresses. This commit updates the testinfra code to reflect that change. Signed-off-by: Dimitri Savineau (cherry picked from commit 0f0a14772c21fbeadcc0c92b48a8c54ab8b729d6) --- tests/functional/tests/mgr/test_mgr.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/functional/tests/mgr/test_mgr.py b/tests/functional/tests/mgr/test_mgr.py index c10b032c1..9256dcf7f 100644 --- a/tests/functional/tests/mgr/test_mgr.py +++ b/tests/functional/tests/mgr/test_mgr.py @@ -25,8 +25,9 @@ class TestMGRs(object): @pytest.mark.parametrize('port', [ '8443', '9283' ]) - def test_mgr_dashboard_is_listening(self, node, host, port): - assert host.socket('tcp://%s' % port).is_listening + def test_mgr_dashboard_is_listening(self, node, host, setup, port): + s = host.socket('tcp://%s:%s' % (setup["address"], port)) + assert s.is_listening def test_mgr_is_up(self, node, host, setup): hostname = node["vars"]["inventory_hostname"] -- 2.39.5