Skip to content

Commit 8223d52

Browse files
committed
test(e2e): label the Manager scaffold suite and include it in CI
Add Label("manager-e2e") to the Manager suite so its five specs (manager pod up, authenticated metrics endpoint, cert-manager Secret, webhook CA injection) run in the e2e job alongside kubevirt-e2e and rollout-e2e. Refs #38 Signed-off-by: Date Huang <tjjh89017@hotmail.com>
1 parent 9121703 commit 8223d52

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/actions/e2e-kubevirt/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ runs:
149149
set -euo pipefail
150150
# E2E_TIMEOUT stays below the caller job's timeout-minutes so a hang
151151
# is reported by `go test` (with goroutine dumps), not a runner kill.
152-
make test-e2e E2E_CLUSTER=k3s GINKGO_LABEL_FILTER='kubevirt-e2e || rollout-e2e' E2E_TIMEOUT=60m
152+
make test-e2e E2E_CLUSTER=k3s GINKGO_LABEL_FILTER='manager-e2e || kubevirt-e2e || rollout-e2e' E2E_TIMEOUT=60m
153153
154154
- name: Collect diagnostics on failure
155155
if: failure()

test/e2e/e2e_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const metricsServiceName = "vrouter-operator-controller-manager-metrics-service"
4242
// metricsRoleBindingName is the name of the RBAC that will be created to allow get the metrics data
4343
const metricsRoleBindingName = "vrouter-operator-metrics-binding"
4444

45-
var _ = Describe("Manager", Ordered, func() {
45+
var _ = Describe("Manager", Ordered, Label("manager-e2e"), func() {
4646
var controllerPodName string
4747

4848
// Before running the tests, set up the environment by creating the namespace,

0 commit comments

Comments
 (0)