Esempio n. 1
0
    def setUp(self):
        self._cloud_manager = cloud_manager.CloudManager()
        # We want to start with a fresh network every time because we're
        # testing gateway registration -> config update flow
        self._cloud_manager.delete_networks([fixtures.NETWORK_ID])
        # We also want to start off with default mconfigs
        rpc.reset_gateway_mconfigs()

        self._cloud_manager.create_network(fixtures.NETWORK_ID)
        self._cloud_manager.register_gateway(
            fixtures.NETWORK_ID,
            fixtures.GATEWAY_ID,
            rpc.get_gateway_hw_id(),
        )
Esempio n. 2
0
 def tearDown(self):
     self._cloud_manager.clean_up()
     rpc.reset_gateway_mconfigs()