From: Alfonso Martínez Date: Thu, 5 Mar 2020 15:22:43 +0000 (+0100) Subject: mgr/dashboard: fix tasks.mgr.dashboard.test_rgw suite X-Git-Tag: v15.1.1~97^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=eaa0d84a13f1c3202db86b12c0efda622e471378;p=ceph-ci.git mgr/dashboard: fix tasks.mgr.dashboard.test_rgw suite Fixes: https://tracker.ceph.com/issues/44405 Signed-off-by: Alfonso Martínez --- diff --git a/qa/tasks/mgr/dashboard/test_rgw.py b/qa/tasks/mgr/dashboard/test_rgw.py index 86477bc1dc4..72878498ee8 100644 --- a/qa/tasks/mgr/dashboard/test_rgw.py +++ b/qa/tasks/mgr/dashboard/test_rgw.py @@ -116,7 +116,7 @@ class RgwBucketTest(RgwTestCase): _mfa_token_serial = '1' _mfa_token_seed = '23456723' - _mfa_token_time_step = 1 + _mfa_token_time_step = 3 AUTH_ROLES = ['rgw-manager'] @@ -128,7 +128,7 @@ class RgwBucketTest(RgwTestCase): cls._radosgw_admin_cmd([ 'mfa', 'create', '--uid', 'teuth-test-user', '--totp-serial', cls._mfa_token_serial, '--totp-seed', cls._mfa_token_seed, '--totp-seed-type', 'base32', - '--totp-seconds', str(cls._mfa_token_time_step), '--totp-window', '2' + '--totp-seconds', str(cls._mfa_token_time_step), '--totp-window', '1' ]) # Create tenanted users. cls._radosgw_admin_cmd([ @@ -241,7 +241,7 @@ class RgwBucketTest(RgwTestCase): self.assertEqual(data['mfa_delete'], 'Enabled') # Update bucket: disable versioning & MFA Delete. - time.sleep(self._mfa_token_time_step) # Required to get new TOTP pin. + time.sleep(self._mfa_token_time_step + 2) # Required to get new TOTP pin. self._put( '/api/rgw/bucket/teuth-test-bucket', params={