From a184b9a64fcef47d6e27a87b2a3a3e5c4d0a2f08 Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Tue, 6 Dec 2016 16:46:42 -0600 Subject: [PATCH] tests: test that all osds are listening on the public network Signed-off-by: Andrew Schoen --- tests/functional/tests/osd/test_osds.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/functional/tests/osd/test_osds.py b/tests/functional/tests/osd/test_osds.py index efb15ff2e..f10985d1f 100644 --- a/tests/functional/tests/osd/test_osds.py +++ b/tests/functional/tests/osd/test_osds.py @@ -4,8 +4,14 @@ class TestOSDs(object): def test_ceph_osd_package_is_installed(self, node, Package): assert Package("ceph-osd").is_installed - def test_osd_listens_on_6800(self, node, Socket): - assert Socket("tcp://%s:6800" % node["address"]).is_listening + def test_osds_listen_on_public_network(self, node, Socket): + # TODO: figure out way to paramaterize this test + for x in range(0, node["num_devices"] * 2): + port = "680{}".format(x) + assert Socket("tcp://{address}:{port}".format( + address=node["address"], + port=port, + )).is_listening def test_osd_services_are_running(self, node, Service): # TODO: figure out way to paramaterize node['osd_ids'] for this test