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