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 @@
module: ""

View File

@@ -0,0 +1,2 @@
# dagger universe
alpha.dagger.io

View File

@@ -0,0 +1,32 @@
package testing
import (
"alpha.dagger.io/dagger"
"alpha.dagger.io/dagger/op"
"alpha.dagger.io/alpine"
)
mySecret: dagger.#Secret
TestSecrets: #up: [
op.#Load & {
from: alpine.#Image & {
package: bash: "=~5.1"
}
},
op.#Exec & {
mount: "/secret": secret: mySecret
args: [
"/bin/bash",
"--noprofile",
"--norc",
"-eo",
"pipefail",
"-c",
#"""
test "$(cat /secret)" = "SecretValue"
"""#,
]
},
]