Move test assertions to separate file
This commit is contained in:
10
tests/assert-env-unset.sh
Executable file
10
tests/assert-env-unset.sh
Executable 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"
|
||||
Reference in New Issue
Block a user