OCPSTRAT-3624: Add e2e test for GCP disk license passthrough - #492
OCPSTRAT-3624: Add e2e test for GCP disk license passthrough#492redhat-chai-bot wants to merge 1 commit into
Conversation
Add a GCP-specific e2e test that exercises the new Licenses field on GCPDisk. The test creates a MachineSet with the enable-vmx license on the boot disk and verifies the Machine reaches Running phase, proving GCP accepts custom licenses via InitializeParams.Licenses. The vendored openshift/api is replaced with the fork branch that includes the Licenses field addition to the GCPDisk struct. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
@redhat-chai-bot: This pull request references OCPSTRAT-3624 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the feature to target either version "5.0.0." or "openshift-5.0.0.", but it targets "openshift-5.1" instead. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (33)
📒 Files selected for processing (2)
WalkthroughThe change adds a GCP disruptive test for boot-disk licenses, a helper that updates GCP provider specifications, and a Go module replacement for the OpenShift API dependency. ChangesGCP disk license validation
Estimated code review effort: 3 (Moderate) | ~20 minutes Mergeability Score: 🔵 Low · up to The PR adds a GCP-specific end-to-end test and temporarily depends on an API fork; it is mergeable with explicit owner awareness that release-branch approval for that dependency must be confirmed. Sequence Diagram(s)sequenceDiagram
participant GinkgoTest
participant MachineSet
participant Machine
participant ProviderSpec
GinkgoTest->>MachineSet: create single-Machine MachineSet
MachineSet->>Machine: create Machine
GinkgoTest->>Machine: wait for running state
Machine-->>GinkgoTest: running Machine
GinkgoTest->>ProviderSpec: read provider specification
GinkgoTest->>ProviderSpec: verify enable-vmx boot-disk license
Suggested reviewers: Important Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional. ❌ Failed checks (2 warnings, 1 inconclusive)
✅ Passed checks (12 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/testwith openshift/api#2980 openshift/machine-api-provider-gcp#184 AI-generated. Review for accuracy. |
|
/test ? |
|
@theobarberbany: The following commands are available to trigger required jobs: The following commands are available to trigger optional jobs: Use DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/testwith openshift/machine-api-provider-gcp/main/e2e-gcp-operator openshift/api#2980 openshift/machine-api-provider-gcp#184 AI-generated. Review for accuracy. |
|
/testwith openshift/cluster-api-actuator-pkg/master/e2e-gcp-operator openshift/api#2980 openshift/machine-api-provider-gcp#184 AI-generated. Review for accuracy. |
|
@redhat-chai-bot: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Summary
Adds a GCP-specific e2e test that exercises the
Licensesfield onGCPDiskby creating a MachineSet with a license URL on the boot disk and verifying the machine provisions successfully.This test will definitively prove whether GCP's
AttachedDiskInitializeParams.Licensesfield accepts user-specified license URLs at instance creation time, or whether the "reserved for Google's use" documentation means it will be rejected.Test Details
File:
pkg/infra/gcp_disk_licenses.goThe test:
projects/vm-options/global/licenses/enable-vmxto the boot disk'sLicensesfieldDeferCleanupLabels:
[sig-cluster-lifecycle],LabelMAPI,LabelDisruptive,LabelPeriodicDependencies
Licenses []stringtoGCPDiskgo.modreplace pointing to the openshift/api fork (temporary, until #2980 merges)Jira
OCPSTRAT-3624
Test Results
AI-generated. Review for accuracy.
@damdo requested in Slack thread
Summary by CodeRabbit
Tests
Quality Improvements