Move test assertions to separate file

This commit is contained in:
Floris van der Grinten
2021-05-19 15:12:12 +02:00
parent 4c749feaf1
commit a361a0c784
3 changed files with 40 additions and 38 deletions

10
tests/assert-env-unset.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
assert_env_unset() {
if [ -n "$(printenv $1)" ]; then
echo "Expected secret $1 to be unset"
exit 1
fi
}
assert_env_unset "SECRET"
assert_env_unset "MULTILINE_SECRET"