tests: migrate ops test to bats
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
26
tests/ops/export/invalid/validation/main.cue
Normal file
26
tests/ops/export/invalid/validation/main.cue
Normal file
@@ -0,0 +1,26 @@
|
||||
package testing
|
||||
|
||||
test: {
|
||||
string
|
||||
=~"^NAAAA.+"
|
||||
|
||||
#up: [
|
||||
{
|
||||
do: "fetch-container"
|
||||
ref: "alpine"
|
||||
},
|
||||
{
|
||||
do: "exec"
|
||||
args: ["sh", "-c", """
|
||||
printf something > /tmp/out
|
||||
""",
|
||||
]
|
||||
},
|
||||
{
|
||||
do: "export"
|
||||
// Source path in the container
|
||||
source: "/tmp/out"
|
||||
format: "string"
|
||||
},
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user