From eaa0d84a13f1c3202db86b12c0efda622e471378 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alfonso=20Mart=C3=ADnez?= Date: Thu, 5 Mar 2020 16:22:43 +0100 Subject: [PATCH] mgr/dashboard: fix tasks.mgr.dashboard.test_rgw suite MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: https://tracker.ceph.com/issues/44405 Signed-off-by: Alfonso Martínez --- qa/tasks/mgr/dashboard/test_rgw.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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={