-
Notifications
You must be signed in to change notification settings - Fork 591
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
test(e2e): move environment used in e2e to testenv package #4607
Conversation
I'd suggest that we do this change only if the can make it consistent with e.g. env variables used for Kong images |
For env variables for the Kong image please ensure that passing the image digest is possible too e.g.
it is useful when for instance when you report a bug to Gateway and want to ensure that everybody talks about exactly the same artifact |
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4607 +/- ##
=====================================
Coverage 78.0% 78.0%
=====================================
Files 163 163
Lines 18531 18546 +15
=====================================
+ Hits 14458 14477 +19
- Misses 3264 3265 +1
+ Partials 809 804 -5 ☔ View full report in Codecov by Sentry. |
E2E (targeted) tests with KIND-based clusters were started at https://github.com/Kong/kubernetes-ingress-controller/actions/runs/6085026268 |
Actually we can use the |
fa91287
to
8e160b8
Compare
E2E (targeted) tests with KIND-based clusters were started at https://github.com/Kong/kubernetes-ingress-controller/actions/runs/6218969564 |
@randmonkey The e2e tests failed :( |
Digged a while in workflow files and logs of the e2e runs and found that I did not update all appearances of |
c0602c7
to
cd8a066
Compare
E2E (targeted) tests with KIND-based clusters were started at https://github.com/Kong/kubernetes-ingress-controller/actions/runs/6225645924 |
cd8a066
to
61eb168
Compare
E2E (targeted) tests with KIND-based clusters were started at https://github.com/Kong/kubernetes-ingress-controller/actions/runs/6490928774 |
61eb168
to
6217a7a
Compare
E2E (targeted) tests with KIND-based clusters were started at https://github.com/Kong/kubernetes-ingress-controller/actions/runs/6493972188 |
What this PR does / why we need it:
move definition of all environment variable required in e2e tests in
testenv
package. Also adds some helper functions to the package.Which issue this PR fixes:
fixes #4593
Special notes for your reviewer:
TODO:
.github/workflows
(how to update the outputs for image of docker build to put them separately in targeted e2e tests?)TESTING.md
REVIEW: the env vars to specify images in e2e tests are changed, from a single
*_IMAGE_OVERRIDE
to*_IMAGE
and*_TAG
. Should this change happen?PR Readiness Checklist:
Complete these before marking the PR as
ready to review
:CHANGELOG.md
release notes have been updated to reflect any significant (and particularly user-facing) changes introduced by this PR