Browse Source

Artifacts removing missed

We should clean lists of artifacts to prevent
duplicate removing attempt after the test execution.

Change-Id: I5384c907acbb227929363215fa0e2e22a84d5738
Closes-Bug: 1594610
(cherry picked from commit 163fd05841)
tags/11.0.0.0rc1
Dmitry Belyaninov 2 years ago
parent
commit
ed79fe26d9
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      fuel_health/neutronmanager.py

+ 4
- 1
fuel_health/neutronmanager.py View File

@@ -110,12 +110,15 @@ class NeutronBaseTest(fuel_health.nmanager.NovaNetworkScenarioTest):
110 110
                 router['id'], {"subnet_id": subnet_id})
111 111
 
112 112
         self.neutron_client.delete_router(router['id'])
113
+        self.routers.pop(router['id'])
113 114
 
114 115
     def _remove_subnet(self, subnet):
115
-        return self.neutron_client.delete_subnet(subnet['id'])
116
+        self.neutron_client.delete_subnet(subnet['id'])
117
+        self.subnets.remove(subnet)
116 118
 
117 119
     def _remove_network(self, network):
118 120
         self.neutron_client.delete_network(network['id'])
121
+        self.networks.remove(network)
119 122
 
120 123
     @classmethod
121 124
     def _clean_floating_ips(cls):

Loading…
Cancel
Save