@@ -17,6 +17,10 @@ export PATH := $(LOCALBIN):$(PATH)
1717# Configuration
1818KIND_CLUSTER_NAME ?= spark-operator
1919CLEANUP ?= true
20+ NAMESPACE ?= spark-operator
21+ CONTROLLER_SA ?= spark-operator-controller
22+ SCHED_NAME ?= rbac-scheduled-smoke
23+ TIMEOUT_SECONDS ?= 180
2024
2125# #@ General
2226
@@ -84,11 +88,32 @@ e2e-kustomize-test: ## Run Go e2e tests using Kustomize manifests for operator i
8488 @echo " Running Go e2e tests with Kustomize installation..."
8589 cd $(REPO_ROOT ) && INSTALL_METHOD=kustomize go test ./examples/openshift/tests/e2e/ -v -ginkgo.v -timeout 30m
8690
91+ .PHONY : scheduledspark-rbac-check
92+ scheduledspark-rbac-check : # # RBAC preflight for ScheduledSparkApplication.
93+ @echo " Running RBAC preflight for ScheduledSparkApplication..."
94+ chmod +x $(TESTS_DIR ) /check-scheduledspark-rbac.sh
95+ NAMESPACE=$(NAMESPACE ) CONTROLLER_SA=$(CONTROLLER_SA ) \
96+ $(TESTS_DIR ) /check-scheduledspark-rbac.sh
97+
98+ .PHONY : scheduledspark-smoke
99+ scheduledspark-smoke : # # ScheduledSparkApplication smoke test.
100+ @echo " Running ScheduledSparkApplication smoke test..."
101+ chmod +x $(TESTS_DIR ) /test-scheduledspark-smoke.sh
102+ NAMESPACE=$(NAMESPACE ) SCHED_NAME=$(SCHED_NAME ) TIMEOUT_SECONDS=$(TIMEOUT_SECONDS ) \
103+ $(TESTS_DIR ) /test-scheduledspark-smoke.sh
104+
105+ .PHONY : scheduledspark-verify
106+ scheduledspark-verify : # # RBAC + ScheduledSparkApplication combined verification.
107+ $(MAKE ) scheduledspark-rbac-check
108+ $(MAKE ) scheduledspark-smoke
109+
87110.PHONY : test-all
88- test-all : # # Run all tests (operator-install, spark-pi, docling).
111+ test-all : # # Run all tests (operator-install, spark-pi, docling, scheduledspark ).
89112 @echo " Running all OpenShift/KIND tests..."
90113 $(MAKE ) operator-install CLEANUP=false
91114 $(MAKE ) test-spark-pi CLEANUP=false
115+ $(MAKE ) test-docling-spark CLEANUP=false
116+ $(MAKE ) scheduledspark-verify CLEANUP=false
92117 $(MAKE ) test-docling-spark
93118
94119# #@ Image Build/Load (CI and local)
0 commit comments