]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/mgr/dashboard: add extra wait to test 43351/head
authorErnesto Puerta <epuertat@redhat.com>
Wed, 22 Sep 2021 12:10:28 +0000 (14:10 +0200)
committerErnesto Puerta <epuertat@redhat.com>
Wed, 29 Sep 2021 18:25:32 +0000 (20:25 +0200)
Fixes: https://tracker.ceph.com/issues/49344
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
(cherry picked from commit 9ff778cdaa1ef40fcfa04f221a1da786a0e19655)

qa/tasks/mgr/dashboard/test_user.py

index 73ead662d6bec778ddc0c15aa19edeb429bcf5f7..3a6464f5a5b7f7eeed890bf1cc8987da8b7a3be8 100644 (file)
@@ -412,6 +412,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#',