tests: migrate ops test to bats
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
15
tests/ops/exec/env/valid/main.cue
vendored
Normal file
15
tests/ops/exec/env/valid/main.cue
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
package testing
|
||||
|
||||
#up: [
|
||||
{
|
||||
do: "fetch-container"
|
||||
ref: "alpine"
|
||||
},
|
||||
{
|
||||
do: "exec"
|
||||
args: ["sh", "-c", """
|
||||
[ "$foo" == "output environment" ] || exit 1
|
||||
"""]
|
||||
env: foo: "output environment"
|
||||
},
|
||||
]
|
Reference in New Issue
Block a user