Skip to content

🐛 Update test to use proper step pattern.#2619

Merged
openshift-merge-bot[bot] merged 1 commit intooperator-framework:mainfrom
tmshort:quick-test-fix
Apr 1, 2026
Merged

🐛 Update test to use proper step pattern.#2619
openshift-merge-bot[bot] merged 1 commit intooperator-framework:mainfrom
tmshort:quick-test-fix

Conversation

@tmshort
Copy link
Copy Markdown
Contributor

@tmshort tmshort commented Apr 1, 2026

Found by CodeRabbit:

Line 625 has an undefined step: ${TEST_NAMESPACE} does not match the registered step pattern.

The step definition for "with needed permissions" is registered only for the literal in test namespace pattern (verified in test/e2e/steps/steps.go line 128). Line 625 uses in ${TEST_NAMESPACE}, which will cause the e2e test to fail with an undefined step error. Update it to match the registered pattern.

Description

Reviewer Checklist

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

Found by CodeRabbit:

Line 625 has an undefined step: `${TEST_NAMESPACE}` does not match the registered
step pattern.

The step definition for "with needed permissions" is registered only for the
literal in test namespace pattern (verified in test/e2e/steps/steps.go line 128).
Line 625 uses `in ${TEST_NAMESPACE}`, which will cause the e2e test to fail with
an undefined step error. Update it to match the registered pattern.

Signed-off-by: Todd Short <tshort@redhat.com>
Copilot AI review requested due to automatic review settings April 1, 2026 13:50
@openshift-ci openshift-ci bot requested review from ankitathomas and trgeiger April 1, 2026 13:50
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 1, 2026

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit d9a4b66
🔍 Latest deploy log https://app.netlify.com/projects/olmv1/deploys/69cd22b333f68100086bee08
😎 Deploy Preview https://deploy-preview-2619--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.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes an E2E Gherkin step that was not matching any registered step definition, which would cause an “undefined step” failure at runtime.

Changes:

  • Replaces a step using ${TEST_NAMESPACE} with the literal phrase test namespace to match the existing step pattern.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.88%. Comparing base (95ef574) to head (d9a4b66).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2619      +/-   ##
==========================================
+ Coverage   68.86%   68.88%   +0.02%     
==========================================
  Files         139      139              
  Lines        9902     9902              
==========================================
+ Hits         6819     6821       +2     
+ Misses       2572     2571       -1     
+ Partials      511      510       -1     
Flag Coverage Δ
e2e 37.70% <ø> (+0.04%) ⬆️
experimental-e2e 52.24% <ø> (ø)
unit 53.53% <ø> (-0.02%) ⬇️

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.

@grokspawn
Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 1, 2026
Copy link
Copy Markdown
Member

@rashmigottipati rashmigottipati left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Apr 1, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: camilamacedo86, rashmigottipati

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

The pull request process is described here

Details 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 Apr 1, 2026
@openshift-merge-bot openshift-merge-bot bot merged commit f7f0352 into operator-framework:main Apr 1, 2026
29 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.

5 participants