示例#1
0
 def tearDown(self):
     self.mox.UnsetStubs()
     self.stubs.UnsetAll()
     self.stubs.SmartUnsetAll()
     self.mox.VerifyAll()
     db.clear_db()
     super(MetaQuantumPluginV2Test, self).tearDown()
示例#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
示例#5
0
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
示例#6
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__
示例#8
0
 def tearDown(self):
     db.clear_db()
示例#9
0
    def tearDown(self):
        db.clear_db(network_models_v2.model_base.BASEV2)
        db._ENGINE = None
        db._MAKER = None

        cfg.CONF.reset()
示例#10
0
 def tearDown(self):
     db.clear_db()
     cfg.CONF.reset()
示例#11
0
文件: api.py 项目: abhiraut/quantum
def clear_db(base=model_base.BASEV2):
    db.clear_db(base)
示例#12
0
 def tearDown(self):
     """Clear the test environment"""
     db.clear_db()
     sys.stdout = sys.__stdout__
示例#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()
示例#15
0
 def tearDown(self):
     quantum_db_api.clear_db()
示例#16
0
 def tearDown(self):
     db.clear_db()
     cfg.CONF.reset()
示例#17
0
 def tearDown(self):
     self.mox.UnsetStubs()
     self.stubs.UnsetAll()
     self.stubs.SmartUnsetAll()
     self.mox.VerifyAll()
     db.clear_db()
示例#18
0
 def tearDown(self):
     db.clear_db()
示例#19
0
def setUp():
    db.clear_db()
示例#20
0
 def tearDown(self):
     super(ServiceTypeManagerTestCase, self).tearDown()
     db_api.clear_db()
示例#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()
示例#24
0
def tearDown():
    db.clear_db()
示例#25
0
 def tearDown(self):
     """Clear the test environment"""
     # Remove database contents
     db.clear_db(network_models_v2.model_base.BASEV2)
示例#26
0
 def tearDown(self):
     self.mox.UnsetStubs()
     self.stubs.UnsetAll()
     self.stubs.SmartUnsetAll()
     self.mox.VerifyAll()
     db.clear_db()
示例#27
0
def clear_db(base=model_base.BASEV2):
    db.clear_db(base)
 def tearDown(self):
     """Tear Down"""
     db.clear_db()
示例#29
0
 def tearDown(self):
     """Clear the test environment"""
     # Remove database contents
     db.clear_db(network_models_v2.model_base.BASEV2)