Gate: Fixed an Unauthorized error on api tests
The error is caused by an incorrect teardown order in baymodel tests. The teardown in super class will delete the credential, so it should be called after the baymodel is deleted. Change-Id: I9a022122c309fe6e2e74f744f196a67beec1f884 Closes-Bug: #1534641
This commit is contained in:
parent
e417a96c94
commit
5e5e442a32
|
@ -37,10 +37,10 @@ class BayModelTest(base.BaseMagnumTest):
|
|||
request_type='baymodel')
|
||||
|
||||
def tearDown(self):
|
||||
super(BayModelTest, self).tearDown()
|
||||
for baymodel_id in self.baymodels:
|
||||
self._delete_baymodel(baymodel_id)
|
||||
self.baymodels.remove(baymodel_id)
|
||||
super(BayModelTest, self).tearDown()
|
||||
|
||||
def _create_baymodel(self, baymodel_model):
|
||||
resp, model = self.baymodel_client.post_baymodel(baymodel_model)
|
||||
|
|
Loading…
Reference in New Issue