Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add CEL validation tests for ObservabilityPolicy CRD #3735

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

Merged
shaun-nx merged 11 commits into main from tests/cel-observabilitypolicy
Aug 20, 2025

Conversation

Copy link
Contributor

@shaun-nx shaun-nx commented Aug 14, 2025
edited
Loading

Proposed changes

This change adds test for the CEL validation for the ObservabilityPolicy CR

Closes #3670

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have updated necessary documentation
  • I have rebased my branch onto main
  • I will ensure my PR is targeting the main branch and pulling from my branch from my own fork

Copy link

codecov bot commented Aug 14, 2025
edited
Loading

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.86%. Comparing base (0a3cb1a) to head (6404556).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@ Coverage Diff @@
## main #3735 +/- ##
=======================================
 Coverage 86.86% 86.86% 
=======================================
 Files 128 128 
 Lines 16201 16201 
 Branches 62 62 
=======================================
 Hits 14073 14073 
 Misses 1954 1954 
 Partials 174 174 

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Collaborator

@sjberman sjberman left a comment

Choose a reason for hiding this comment

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

I feel like a lot of these separate test functions could just be combined into one, to reduce duplication. They are ultimately formatted and testing very similar things. For example, 3 different test functions that are testing the TargetRef field. Could be one large list of structs in a single test IMO.

@shaun-nx shaun-nx merged commit 1dac314 into main Aug 20, 2025
85 of 88 checks passed
@shaun-nx shaun-nx deleted the tests/cel-observabilitypolicy branch August 20, 2025 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@sjberman sjberman sjberman approved these changes

@ciarams87 ciarams87 ciarams87 approved these changes

Assignees
No one assigned
Labels
tests Pull requests that update tests
Projects
Status: Done
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Add CEL test for ObservabilityPolicy CRD

AltStyle によって変換されたページ (->オリジナル) /