Browse Source

[Murano] Multiple fixes for murano OSTF tests

- Reduce time between environment deletion checks
- Increase timeout for environment removal verification

Change-Id: Iad6e9c5f2e976c9130682e705b4d609393eccd92
Closes-Bug: #1625727
Victor Ryzhenkin 2 years ago
parent
commit
e58e5a9bd5

+ 2
- 2
fuel_health/muranomanager.py View File

@@ -184,7 +184,7 @@ class MuranoTest(fuel_health.nmanager.PlatformServicesBaseClass):
184 184
         self.murano_client.environments.delete(environment_id)
185 185
         return self.environments.remove(environment_id)
186 186
 
187
-    def environment_delete_check(self, environment_id, timeout=60):
187
+    def environment_delete_check(self, environment_id, timeout=120):
188 188
         resp = requests.get('{0}environments/{1}'.format(self.endpoint,
189 189
                                                          environment_id),
190 190
                             headers=self.headers, verify=False)
@@ -204,7 +204,7 @@ class MuranoTest(fuel_health.nmanager.PlatformServicesBaseClass):
204 204
             except Exception:
205 205
                 LOG.debug("Failed to get environment status "
206 206
                           "or environment no more exists")
207
-            time.sleep(5)
207
+            time.sleep(1)
208 208
 
209 209
     def create_session(self, environment_id):
210 210
         """This method allows to create session for environment.

+ 2
- 2
fuel_health/tests/tests_platform/test_murano_linux.py View File

@@ -155,7 +155,7 @@ class MuranoDeployLinuxServicesTests(muranomanager.MuranoTest):
155 155
                     self.environment.id)
156 156
 
157 157
         fail_msg = "Can't delete environment. "
158
-        self.verify(60, self.environment_delete_check,
158
+        self.verify(180, self.environment_delete_check,
159 159
                     9, fail_msg, "deleting environment",
160 160
                     self.environment.id)
161 161
 
@@ -265,7 +265,7 @@ class MuranoDeployLinuxServicesTests(muranomanager.MuranoTest):
265 265
                     self.environment.id)
266 266
 
267 267
         fail_msg = "Can't delete environment. "
268
-        self.verify(60, self.environment_delete_check,
268
+        self.verify(180, self.environment_delete_check,
269 269
                     9, fail_msg, "deleting environment",
270 270
                     self.environment.id)
271 271
 

Loading…
Cancel
Save