Files
bake/tests/env.bats
T
2019-09-23 07:22:56 -04:00

20 lines
374 B
Bash
Executable File

export HELLO=WORLD
@test "env cache clear" {
bake -b env.Bakefile --clear-envs env
}
@test "removal of environment untrusted variables" {
run bake -b env.Bakefile env
[[ "${output}" != *HELLO=WORLD* ]]
}
@test "allowance of environment untrusted variables" {
run bake --allow HELLO
run bake -b env.Bakefile env
[[ "${output}" == *"WORLD"* ]]
}