Exemplo n.º 1
0
 def tearDown(self):
     self.mox.UnsetStubs()
     self.stubs.UnsetAll()
     self.stubs.SmartUnsetAll()
     self.mox.VerifyAll()
     db.clear_db()
     super(MetaQuantumPluginV2Test, self).tearDown()
Exemplo n.º 2
0
 def tearDown(self):
     self.mox.UnsetStubs()
     self.stubs.UnsetAll()
     self.stubs.SmartUnsetAll()
     self.mox.VerifyAll()
     db.clear_db()
     super(MetaQuantumPluginV2Test, self).tearDown()
Exemplo n.º 3
0
    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()
Exemplo n.º 4
0
    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
Exemplo n.º 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
Exemplo n.º 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__
Exemplo n.º 8
0
 def tearDown(self):
     db.clear_db()
Exemplo n.º 9
0
    def tearDown(self):
        db.clear_db(network_models_v2.model_base.BASEV2)
        db._ENGINE = None
        db._MAKER = None

        cfg.CONF.reset()
Exemplo n.º 10
0
 def tearDown(self):
     db.clear_db()
     cfg.CONF.reset()
Exemplo n.º 11
0
def clear_db(base=model_base.BASEV2):
    db.clear_db(base)
Exemplo n.º 12
0
 def tearDown(self):
     """Clear the test environment"""
     db.clear_db()
     sys.stdout = sys.__stdout__
Exemplo n.º 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()
Exemplo n.º 15
0
 def tearDown(self):
     quantum_db_api.clear_db()
Exemplo n.º 16
0
 def tearDown(self):
     db.clear_db()
     cfg.CONF.reset()
Exemplo n.º 17
0
 def tearDown(self):
     self.mox.UnsetStubs()
     self.stubs.UnsetAll()
     self.stubs.SmartUnsetAll()
     self.mox.VerifyAll()
     db.clear_db()
Exemplo n.º 18
0
 def tearDown(self):
     db.clear_db()
Exemplo n.º 19
0
def setUp():
    db.clear_db()
Exemplo n.º 20
0
 def tearDown(self):
     super(ServiceTypeManagerTestCase, self).tearDown()
     db_api.clear_db()
Exemplo n.º 21
0
 def tearDown(self):
     """Tear Down"""
     db.clear_db()
 def tearDown(self):
     """
     Clear the test environment
     """
     #remove database contents
     db.clear_db()
Exemplo n.º 23
0
 def tearDown(self):
     """Clear the test environment(Clean the Database)"""
     db.clear_db()
Exemplo n.º 24
0
def tearDown():
    db.clear_db()
Exemplo n.º 25
0
 def tearDown(self):
     """Clear the test environment"""
     # Remove database contents
     db.clear_db(network_models_v2.model_base.BASEV2)
Exemplo n.º 26
0
 def tearDown(self):
     self.mox.UnsetStubs()
     self.stubs.UnsetAll()
     self.stubs.SmartUnsetAll()
     self.mox.VerifyAll()
     db.clear_db()
Exemplo n.º 27
0
def clear_db(base=model_base.BASEV2):
    db.clear_db(base)
 def tearDown(self):
     """Tear Down"""
     db.clear_db()
Exemplo n.º 29
0
 def tearDown(self):
     """Clear the test environment"""
     # Remove database contents
     db.clear_db(network_models_v2.model_base.BASEV2)