tests: move tests top-level
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
3
tests/compute/invalid/bool/main.cue
Normal file
3
tests/compute/invalid/bool/main.cue
Normal file
@@ -0,0 +1,3 @@
|
||||
package testing
|
||||
|
||||
#dagger: compute: true
|
3
tests/compute/invalid/int/main.cue
Normal file
3
tests/compute/invalid/int/main.cue
Normal file
@@ -0,0 +1,3 @@
|
||||
package testing
|
||||
|
||||
#dagger: compute: 123
|
16
tests/compute/invalid/overload/new_def/main.cue
Normal file
16
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
tests/compute/invalid/overload/new_prop/main.cue
Normal file
16
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: "/"
|
||||
}]
|
||||
}
|
3
tests/compute/invalid/string/main.cue
Normal file
3
tests/compute/invalid/string/main.cue
Normal file
@@ -0,0 +1,3 @@
|
||||
package testing
|
||||
|
||||
#dagger: compute: "whatever"
|
3
tests/compute/invalid/struct/main.cue
Normal file
3
tests/compute/invalid/struct/main.cue
Normal file
@@ -0,0 +1,3 @@
|
||||
package testing
|
||||
|
||||
#dagger: compute: whatever: "wrong"
|
11
tests/compute/success/noop/main.cue
Normal file
11
tests/compute/success/noop/main.cue
Normal file
@@ -0,0 +1,11 @@
|
||||
package testing
|
||||
|
||||
// no-op, should not error
|
||||
realempty: {
|
||||
#dagger: {}
|
||||
}
|
||||
|
||||
// no-op, should not error
|
||||
empty: {
|
||||
#dagger: compute: []
|
||||
}
|
17
tests/compute/success/overload/flat/main.cue
Normal file
17
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
tests/compute/success/overload/wrapped/main.cue
Normal file
19
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: "/"
|
||||
}]
|
||||
}
|
13
tests/compute/success/simple/main.cue
Normal file
13
tests/compute/success/simple/main.cue
Normal file
@@ -0,0 +1,13 @@
|
||||
package testing
|
||||
|
||||
#dagger: compute: [
|
||||
{
|
||||
do: "fetch-container"
|
||||
ref: "busybox"
|
||||
},
|
||||
{
|
||||
do: "exec"
|
||||
args: ["true"]
|
||||
dir: "/"
|
||||
},
|
||||
]
|
Reference in New Issue
Block a user