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