From e80a0c78179b3e4c31593864b7f70e4f763b29fe Mon Sep 17 00:00:00 2001 From: Martin Kravec Date: Wed, 12 Jun 2024 20:16:50 +0200 Subject: [PATCH] Reuse helm values in reconfiguration test Signed-off-by: Martin Kravec --- Makefile | 2 +- tests/reconfiguration-tests.bats | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 8ed6cf2..b2677dd 100644 --- a/Makefile +++ b/Makefile @@ -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: diff --git a/tests/reconfiguration-tests.bats b/tests/reconfiguration-tests.bats index 392834d..ff2954f 100644 --- a/tests/reconfiguration-tests.bats +++ b/tests/reconfiguration-tests.bats @@ -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" {