tests: move compute tests away
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
1
tests/core/compute/invalid/bool/cue.mod/module.cue
Normal file
1
tests/core/compute/invalid/bool/cue.mod/module.cue
Normal file
@@ -0,0 +1 @@
|
||||
module: ""
|
2
tests/core/compute/invalid/bool/cue.mod/pkg/.gitignore
vendored
Normal file
2
tests/core/compute/invalid/bool/cue.mod/pkg/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# dagger universe
|
||||
alpha.dagger.io
|
3
tests/core/compute/invalid/bool/main.cue
Normal file
3
tests/core/compute/invalid/bool/main.cue
Normal file
@@ -0,0 +1,3 @@
|
||||
package testing
|
||||
|
||||
#up: true
|
1
tests/core/compute/invalid/int/cue.mod/module.cue
Normal file
1
tests/core/compute/invalid/int/cue.mod/module.cue
Normal file
@@ -0,0 +1 @@
|
||||
module: ""
|
2
tests/core/compute/invalid/int/cue.mod/pkg/.gitignore
vendored
Normal file
2
tests/core/compute/invalid/int/cue.mod/pkg/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# dagger universe
|
||||
alpha.dagger.io
|
3
tests/core/compute/invalid/int/main.cue
Normal file
3
tests/core/compute/invalid/int/main.cue
Normal file
@@ -0,0 +1,3 @@
|
||||
package testing
|
||||
|
||||
#up: 123
|
1
tests/core/compute/invalid/string/cue.mod/module.cue
Normal file
1
tests/core/compute/invalid/string/cue.mod/module.cue
Normal file
@@ -0,0 +1 @@
|
||||
module: ""
|
2
tests/core/compute/invalid/string/cue.mod/pkg/.gitignore
vendored
Normal file
2
tests/core/compute/invalid/string/cue.mod/pkg/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# dagger universe
|
||||
alpha.dagger.io
|
3
tests/core/compute/invalid/string/main.cue
Normal file
3
tests/core/compute/invalid/string/main.cue
Normal file
@@ -0,0 +1,3 @@
|
||||
package testing
|
||||
|
||||
#up: "whatever"
|
1
tests/core/compute/invalid/struct/cue.mod/module.cue
Normal file
1
tests/core/compute/invalid/struct/cue.mod/module.cue
Normal file
@@ -0,0 +1 @@
|
||||
module: ""
|
2
tests/core/compute/invalid/struct/cue.mod/pkg/.gitignore
vendored
Normal file
2
tests/core/compute/invalid/struct/cue.mod/pkg/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# dagger universe
|
||||
alpha.dagger.io
|
3
tests/core/compute/invalid/struct/main.cue
Normal file
3
tests/core/compute/invalid/struct/main.cue
Normal file
@@ -0,0 +1,3 @@
|
||||
package testing
|
||||
|
||||
#up: whatever: "wrong"
|
@@ -0,0 +1 @@
|
||||
module: ""
|
2
tests/core/compute/success/exec-nocache/cue.mod/pkg/.gitignore
vendored
Normal file
2
tests/core/compute/success/exec-nocache/cue.mod/pkg/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# dagger universe
|
||||
alpha.dagger.io
|
25
tests/core/compute/success/exec-nocache/main.cue
Normal file
25
tests/core/compute/success/exec-nocache/main.cue
Normal file
@@ -0,0 +1,25 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"alpha.dagger.io/alpine"
|
||||
"alpha.dagger.io/dagger/op"
|
||||
)
|
||||
|
||||
rand: {
|
||||
string
|
||||
|
||||
#up: [
|
||||
op.#Load & {from: alpine.#Image},
|
||||
op.#Exec & {
|
||||
always: true
|
||||
args: ["sh", "-c", """
|
||||
tr -dc A-Za-z0-9 </dev/urandom | head -c 13 > /id
|
||||
"""]
|
||||
},
|
||||
op.#Export & {source: "/id"},
|
||||
]
|
||||
}
|
||||
|
||||
// If rand is executed twice, cue won't validate
|
||||
ref1: rand
|
||||
ref2: ref1
|
1
tests/core/compute/success/noop/cue.mod/module.cue
Normal file
1
tests/core/compute/success/noop/cue.mod/module.cue
Normal file
@@ -0,0 +1 @@
|
||||
module: ""
|
2
tests/core/compute/success/noop/cue.mod/pkg/.gitignore
vendored
Normal file
2
tests/core/compute/success/noop/cue.mod/pkg/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# dagger universe
|
||||
alpha.dagger.io
|
6
tests/core/compute/success/noop/main.cue
Normal file
6
tests/core/compute/success/noop/main.cue
Normal file
@@ -0,0 +1,6 @@
|
||||
package testing
|
||||
|
||||
// no-op, should not error
|
||||
empty: {
|
||||
#up: []
|
||||
}
|
@@ -0,0 +1 @@
|
||||
module: ""
|
2
tests/core/compute/success/overload/flat/cue.mod/pkg/.gitignore
vendored
Normal file
2
tests/core/compute/success/overload/flat/cue.mod/pkg/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# dagger universe
|
||||
alpha.dagger.io
|
19
tests/core/compute/success/overload/flat/main.cue
Normal file
19
tests/core/compute/success/overload/flat/main.cue
Normal file
@@ -0,0 +1,19 @@
|
||||
package testing
|
||||
|
||||
import "alpha.dagger.io/dagger/op"
|
||||
|
||||
new_prop: "lala"
|
||||
#new_def: "lala"
|
||||
|
||||
new_prop_too: string
|
||||
#new_def_too: string
|
||||
|
||||
#up: [
|
||||
op.#FetchContainer & {
|
||||
ref: "busybox"
|
||||
},
|
||||
op.#Exec & {
|
||||
args: ["true"]
|
||||
dir: "/"
|
||||
},
|
||||
]
|
@@ -0,0 +1 @@
|
||||
module: ""
|
2
tests/core/compute/success/overload/wrapped/cue.mod/pkg/.gitignore
vendored
Normal file
2
tests/core/compute/success/overload/wrapped/cue.mod/pkg/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# dagger universe
|
||||
alpha.dagger.io
|
21
tests/core/compute/success/overload/wrapped/main.cue
Normal file
21
tests/core/compute/success/overload/wrapped/main.cue
Normal file
@@ -0,0 +1,21 @@
|
||||
package testing
|
||||
|
||||
import "alpha.dagger.io/dagger/op"
|
||||
|
||||
foo: {
|
||||
new_prop: "lala"
|
||||
#new_def: "lala"
|
||||
|
||||
new_prop_too: string
|
||||
#new_def_too: string
|
||||
|
||||
#up: [
|
||||
op.#FetchContainer & {
|
||||
ref: "busybox"
|
||||
},
|
||||
op.#Exec & {
|
||||
args: ["true"]
|
||||
dir: "/"
|
||||
},
|
||||
]
|
||||
}
|
1
tests/core/compute/success/simple/cue.mod/module.cue
Normal file
1
tests/core/compute/success/simple/cue.mod/module.cue
Normal file
@@ -0,0 +1 @@
|
||||
module: ""
|
2
tests/core/compute/success/simple/cue.mod/pkg/.gitignore
vendored
Normal file
2
tests/core/compute/success/simple/cue.mod/pkg/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# dagger universe
|
||||
alpha.dagger.io
|
13
tests/core/compute/success/simple/main.cue
Normal file
13
tests/core/compute/success/simple/main.cue
Normal file
@@ -0,0 +1,13 @@
|
||||
package testing
|
||||
|
||||
import "alpha.dagger.io/dagger/op"
|
||||
|
||||
#up: [
|
||||
op.#FetchContainer & {
|
||||
ref: "busybox"
|
||||
},
|
||||
op.#Exec & {
|
||||
args: ["true"]
|
||||
dir: "/"
|
||||
},
|
||||
]
|
Reference in New Issue
Block a user