e2etests, allow camo CSV checks to tolerate 1 transient failed request. #451
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR attempts to allow e2e tests to tolerate a maximum number of CAMO CSV (Clusterserviceversions) request failures greater than 0 during the period where the test is waiting for the CAMO CSV to become present and phase status 'Succeeded'. This is intended to help the tests continue during normal/transient states of the CAMO CSV/cluster (ie such as upgrades).
CSV request failures will be both logged and counted. Once the max allowed number of CSV request failures is met, future request errors will be handled with the previous Expect() cases which will then abort the test.
If the number of CSV request errors does not exceed the allowed maximum, the check continues to loop every ~30 seconds checking the phase of the CAMO CSV.
This PR also logs the elapsed time for each iteration of the CSV check.
These changes have been tested locally against a cluster w/ and w/o the camo CSV present, and with the CSV in phases 'Pending' and 'Succeeded'. Local execution...