]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: wait a moment after module load 30789/head
authorTatjana Dehler <tdehler@suse.com>
Fri, 11 Oct 2019 08:45:53 +0000 (10:45 +0200)
committerTatjana Dehler <tdehler@suse.com>
Fri, 11 Oct 2019 08:46:26 +0000 (10:46 +0200)
After a dashboard module load we need to wait (10 secs)
for the module to be back again. Otherwise the module
might not be able to answer requests properly. It could
lead to issues in some cases, e.g.: 'Failed to establish
a new connection: [Errno 111] Connection refused'.

Signed-off-by: Tatjana Dehler <tdehler@suse.com>
qa/tasks/mgr/dashboard/test_user.py

index 860bc8bf45b48a8c96de18bba485ac68b6ab1605..29e182ebcb4d9775cc67b5ea7c44b13b89b8c2d4 100644 (file)
@@ -2,6 +2,8 @@
 
 from __future__ import absolute_import
 
+import time
+
 from .helper import DashboardTestCase
 
 
@@ -81,6 +83,7 @@ class UserTest(DashboardTestCase):
         # Restart dashboard module.
         self._unload_module('dashboard')
         self._load_module('dashboard')
+        time.sleep(10)
 
         self._get('/api/user/klara')
         self.assertStatus(200)