From d6cb32c29e2ed5c7321181cd3080c395c9b9d2fb Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Jun 03 2023 18:46:36 +0000 Subject: Test with secrets Use substituted secrets in highstate test. Signed-off-by: Georg Pfuetzenreuter --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8ce725b..fe3d5d6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,7 +16,7 @@ validate: show_highstate: stage: validate before_script: - - bin/prepare_test_env.sh -i opensuse -g -o Leap,15,4 + - bin/prepare_test_env.sh -i opensuse -g -o Leap,15,4 -s - bin/get_formulas.py -c -d /srv/formula -s --clone-from 'https://gitlab.infra.opensuse.org/saltstack-formulas' --clone-branch production script: bin/test_show_highstate.sh tags: diff --git a/bin/prepare_test_env.sh b/bin/prepare_test_env.sh index a287126..2be14c0 100755 --- a/bin/prepare_test_env.sh +++ b/bin/prepare_test_env.sh @@ -62,6 +62,7 @@ if [ -n "${PKG[@]}" ]; then $SUDO zypper -qn install --no-recommends ${PKG[@]} fi +bin/replace_secrets.sh $SUDO rm -rf /srv/{salt,pillar} 2>/dev/null $SUDO ln -s $PWD/salt /srv/salt $SUDO ln -s $PWD/pillar /srv/pillar