[release-4.22] OCPBUGS-84663: add unit tests for Nutanix to replace polarion workitems#10525
Conversation
… generation tests Add unit tests covering Nutanix platform validation, machine pool validation, machine generation, machineset generation, and RHCOS image naming. Key additions: - Platform validation: Prism Central/Element endpoint, port range, subnet, failure domain, load balancer, DNS records, and API timeout - Machine pool validation: CPU, memory, disk, boot type, project, GPU (with httptest fake server), category (with httptest fake server), and data disk device/adapter/storage config - Machine generation: GPU propagation, multi-subnet/multi-NIC, ControlPlaneMachineSet metadata/state/failure domains, and preloaded OS image name passthrough - MachineSets: compact cluster, single/multi failure domain via defaultMachinePlatform and explicit pool config, replica handling Also fixes typo "projct" → "project" in validateProjectConfig error messages and changes Prism Element port validation from field.Required to field.Invalid to match Prism Central behavior. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The package name matches the directory and is required for white-box test access to unexported symbols. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@openshift-cherrypick-robot: Jira Issue OCPBUGS-84548 has been cloned as Jira Issue OCPBUGS-84663. Will retitle bug to link to clone. 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. |
|
@openshift-cherrypick-robot: This pull request references Jira Issue OCPBUGS-84663, which is valid. The bug has been moved to the POST state. 7 validation(s) were run on this bug
The bug has been updated to refer to the pull request using the external bug tracker. 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. |
|
/verified by @jcpowermac via unit |
|
@jcpowermac: This PR has been marked as verified by 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. |
|
@openshift-cherrypick-robot: 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. |
|
/lgtm |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tthvo The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/label backport-risk-assessed |
5b9847e
into
openshift:release-4.22
|
@openshift-cherrypick-robot: Jira Issue Verification Checks: Jira Issue OCPBUGS-84663 Jira Issue OCPBUGS-84663 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. 🕓 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. |
|
Fix included in release 4.22.0-0.nightly-2026-04-29-224558 |
This is an automated cherry-pick of #10520
/assign jcpowermac