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

chore: add kongintegration test for KongUpstreamPolicy translation #4957

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

czeslavo
Copy link
Contributor

What this PR does / why we need it:

Adds kongintegration test that verifies the translated Upstreams are accepted by Kong instance and all of their fields are propagated as expected.

Also, adds CRD validation rules that were discovered during the development of the tests.

Which issue this PR fixes:

Closes #4929.

@czeslavo czeslavo self-assigned this Oct 24, 2023
@czeslavo czeslavo added this to the KIC v3.0.0 milestone Oct 24, 2023
@czeslavo czeslavo marked this pull request as ready for review October 24, 2023 17:41
@czeslavo czeslavo requested a review from a team as a code owner October 24, 2023 17:41
@codecov
Copy link

codecov bot commented Oct 24, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (47b4d24) 77.8% compared to head (6c0c499) 77.8%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #4957   +/-   ##
=====================================
  Coverage   77.8%   77.8%           
=====================================
  Files        166     166           
  Lines      18591   18591           
=====================================
  Hits       14480   14480           
+ Misses      3286    3284    -2     
- Partials     825     827    +2     

see 10 files with indirect coverage changes

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

@czeslavo czeslavo merged commit 4efc818 into main Oct 24, 2023
54 checks passed
@czeslavo czeslavo deleted the test/kongupstreampolicy-kongintegration branch October 24, 2023 20:54
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.

Implement translation of KongUpstreamPolicy to kong.Upstream
2 participants