Adding tests
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
This commit is contained in:
5
examples/tests/compute/invalid/bool/main.cue
Normal file
5
examples/tests/compute/invalid/bool/main.cue
Normal file
@@ -0,0 +1,5 @@
|
||||
package testing
|
||||
|
||||
#dagger: {
|
||||
compute: true
|
||||
}
|
5
examples/tests/compute/invalid/int/main.cue
Normal file
5
examples/tests/compute/invalid/int/main.cue
Normal file
@@ -0,0 +1,5 @@
|
||||
package testing
|
||||
|
||||
#dagger: {
|
||||
compute: 123
|
||||
}
|
5
examples/tests/compute/invalid/string/main.cue
Normal file
5
examples/tests/compute/invalid/string/main.cue
Normal file
@@ -0,0 +1,5 @@
|
||||
package testing
|
||||
|
||||
#dagger: {
|
||||
compute: "whatever"
|
||||
}
|
7
examples/tests/compute/invalid/struct/main.cue
Normal file
7
examples/tests/compute/invalid/struct/main.cue
Normal file
@@ -0,0 +1,7 @@
|
||||
package testing
|
||||
|
||||
#dagger: {
|
||||
compute: {
|
||||
whatever: "wrong"
|
||||
}
|
||||
}
|
18
examples/tests/compute/invalid/undefined_prop/main.cue
Normal file
18
examples/tests/compute/invalid/undefined_prop/main.cue
Normal file
@@ -0,0 +1,18 @@
|
||||
package testing
|
||||
|
||||
bar: string
|
||||
|
||||
#dagger: {
|
||||
compute: [
|
||||
{
|
||||
do: "fetch-container"
|
||||
ref: "alpine"
|
||||
},
|
||||
{
|
||||
do: "exec"
|
||||
dir: "/"
|
||||
args: ["sh", "-c", "echo \(foo.bar)"]
|
||||
}
|
||||
]
|
||||
foo: bar: bar
|
||||
}
|
Reference in New Issue
Block a user