Skip to content

Commit

Permalink
Reuse helm values in reconfiguration test
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kravec <[email protected]>
  • Loading branch information
kravciak committed Jun 12, 2024
1 parent d6ea06d commit e80a0c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ tests: $(filter-out upgrade.bats audit-scanner-installation.bats, $(TESTS))
.PHONY: cluster install reinstall clean

cluster:
k3d cluster create $(CLUSTER_NAME) -s 1 -a 1 --wait --timeout $(TIMEOUT) -v /dev/mapper:/dev/mapper --image rancher/k3s:v1.24.12-k3s1
k3d cluster create $(CLUSTER_NAME) -s 1 -a 1 --wait --timeout $(TIMEOUT) -v /dev/mapper:/dev/mapper --image rancher/k3s:v1.27.12-k3s1
$(kube) wait --for=condition=Ready nodes --all

install:
Expand Down
4 changes: 2 additions & 2 deletions tests/reconfiguration-tests.bats
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ teardown_file() {
}

@test "[Reconfiguration tests] Reconfigure Kubewarden stack" {
helm_up kubewarden-controller --values=$RESOURCES_DIR/reconfiguration-values.yaml
helm_up kubewarden-controller --values=$RESOURCES_DIR/reconfiguration-values.yaml --reuse-values
wait_for_cluster_admission_policy PolicyActive
}

@test "[Reconfiguration tests] Apply psp-user-group policy" {
apply_cluster_admission_policy $RESOURCES_DIR/psp-user-group-policy.yaml
apply_admission_policy $RESOURCES_DIR/psp-user-group-policy.yaml
}

@test "[Reconfiguration tests] Test that pod-privileged policy works" {
Expand Down

0 comments on commit e80a0c7

Please sign in to comment.