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

feat: add CEL validation for EnvoyProxy telemetry #2050

Merged
merged 5 commits into from
Nov 13, 2023

Conversation

shawnh2
Copy link
Contributor

@shawnh2 shawnh2 commented Oct 23, 2023

What type of PR is this?

add missing unit test cases

What this PR does / why we need it:

some unit test cases are missing according to https://app.codecov.io/gh/envoyproxy/gateway/blob/main/api%2Fv1alpha1%2Fvalidation%2Fenvoyproxy_validate.go

Which issue(s) this PR fixes:

Fixes #

Signed-off-by: sh2 <shawnhxh@outlook.com>
@shawnh2 shawnh2 requested a review from a team as a code owner October 23, 2023 09:56
@codecov
Copy link

codecov bot commented Oct 24, 2023

Codecov Report

Merging #2050 (7162222) into main (c85f0e4) will decrease coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #2050      +/-   ##
==========================================
- Coverage   64.33%   64.31%   -0.02%     
==========================================
  Files         107      107              
  Lines       14665    14665              
==========================================
- Hits         9434     9432       -2     
- Misses       4664     4666       +2     
  Partials      567      567              

see 1 file with indirect coverage changes

Copy link
Contributor

@zirain zirain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rethink about this, let's move to #2059.

@arkodg
Copy link
Contributor

arkodg commented Nov 10, 2023

@shawnh2 we've moved to CEL based validations, the newer tests live in https://github.com/envoyproxy/gateway/blob/main/test/cel-validation/envoyproxy_test.go, can we move the new test cases there instead and also make sure a CEL validation exists for it
cc @zirain

@shawnh2 shawnh2 changed the title test: add missing test cases for envoyproxy validate methods feat: add CEL validation for EnvoyProxy telemetry Nov 12, 2023
@shawnh2
Copy link
Contributor Author

shawnh2 commented Nov 12, 2023

add missing CEL validation and test for ProxyTelemetry, PTAL @arkodg @zirain

Copy link
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks !

@arkodg arkodg requested review from a team, qicz and tanujd11 and removed request for a team November 13, 2023 17:13
@zirain zirain merged commit 7835e2f into envoyproxy:main Nov 13, 2023
18 checks passed
@shawnh2 shawnh2 deleted the test-envoyproxy-validate branch November 14, 2023 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants