tests: move tests top-level

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi
2021-02-03 15:02:43 -08:00
parent f6650901fd
commit 89c7136f75
74 changed files with 2 additions and 2 deletions

View File

@@ -0,0 +1,3 @@
package testing
#dagger: compute: true

View File

@@ -0,0 +1,3 @@
package testing
#dagger: compute: 123

View File

@@ -0,0 +1,16 @@
package testing
bar: #dagger: {
#new_def: "lala"
compute: [{
do: "fetch-container"
ref: "busybox"
},
{
do: "exec"
args: ["true"]
dir: "/"
}]
}

View File

@@ -0,0 +1,16 @@
package testing
bar: #dagger: {
new_prop: "lala"
compute: [{
do: "fetch-container"
ref: "busybox"
},
{
do: "exec"
args: ["true"]
dir: "/"
}]
}

View File

@@ -0,0 +1,3 @@
package testing
#dagger: compute: "whatever"

View File

@@ -0,0 +1,3 @@
package testing
#dagger: compute: whatever: "wrong"

View File

@@ -0,0 +1,11 @@
package testing
// no-op, should not error
realempty: {
#dagger: {}
}
// no-op, should not error
empty: {
#dagger: compute: []
}

View 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: "/"
}]

View 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: "/"
}]
}

View File

@@ -0,0 +1,13 @@
package testing
#dagger: compute: [
{
do: "fetch-container"
ref: "busybox"
},
{
do: "exec"
args: ["true"]
dir: "/"
},
]