From bef5d3d0c978c92ff9d427d0dadfedfe5f9814a4 Mon Sep 17 00:00:00 2001 From: Craig O'Donnell Date: Thu, 5 Oct 2023 21:30:07 +0000 Subject: [PATCH] template test for userAgent --- .github/workflows/main.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 0644c21d..0179051f 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -114,6 +114,13 @@ jobs: exit 1 fi + output=$(helm template oci://ttl.sh/automated-${{ github.run_id }}/replicated --version 0.0.0 --set userAgent=test-user-agent) + + if ! echo $output | grep -q 'value: "test-user-agent"'; then + printf "user-set userAgent should exist:\n\n%s\n\n" "$output" + exit 1 + fi + cat << EOF >> test-values.yaml extraEnv: - name: TEST_EXTRA_ENV