tests: migrate ops test to bats
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
@@ -0,0 +1 @@
|
||||
module: "dagger.io/testing"
|
@@ -0,0 +1,18 @@
|
||||
package nonoptional
|
||||
|
||||
dang: string
|
||||
|
||||
#up: [
|
||||
{
|
||||
do: "fetch-container"
|
||||
ref: "alpine"
|
||||
},
|
||||
{
|
||||
do: "exec"
|
||||
dir: "/"
|
||||
args: ["sh", "-c", """
|
||||
echo "This test SHOULD fail, because this SHOULD be executed"
|
||||
exit 1
|
||||
"""]
|
||||
},
|
||||
]
|
12
tests/ops/exec/undefined/with_pkg_mandatory/main.cue
Normal file
12
tests/ops/exec/undefined/with_pkg_mandatory/main.cue
Normal file
@@ -0,0 +1,12 @@
|
||||
package testing
|
||||
|
||||
import (
|
||||
"dagger.io/nonoptional"
|
||||
)
|
||||
|
||||
#up: [
|
||||
{
|
||||
do: "load",
|
||||
from: nonoptional
|
||||
},
|
||||
]
|
Reference in New Issue
Block a user