-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: major refactor of E2E testing components (#1725)
Signed-off-by: Yashash H L <[email protected]>
- Loading branch information
Showing
16 changed files
with
471 additions
and
407 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,6 +120,9 @@ test-diamond-e2e: | |
test-sideinputs-e2e: | ||
test-%: | ||
$(MAKE) cleanup-e2e | ||
$(MAKE) deploy-nats | ||
$(MAKE) deploy-kafka | ||
$(MAKE) deploy-redis | ||
$(MAKE) image e2eapi-image | ||
$(MAKE) restart-control-plane-components | ||
cat test/manifests/e2e-api-pod.yaml | sed '[email protected]/numaproj/@$(IMAGE_NAMESPACE)/@' | sed 's/:latest/:$(VERSION)/' | kubectl -n numaflow-system apply -f - | ||
|
@@ -136,6 +139,25 @@ restart-control-plane-components: | |
kubectl -n numaflow-system delete po -lapp.kubernetes.io/component=numaflow-ux,app.kubernetes.io/part-of=numaflow --ignore-not-found=true | ||
kubectl -n numaflow-system delete po -lapp.kubernetes.io/component=numaflow-webhook,app.kubernetes.io/part-of=numaflow --ignore-not-found=true | ||
|
||
.PHONY: deploy-nats | ||
deploy-nats: | ||
kubectl -n numaflow-system delete statefulset nats --ignore-not-found=true | ||
kubectl -n numaflow-system apply -k config/apps/nats | ||
kubectl wait --for=condition=ready pod -l app=nats -n numaflow-system --timeout=120s | ||
|
||
.PHONY: deploy-kafka | ||
deploy-kafka: | ||
kubectl -n numaflow-system delete statefulset zookeeper kafka-broker --ignore-not-found=true | ||
kubectl -n numaflow-system apply -k config/apps/kafka | ||
kubectl wait --for=condition=ready pod -l app=kafka-broker -n numaflow-system --timeout=120s | ||
kubectl wait --for=condition=ready pod -l app=zookeeper -n numaflow-system --timeout=120s | ||
|
||
.PHONY: deploy-redis | ||
deploy-redis: | ||
kubectl -n numaflow-system delete statefulset redis --ignore-not-found=true | ||
kubectl apply -k config/apps/redis -n numaflow-system | ||
kubectl wait --for=condition=ready pod -l app=redis -n numaflow-system --timeout=120s | ||
|
||
.PHONY: cleanup-e2e | ||
cleanup-e2e: | ||
kubectl -n numaflow-system delete svc -lnumaflow-e2e=true --ignore-not-found=true | ||
|
@@ -148,6 +170,9 @@ cleanup-e2e: | |
# To run just one of the e2e tests by name (i.e. 'make TestCreateSimplePipeline'): | ||
Test%: | ||
$(MAKE) cleanup-e2e | ||
$(MAKE) deploy-nats | ||
$(MAKE) deploy-kafka | ||
$(MAKE) deploy-redis | ||
$(MAKE) image e2eapi-image | ||
kubectl -n numaflow-system delete po -lapp.kubernetes.io/component=controller-manager,app.kubernetes.io/part-of=numaflow | ||
kubectl -n numaflow-system delete po e2e-api-pod --ignore-not-found=true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- kafka-minimal.yaml | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.