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 175d060
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,12 @@ pod-status-check:
workloads:
./scripts/workloads.sh

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

.PHONY: integration-tests
integration-tests: check-bins move-bins up pod-status-check workloads
integration-tests: check-bins move-bins up pod-status-check workloads test-workloads-delete
cargo test -p containerd-shim-spin-tests -- --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

## test that the workload pods can be terminated
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 175d060

Please sign in to comment.