Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: attempt to fix the CI #105

Merged
merged 10 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

test:
name: Test
runs-on: self-hosted
runs-on: ubuntu-latest

steps:
- name: Checkout
Expand Down
14 changes: 10 additions & 4 deletions tests/bats/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,13 @@
}

@test "resize linear pvc" {
run kubectl apply -f files/pvc.linear.resize.yaml --wait --timeout=20s
run kubectl apply -f files/pvc.linear.resize.yaml --wait --timeout=30s
[ "$status" -eq 0 ]

run kubectl wait --for=jsonpath='{.status.capacity.storage}'=200Mi -f files/pvc.linear.resize.yaml --timeout=20s
# in some cases a pod restart is required
run kubectl replace --force -f files/pod.linear.vol.yaml --wait --timeout=50s

run kubectl wait --for=jsonpath='{.status.capacity.storage}'=200Mi -f files/pvc.linear.resize.yaml --timeout=30s
[ "$status" -eq 0 ]
}

Expand Down Expand Up @@ -76,10 +79,13 @@
}

@test "resize block pvc" {
run kubectl apply -f files/pvc.block.resize.yaml --wait --timeout=30s
run kubectl apply -f files/pvc.block.resize.yaml --wait --timeout=40s
[ "$status" -eq 0 ]

run kubectl wait --for=jsonpath='{.status.capacity.storage}'=200Mi -f files/pvc.block.resize.yaml --timeout=30s
# in some cases a pod restart is required
run kubectl replace --force -f files/pod.block.vol.yaml --wait --timeout=50s

run kubectl wait --for=jsonpath='{.status.capacity.storage}'=200Mi -f files/pvc.block.resize.yaml --timeout=40s
[ "$status" -eq 0 ]
}

Expand Down