Skip to content
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

tests: fix TestKongRouterFlavorCompatibility e2e test and make it test all Kong Gateway flavors #4988

Merged

Conversation

pmalek
Copy link
Member

@pmalek pmalek commented Oct 26, 2023

What this PR does / why we need it:

Noticed during debugging e2e test failures from #4934

Make TestKongRouterFlavorCompatibility run tests for all 3 router flavors. This was already done as part of #4934. This PR here adds deployment of echo backends (which were not added in #4934) to allow test to pass.

Previous scaffolding didn't allow to add expressions because when a rolling upgrade is performed KIC is not able to transition from 1 router flavor into another. This was already done as part of #4934

This also adds cleanup of resources deployed in each subtest so that they can each deploy their own without conflicts.

This will fix failures as in https://github.com/Kong/kubernetes-ingress-controller/actions/runs/6654763042/job/18083851340

@pmalek pmalek added this to the KIC v3.0.0 milestone Oct 26, 2023
@pmalek pmalek self-assigned this Oct 26, 2023
@pmalek pmalek added ci/run-e2e Trigger e2e test run from PR and removed size/L labels Oct 26, 2023
@team-k8s-bot
Copy link
Collaborator

E2E (targeted) tests with KIND-based clusters were started at https://github.com/Kong/kubernetes-ingress-controller/actions/runs/6656417014

@team-k8s-bot team-k8s-bot removed the ci/run-e2e Trigger e2e test run from PR label Oct 26, 2023
@codecov
Copy link

codecov bot commented Oct 26, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1351004) 77.6% compared to head (fc4c8e4) 75.3%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##            main   #4988     +/-   ##
=======================================
- Coverage   77.6%   75.3%   -2.4%     
=======================================
  Files        167     167             
  Lines      18709   18709             
=======================================
- Hits       14527   14094    -433     
- Misses      3345    3789    +444     
+ Partials     837     826     -11     

see 13 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pmalek pmalek force-pushed the e2e-testflavor-test-make-it-work-with-all-router-flavors branch from 35abe36 to ba67786 Compare October 26, 2023 16:56
@pmalek pmalek added the ci/run-e2e Trigger e2e test run from PR label Oct 26, 2023
@team-k8s-bot
Copy link
Collaborator

E2E (targeted) tests with KIND-based clusters were started at https://github.com/Kong/kubernetes-ingress-controller/actions/runs/6657351292

@team-k8s-bot team-k8s-bot removed the ci/run-e2e Trigger e2e test run from PR label Oct 26, 2023
@pmalek pmalek changed the title tests: fix TestKongRouterFlavorCompatibility e2e test and make it test all Kong Gateway flavors tests: fix TestKongRouterFlavorCompatibility e2e test and make it test all Kong Gateway flavors Oct 26, 2023
@pmalek pmalek marked this pull request as ready for review October 26, 2023 18:01
@pmalek pmalek requested a review from a team as a code owner October 26, 2023 18:01
@pmalek pmalek force-pushed the e2e-testflavor-test-make-it-work-with-all-router-flavors branch from ba67786 to fc4c8e4 Compare October 27, 2023 08:03
@pull-request-size pull-request-size bot added size/S and removed size/L labels Oct 27, 2023
@pmalek pmalek enabled auto-merge (squash) October 27, 2023 08:30
@pmalek pmalek added the ci/run-e2e Trigger e2e test run from PR label Oct 27, 2023
@team-k8s-bot
Copy link
Collaborator

E2E (targeted) tests with KIND-based clusters were started at https://github.com/Kong/kubernetes-ingress-controller/actions/runs/6664894139

@team-k8s-bot team-k8s-bot removed the ci/run-e2e Trigger e2e test run from PR label Oct 27, 2023
@pmalek pmalek merged commit 1602bcf into main Oct 27, 2023
58 checks passed
@pmalek pmalek deleted the e2e-testflavor-test-make-it-work-with-all-router-flavors branch October 27, 2023 08:40
@pmalek
Copy link
Member Author

pmalek commented Oct 27, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants