Merge "Add extra time in functional test that fails intermittently"
This commit is contained in:
commit
1d20294b99
@ -530,8 +530,8 @@ class SecretsTestCase(base.TestCase):
|
|||||||
a valid secret.
|
a valid secret.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# create a secret that expires in 5 seconds
|
# create a secret that expires in 15 seconds
|
||||||
timestamp = utils.create_timestamp_w_tz_and_offset(seconds=5)
|
timestamp = utils.create_timestamp_w_tz_and_offset(seconds=15)
|
||||||
|
|
||||||
test_model = secret_models.SecretModel(
|
test_model = secret_models.SecretModel(
|
||||||
**self.default_secret_create_data)
|
**self.default_secret_create_data)
|
||||||
@ -544,8 +544,8 @@ class SecretsTestCase(base.TestCase):
|
|||||||
get_resp = self.behaviors.get_secret_metadata(secret_ref)
|
get_resp = self.behaviors.get_secret_metadata(secret_ref)
|
||||||
self.assertEqual(200, get_resp.status_code)
|
self.assertEqual(200, get_resp.status_code)
|
||||||
|
|
||||||
# now wait 10 seconds
|
# now wait 20 seconds
|
||||||
time.sleep(10)
|
time.sleep(20)
|
||||||
|
|
||||||
# now get the secret - should be invalid (expired)
|
# now get the secret - should be invalid (expired)
|
||||||
resp = self.behaviors.get_secret_metadata(secret_ref)
|
resp = self.behaviors.get_secret_metadata(secret_ref)
|
||||||
|
Loading…
Reference in New Issue
Block a user