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 <dsavinea@redhat.com>
pull/5184/head
Dimitri Savineau 2020-03-24 14:28:51 -04:00 committed by Guillaume Abrioux
parent ac4f8763aa
commit 0f0a14772c
1 changed files with 3 additions and 2 deletions

View File

@ -25,8 +25,9 @@ class TestMGRs(object):
@pytest.mark.parametrize('port', [ @pytest.mark.parametrize('port', [
'8443', '9283' '8443', '9283'
]) ])
def test_mgr_dashboard_is_listening(self, node, host, port): def test_mgr_dashboard_is_listening(self, node, host, setup, port):
assert host.socket('tcp://%s' % port).is_listening s = host.socket('tcp://%s:%s' % (setup["address"], port))
assert s.is_listening
def test_mgr_is_up(self, node, host, setup): def test_mgr_is_up(self, node, host, setup):
hostname = node["vars"]["inventory_hostname"] hostname = node["vars"]["inventory_hostname"]