Work on integration tests
- add new entries for #70 and #74 - cleaned-up / enriched a little bit compute and exec tests Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
This commit is contained in:
16
examples/tests/compute/invalid/overload/new_def/main.cue
Normal file
16
examples/tests/compute/invalid/overload/new_def/main.cue
Normal file
@@ -0,0 +1,16 @@
|
||||
package testing
|
||||
|
||||
bar: #dagger: {
|
||||
|
||||
#new_def: "lala"
|
||||
|
||||
compute: [{
|
||||
do: "fetch-container"
|
||||
ref: "busybox"
|
||||
},
|
||||
{
|
||||
do: "exec"
|
||||
args: ["true"]
|
||||
dir: "/"
|
||||
}]
|
||||
}
|
16
examples/tests/compute/invalid/overload/new_prop/main.cue
Normal file
16
examples/tests/compute/invalid/overload/new_prop/main.cue
Normal file
@@ -0,0 +1,16 @@
|
||||
package testing
|
||||
|
||||
bar: #dagger: {
|
||||
|
||||
new_prop: "lala"
|
||||
|
||||
compute: [{
|
||||
do: "fetch-container"
|
||||
ref: "busybox"
|
||||
},
|
||||
{
|
||||
do: "exec"
|
||||
args: ["true"]
|
||||
dir: "/"
|
||||
}]
|
||||
}
|
17
examples/tests/compute/success/overload/flat/main.cue
Normal file
17
examples/tests/compute/success/overload/flat/main.cue
Normal file
@@ -0,0 +1,17 @@
|
||||
package testing
|
||||
|
||||
new_prop: "lala"
|
||||
#new_def: "lala"
|
||||
|
||||
new_prop_too: string
|
||||
#new_def_too: string
|
||||
|
||||
#dagger: compute: [{
|
||||
do: "fetch-container"
|
||||
ref: "busybox"
|
||||
},
|
||||
{
|
||||
do: "exec"
|
||||
args: ["true"]
|
||||
dir: "/"
|
||||
}]
|
19
examples/tests/compute/success/overload/wrapped/main.cue
Normal file
19
examples/tests/compute/success/overload/wrapped/main.cue
Normal file
@@ -0,0 +1,19 @@
|
||||
package testing
|
||||
|
||||
foo: {
|
||||
new_prop: "lala"
|
||||
#new_def: "lala"
|
||||
|
||||
new_prop_too: string
|
||||
#new_def_too: string
|
||||
|
||||
#dagger: compute: [{
|
||||
do: "fetch-container"
|
||||
ref: "busybox"
|
||||
},
|
||||
{
|
||||
do: "exec"
|
||||
args: ["true"]
|
||||
dir: "/"
|
||||
}]
|
||||
}
|
@@ -3,7 +3,7 @@ package testing
|
||||
#dagger: compute: [
|
||||
{
|
||||
do: "fetch-container"
|
||||
ref: "alpine"
|
||||
ref: "busybox"
|
||||
},
|
||||
{
|
||||
do: "exec"
|
@@ -1,17 +0,0 @@
|
||||
package testing
|
||||
|
||||
hello: "world"
|
||||
|
||||
bar: string
|
||||
|
||||
#dagger: compute: [
|
||||
{
|
||||
do: "fetch-container"
|
||||
ref: "alpine"
|
||||
},
|
||||
{
|
||||
do: "exec"
|
||||
dir: "/"
|
||||
args: ["sh", "-c", "echo \(bar)"]
|
||||
},
|
||||
]
|
Reference in New Issue
Block a user