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 <[email protected]>
  • Loading branch information
rajatjindal committed Mar 17, 2024
1 parent c0af18c commit 2f9a4ac
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,9 +43,14 @@ pod-status-check:
workloads:
./scripts/workloads.sh

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

.PHONY: integration-tests
integration-tests: check-bins move-bins up pod-status-check workloads
cargo test -p containerd-shim-spin-tests -- --nocapture
test-delete-workloads

.PHONY: tests/clean
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 2f9a4ac

Please sign in to comment.