contour
contour copied to clipboard
test/e2e: verify resource status upon creation
Adds checks to verify resources are eventually created with the expected status, where missing. Without these checks, it's unknown whether the "CreateAndWaitFor" method was successful or timed out waiting for the desired condition.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 81.59%. Comparing base (
3c79035) to head (492416e).
Additional details and impacted files
@@ Coverage Diff @@
## main #6347 +/- ##
=======================================
Coverage 81.59% 81.59%
=======================================
Files 133 133
Lines 15861 15861
=======================================
Hits 12941 12941
Misses 2624 2624
Partials 296 296
Considering nearly every invocation of the "CreateAndWaitFor" methods ignore the first returned argument, I'm going to look at dropping it from the API. Tests that need to re-fetch the Kube resource from the apiserver after creation can do it explicitly. Means all of these can become one-liners.