Create functional test utility function to check tenant setting and retry until changed #1364
Labels
enhancement
This issue or pull request will add new or improve existing functionality
Testing
This issue or task involves testing the automation tool function
Milestone
💡 Summary
Some functional tests fail when a pre-condition to the test requires setting a tenant configuration value and the change is not reflected in time for the test. This results in a failed functional test that is the result of a false positive and wastes developer time verifying the results manually. The goal of this enhancement is to build a utility function that can check that a specific value has been set and wait until the change is reflected in API calls. The function should not block indefinitely, but should have a configurable timeout parameter after which it retries setting the value.
This "Set and Check" function should also be able to retry setting the tenant value after a configurable timeout and then restart its checking. Recommend defaulting the number of settings before failure to 3.
So, if you set the timeout to 10 seconds and the number of retries to 3, then the function would return with a failure after 30 seconds if the value did not change
Motivation and context
Using this function could prevent intermittent functional test failures from marking tests as failed incorrectly and provide a more stable signal of code quality back to the developers.
Implementation notes
Please provide details for implementation, such as:
Acceptance criteria
How do we know when this work is done?
The text was updated successfully, but these errors were encountered: