Skip to content

Commit

Permalink
add workload delete test
Browse files Browse the repository at this point in the history
Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com>
  • Loading branch information
rajatjindal committed Mar 17, 2024
1 parent 378ab81 commit 2a0dbc6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,13 @@ pod-status-check:
workloads:
./scripts/workloads.sh

./PHONY: test-delete-workloads
test-delete-workloads:
./scripts/delete-workloads.sh

.PHONY: integration-tests
integration-tests: install-cross check-bins move-bins up pod-status-check workloads
test-delete-workloads
cross test --release -- --nocapture

.PHONY: tests/clean
Expand Down
9 changes: 9 additions & 0 deletions scripts/workloads-delete.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

set -euo pipefail

## delete the workloads created in workloads.sh
kubectl delete pod -l app=wasm-spin --timeout 10s
kubectl delete pod -l app=spin-keyvalue --timeout 10s
kubectl delete pod -l app=spin-outbound-redis --timeout 10s

0 comments on commit 2a0dbc6

Please sign in to comment.