Commit c68844f
Add OpenShift Tests Extension (OTE) for baremetal E2E tests
Implements OTE framework to migrate baremetal E2E tests from
openshift-tests-private to cluster-baremetal-operator repository.
Changes:
- Add cmd/cluster-baremetal-tests-ext/main.go: OTE binary entry point
that registers as openshift:payload:cluster-baremetal extension
- Add test/e2e/baremetal/deployment_sanity.go: 6 migrated baremetal tests
* Cluster operators running check (OCP-29146)
* Nodes running check (OCP-29147)
* Deployment availability check (OCP-29148)
* Worker node validation (OCP-29149)
* CPU usage check (OCP-29150)
* Memory check (OCP-29151)
- Add test/e2e/baremetal/utils.go: Helper functions using compat_otp
- Update go.mod/go.sum: Add OTE dependencies and OpenShift kubernetes replaces
- Update Makefile: Add build-tests target with -mod=mod approach
Build system:
- Main CBO builds continue using vendor/ (no changes to existing workflow)
- OTE build uses -mod=mod flag to download deps to Go module cache
- GONOSUMDB bypasses checksum verification for origin pseudo-versions
- CGO_ENABLED=0 produces static binary for container compatibility
- GO_COMPLIANCE_POLICY="exempt_all" exempts test binaries from internal checks
Tests use platform=="baremetal" selector and run under origin CI.
Binary: cluster-baremetal-tests-ext (payload test extension)
Fixes from code review:
- Updated kubernetes dependencies to latest commit (73359c58edaa)
- Added comprehensive build flag documentation in Makefile
- Fixed topology-aware replica sizing (SNO/HighlyAvailable/External)
- Fixed malformed jsonpath in deployment status check
- Fixed Prometheus memory parsing to use ParseFloat instead of Atoi
- Fixed defer Close() placement to prevent nil pointer panics
- Fixed swapped iLO6 firmware URLs
- Removed shell injection vulnerabilities in certificate parsing
- Lowered go version to 1.25.5 for CI compatibility
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 6a7e66f commit c68844f
6 files changed
Lines changed: 2094 additions & 237 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
38 | 50 | | |
39 | 51 | | |
40 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
0 commit comments