tests: move compute tests away

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi
2021-12-08 14:38:07 -05:00
parent 79f86227f3
commit 1872af9b18
61 changed files with 21 additions and 109 deletions

View 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