From f6d4ab9f25e5c9ee1872dbfd18bebbaf9a72a2d0 Mon Sep 17 00:00:00 2001 From: Luis Domingues Date: Tue, 9 Aug 2022 16:23:59 +0100 Subject: [PATCH] Split single and multiple vips test into 2 functions Signed-off-by: Luis Domingues --- src/pybind/mgr/cephadm/tests/test_services.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/pybind/mgr/cephadm/tests/test_services.py b/src/pybind/mgr/cephadm/tests/test_services.py index 655dbccf52970..176cf6fc81a20 100644 --- a/src/pybind/mgr/cephadm/tests/test_services.py +++ b/src/pybind/mgr/cephadm/tests/test_services.py @@ -1004,6 +1004,17 @@ class TestIngressService: assert haproxy_generated_conf[0] == haproxy_expected_conf + @patch("cephadm.serve.CephadmServe._run_cephadm") + def test_ingress_config_multi_vips(self, _run_cephadm, cephadm_module: CephadmOrchestrator): + _run_cephadm.side_effect = async_side_effect(('{}', '', 0)) + + with with_host(cephadm_module, 'test'): + cephadm_module.cache.update_host_networks('test', { + '1.2.3.0/24': { + 'if0': ['1.2.3.4/32'] + } + }) + # Check the ingress with multiple VIPs s = RGWSpec(service_id="foo", placement=PlacementSpec(count=1), rgw_frontend_type='beast') -- 2.39.5