diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index aa978b67..fe153828 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -63,6 +63,6 @@ jobs: - name : Setup up mc run : ./.github/workflows/scripts/install-mc.sh - name : Setup k3d cluster - run : CLUSTER_NAME=backup-restore K3S_VERSION=${{ matrix.K3S_VERSION }} ./.github/workflows/e2e/scripts/setup-cluster.sh + run : CLUSTER_NAME=backup-restore K3S_VERSION=${{ matrix.K3S_VERSION }} ./.github/workflows/scripts/setup-cluster.sh - name : Run integration tests run : ./scripts/integration \ No newline at end of file diff --git a/tests/hull/main.go b/tests/hull/main.go index fc326be9..de941b5f 100644 --- a/tests/hull/main.go +++ b/tests/hull/main.go @@ -572,9 +572,18 @@ var suite = test.Suite{ if checker.Select("rancher-backup-patch-sa", "cattle-resources-system", obj) { return } - sdr, _ := checker.RenderValue[string](tc, ".Values.global.cattle.systemDefaultRegistry") + sdr, ok := checker.RenderValue[string](tc, ".Values.global.cattle.systemDefaultRegistry") + if !ok { + panic("systemDefaultRegistry not found") + } repo, _ := checker.RenderValue[string](tc, ".Values.image.repository") + if !ok { + panic("repository not found") + } tag, _ := checker.RenderValue[string](tc, ".Values.image.tag") + if !ok { + panic("tag not found") + } expected := repo + ":" + tag if sdr != "" { expected = sdr + "/" + repo + ":" + tag