Skip to content

🌱 Add basic webhook support e2e #2108

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
merged 2 commits into from
Jul 17, 2025

Conversation

perdasilva
Copy link
Contributor

@perdasilva perdasilva commented Jul 17, 2025

Description

Depends on #2107 to pass

Adds a basic webhook support e2e to the experimental e2e suite.

We should consider building a little e2e test library as there will be much re-use between the tests and the streams (standard, experimental, etc.). Alternatively, maybe we should consider not having multiple e2e test suites and use labels or some other artifice to to structure/select what gets run in which scenario. This might also make it easier to re-use helper functions and always ensure that the e2e suite is concise and consistent as features graduate.

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

@perdasilva perdasilva requested a review from a team as a code owner July 17, 2025 11:55
Copy link

netlify bot commented Jul 17, 2025

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit b9cb9c4
🔍 Latest deploy log https://app.netlify.com/projects/olmv1/deploys/687901a075ed1e0008e781f6
😎 Deploy Preview https://deploy-preview-2108--olmv1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@openshift-ci openshift-ci bot requested review from gallettilance and trgeiger July 17, 2025 11:55
@perdasilva perdasilva force-pushed the webhook-e2e branch 3 times, most recently from d26c5a6 to 57f0463 Compare July 17, 2025 13:57
Per Goncalves da Silva added 2 commits July 17, 2025 15:58
Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>
Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>
Copy link

codecov bot commented Jul 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.65%. Comparing base (5f5142d) to head (b9cb9c4).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2108      +/-   ##
==========================================
+ Coverage   73.55%   73.65%   +0.09%     
==========================================
  Files          78       78              
  Lines        7260     7260              
==========================================
+ Hits         5340     5347       +7     
+ Misses       1568     1564       -4     
+ Partials      352      349       -3     
Flag Coverage Δ
e2e 43.72% <ø> (ø)
experimental-e2e 56.38% <ø> (+6.39%) ⬆️
unit 58.87% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@trgeiger
Copy link
Contributor

/lgtm

I like your idea of moving some of the shared logic in the e2e tests into a shared library in a future issue/PR.

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 17, 2025
@tmshort
Copy link
Contributor

tmshort commented Jul 17, 2025

Look at those experimental-e2e results!

go test -count=1 -v ./test/experimental-e2e/...
=== RUN   TestNoop
    experimental_e2e_test.go:60: Running experimental-e2e tests
--- PASS: TestNoop (0.11s)
=== RUN   TestWebhookSupport
    experimental_e2e_test.go:65: Test support for bundles with webhooks
    experimental_e2e_test.go:68: By creating install namespace, and necessary rbac resources
    experimental_e2e_test.go:113: By creating the webhook-operator ClusterCatalog
    experimental_e2e_test.go:133: By waiting for the catalog to serve its metadata
    experimental_e2e_test.go:142: By installing the webhook-operator ClusterExtension
    experimental_e2e_test.go:168: By waiting for webhook-operator extension to be installed successfully
    experimental_e2e_test.go:180: By waiting for webhook-operator deployment to be available
    experimental_e2e_test.go:200: By checking an invalid CR is rejected by the validating webhook
    experimental_e2e_test.go:206: By checking a valid CR is mutated by the mutating webhook
    experimental_e2e_test.go:220: By checking a valid CR is converted to v2 by the conversion webhook
--- PASS: TestWebhookSupport (7.18s)
PASS
ok  	github.com/operator-framework/operator-controller/test/experimental-e2e	7.313s

@tmshort
Copy link
Contributor

tmshort commented Jul 17, 2025

/approve

Copy link

openshift-ci bot commented Jul 17, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tmshort

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 17, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit 5786e67 into operator-framework:main Jul 17, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants