def tearDown(self): """ @summary: 测试结束后的资源清理(恢复初始环境) """ LogPrint().info("Post-Test-1: Delete network '%s' for this TC." % self.dm.nw_name) self.assertTrue(smart_delete_network(self.dm.nw_name, self.dm.dc_name)) LogPrint().info("Post-Test-2: Delete cluster '%s' for this TC." % self.dm.cluster_name) self.assertTrue(smart_delete_cluster(self.dm.cluster_name))
def tearDown(self): ''' @summary: 测试结束后的资源清理(恢复初始环境) ''' LogPrint().info("Post-Test-1: Delete network '%s' for this TC." % self.dm.nw_name) self.assertTrue(smart_delete_network(self.dm.nw_name, self.dm.dc_name)) LogPrint().info("Post-Test-2: Delete cluster '%s' for this TC." % self.dm.cluster_name) self.assertTrue(smart_delete_cluster(self.dm.cluster_name))
def tearDown(self): ''' @summary: 清除该网络及配置集 ''' LogPrint().info("Post-Test: Delete network '%s' and it's profiles." % self.dm.nw_name) self.assertTrue(smart_delete_network(self.dm.nw_name,self.dm.dc_name))
def tearDown(self): ''' @summary: 删除该网络,清空环境 ''' LogPrint().info("Post-Test-1: Delete network %s."%self.dm.nw_name) self.assertTrue(smart_delete_network(self.dm.nw_name,self.dm.dc_name))
def tearDown(self): #删除该网络,清空环境 LogPrint().info("Post-Test-1: Delete network %s."%self.dm.nw_name1) self.assertTrue(smart_delete_network(self.dm.nw_name1,self.dm.dc_name)) LogPrint().info("Post-Test-2: Delete network %s."%self.dm.nw_name2) self.assertTrue(smart_delete_network(self.dm.nw_name2,self.dm.dc_name))
def tearDown(self): LogPrint().info("Post-Test: Delete network %s."%self.dm.nw_name1) self.assertTrue(smart_delete_network(self.dm.nw_name1,self.dm.dc_name))
def setUp(self): self.dm = super(self.__class__, self).setUp() self.nwapi = NetworkAPIs() self.assertTrue(smart_delete_network(self.dm.nw_name, self.dm.dc_name))
def tearDown(self): ''' @summary: 测试结束后的资源清理(恢复初始环境) ''' LogPrint().info("Post-Test: Delete network '%s'." % self.dm.nw_name) self.assertTrue(smart_delete_network(self.dm.nw_name,self.dm.dc_name))