forked from numaproj/numaflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: fix kafka e2e test (numaproj#16)
* ci: fix kafka e2e test Signed-off-by: Derek Wang <[email protected]>
- Loading branch information
Showing
7 changed files
with
41 additions
and
10 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
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 |
---|---|---|
|
@@ -97,11 +97,22 @@ test-e2e: | |
test-kafka-e2e: | ||
test-%: | ||
$(MAKE) image e2eapi-image | ||
kubectl -n numaflow-system delete po -lapp=controller-manager,app.kubernetes.io/part-of=numaflow | ||
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 | ||
cat test/manifests/e2e-api-pod.yaml | sed '[email protected]/numaproj/@$(IMAGE_NAMESPACE)/@' | sed 's/:$(BASE_VERSION)/:$(VERSION)/' | kubectl -n numaflow-system apply -f - | ||
go generate $(shell find ./test/$* -name '*.go') | ||
go test -v -timeout 10m -count 1 --tags test -p 1 ./test/$* | ||
-go test -v -timeout 10m -count 1 --tags test -p 1 ./test/$* | ||
$(MAKE) cleanup-e2e | ||
|
||
|
||
.PHONY: cleanup-e2e | ||
cleanup-e2e: | ||
kubectl -n numaflow-system delete svc -lnumaflow-e2e=true --ignore-not-found=true | ||
kubectl -n numaflow-system delete sts -lnumaflow-e2e=true --ignore-not-found=true | ||
kubectl -n numaflow-system delete deploy -lnumaflow-e2e=true --ignore-not-found=true | ||
kubectl -n numaflow-system delete cm -lnumaflow-e2e=true --ignore-not-found=true | ||
kubectl -n numaflow-system delete secret -lnumaflow-e2e=true --ignore-not-found=true | ||
kubectl -n numaflow-system delete po -lnumaflow-e2e=true --ignore-not-found=true | ||
|
||
.PHONY: image | ||
image: clean dist/$(BINARY_NAME)-linux-amd64 | ||
|
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,2 +1,6 @@ | ||
resources: | ||
- kafka-minimal.yaml | ||
|
||
commonLabels: | ||
"numaflow-e2e": "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
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