예제 #1
0
    def setUp(self, extra_config_knobs=None):
        super(VncIngressTest, self).setUp()

        self._set_default_kube_config()
        self.kube_mock = mock.MagicMock()

        VncKubernetes._vnc_kubernetes.ingress_mgr._kube = self.kube_mock
        self.pub_net_uuid, self.pub_fip_pool_uuid = \
            self._create_fip_pool_and_public_network()

        VncKubernetes.get_instance().ingress_mgr._default_vn_obj = None
    def setUp(self, extra_config_knobs=None):
        super(VncIngressTest, self).setUp()

        self._set_default_kube_config()
        self.kube_mock = mock.MagicMock()

        VncKubernetes._vnc_kubernetes.ingress_mgr._kube = self.kube_mock
        self.pub_net_uuid, self.pub_fip_pool_uuid = \
            self._create_fip_pool_and_public_network()

        VncKubernetes.get_instance().ingress_mgr._default_vn_obj = None