Beispiel #1
0
 def tearDown(self):
     self.mox.UnsetStubs()
     self.stubs.UnsetAll()
     self.stubs.SmartUnsetAll()
     self.mox.VerifyAll()
     db.clear_db()
     super(MetaQuantumPluginV2Test, self).tearDown()
Beispiel #2
0
 def tearDown(self):
     self.mox.UnsetStubs()
     self.stubs.UnsetAll()
     self.stubs.SmartUnsetAll()
     self.mox.VerifyAll()
     db.clear_db()
     super(MetaQuantumPluginV2Test, self).tearDown()
    def tearDown(self):
        self._plugin_patcher.stop()
        self.api = None
        self.plugin = None
        db.clear_db()
        cfg.CONF.reset()

        # Restore the global RESOURCE_ATTRIBUTE_MAP
        attributes.RESOURCE_ATTRIBUTE_MAP = self.saved_attr_map
        super(QuotaExtensionTestCase, self).tearDown()
    def tearDown(self):
        super(LoadBalancerPluginDbTestCase, self).tearDown()
        self.api = None
        self._skip_native_bulk = None
        self.ext_api = None

        db.clear_db()
        db._ENGINE = None
        db._MAKER = None
        cfg.CONF.reset()
        # Restore the original attribute map
        loadbalancer.RESOURCE_ATTRIBUTE_MAP = self._attribute_map_bk
def TestRuijieVlanUnsetting():
    db.clear_db()
    net = db.network_create("miaosf", "net1")
    port = db.port_create(net.uuid)
    db.port_set_attachment(port.uuid, net.uuid, "intf_id")
    
    ruijie_db.add_ruijie_switch_eth_binding("192.168.21.35", "0050.56bc.0003", "GigabitEthernet 3/0/20");
    ruijie_db.add_ruijie_vm_eth_binding("intf_id", "0050.56bc.0003");
    
    ovs_db.add_vlan_binding(200, net.uuid)
    ruijie_vlan.set_ruijie_vlan("intf_id", net.uuid)
    binding = ruijie_db.get_ruijie_vlan_binding("192.168.21.35", "GigabitEthernet 3/0/20", 200)
    if binding == []:
        assert 0
    ruijie_vlan.unset_ruijie_vlan(net.uuid, port.uuid)
    binding = ruijie_db.get_ruijie_vlan_binding("192.168.21.35", "GigabitEthernet 3/0/20", 200)
    if binding != []:
        assert 0
 def tearDown(self):
     """Clear the test environment(Clean the Database)"""
     db.clear_db()
 def tearDown(self):
     """Clear the test environment"""
     db.clear_db()
     sys.stdout = sys.__stdout__
 def tearDown(self):
     db.clear_db()
Beispiel #9
0
    def tearDown(self):
        db.clear_db(network_models_v2.model_base.BASEV2)
        db._ENGINE = None
        db._MAKER = None

        cfg.CONF.reset()
Beispiel #10
0
 def tearDown(self):
     db.clear_db()
     cfg.CONF.reset()
Beispiel #11
0
def clear_db(base=model_base.BASEV2):
    db.clear_db(base)
Beispiel #12
0
 def tearDown(self):
     """Clear the test environment"""
     db.clear_db()
     sys.stdout = sys.__stdout__
Beispiel #13
0
 def tearDown(self):
     db_api.clear_db()
 def tearDown(self):
     self.api = None
     db.clear_db()
     cfg.CONF.reset()
     super(RouterServiceInsertionTestCase, self).tearDown()
Beispiel #15
0
 def tearDown(self):
     quantum_db_api.clear_db()
Beispiel #16
0
 def tearDown(self):
     db.clear_db()
     cfg.CONF.reset()
Beispiel #17
0
 def tearDown(self):
     self.mox.UnsetStubs()
     self.stubs.UnsetAll()
     self.stubs.SmartUnsetAll()
     self.mox.VerifyAll()
     db.clear_db()
Beispiel #18
0
 def tearDown(self):
     db.clear_db()
def setUp():
    db.clear_db()
Beispiel #20
0
 def tearDown(self):
     super(ServiceTypeManagerTestCase, self).tearDown()
     db_api.clear_db()
Beispiel #21
0
 def tearDown(self):
     """Tear Down"""
     db.clear_db()
 def tearDown(self):
     """
     Clear the test environment
     """
     #remove database contents
     db.clear_db()
 def tearDown(self):
     """Clear the test environment(Clean the Database)"""
     db.clear_db()
def tearDown():
    db.clear_db()
Beispiel #25
0
 def tearDown(self):
     """Clear the test environment"""
     # Remove database contents
     db.clear_db(network_models_v2.model_base.BASEV2)
Beispiel #26
0
 def tearDown(self):
     self.mox.UnsetStubs()
     self.stubs.UnsetAll()
     self.stubs.SmartUnsetAll()
     self.mox.VerifyAll()
     db.clear_db()
Beispiel #27
0
def clear_db(base=model_base.BASEV2):
    db.clear_db(base)
 def tearDown(self):
     """Tear Down"""
     db.clear_db()
Beispiel #29
0
 def tearDown(self):
     """Clear the test environment"""
     # Remove database contents
     db.clear_db(network_models_v2.model_base.BASEV2)