-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a configurable wait period for shared resource #17464
base: master
Are you sure you want to change the base?
Conversation
It would be beneficial to drop this lower for tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.
Files not reviewed (1)
- conf/robottelo.yaml.template: Language not supported
Comments suppressed due to low confidence (1)
robottelo/config/validators.py:333
- The pull request title and description contain a typo: 'wat' should be 'wait'.
Validator('robottelo.shared_resource_wait', default=60, is_type_of=int),
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are now down to 6 seconds of test time if executed as below.
ROBOTTELO_ROBOTTELO__SHARED_RESOURCE_WAIT=2 ROBOTTELO_SERVER__HOSTNAME="" VAULT_SECRET_ID_FOR_DYNACONF=somesecret pytest tests/robottelo/test_shared_resource.py
I left one comment - I would like to enable users to set the wait time to less than 1 second.
@@ -330,6 +330,7 @@ | |||
default=[], | |||
cast=lambda x: list(map(str, x)), | |||
), | |||
Validator('robottelo.shared_resource_wait', default=60, is_type_of=int), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To allow the time to be lower than 1 second
Validator('robottelo.shared_resource_wait', default=60, is_type_of=int), | |
Validator('robottelo.shared_resource_wait', default=60, cast=float), |
It would be beneficial to drop this lower for tests.