From: Ernesto Puerta Date: Wed, 22 Sep 2021 12:10:28 +0000 (+0200) Subject: qa/mgr/dashboard: add extra wait to test X-Git-Tag: v15.2.15~15^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=68765aa1b52380f2cb8f5ef06de39ac2a3d927eb;p=ceph.git qa/mgr/dashboard: add extra wait to test Fixes: https://tracker.ceph.com/issues/49344 Signed-off-by: Ernesto Puerta (cherry picked from commit 9ff778cdaa1ef40fcfa04f221a1da786a0e19655) --- diff --git a/qa/tasks/mgr/dashboard/test_user.py b/qa/tasks/mgr/dashboard/test_user.py index 171a8f3abeb..9507b56b5e7 100644 --- a/qa/tasks/mgr/dashboard/test_user.py +++ b/qa/tasks/mgr/dashboard/test_user.py @@ -402,6 +402,9 @@ class UserTest(DashboardTestCase): user_1 = self._get('/api/user/user1') self.assertStatus(200) + # Let's wait 1 s to ensure pwd expiration date is not the same + time.sleep(1) + self.login('user1', 'mypassword10#') self._post('/api/user/user1/change_password', { 'old_password': 'mypassword10#',