tests: convert tests to new style
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
package def
|
||||
|
||||
import "alpha.dagger.io/dagger/op"
|
||||
|
||||
#dang: string
|
||||
|
||||
#up: [
|
||||
{
|
||||
do: "fetch-container"
|
||||
op.#FetchContainer & {
|
||||
ref: "alpine"
|
||||
},
|
||||
{
|
||||
do: "exec"
|
||||
dir: "/"
|
||||
op.#Exec & {
|
||||
args: ["sh", "-c", """
|
||||
echo success
|
||||
"""]
|
||||
|
@@ -1,15 +1,14 @@
|
||||
package nonoptional
|
||||
|
||||
import "alpha.dagger.io/dagger/op"
|
||||
|
||||
dang: string
|
||||
|
||||
#up: [
|
||||
{
|
||||
do: "fetch-container"
|
||||
op.#FetchContainer & {
|
||||
ref: "alpine"
|
||||
},
|
||||
{
|
||||
do: "exec"
|
||||
dir: "/"
|
||||
op.#Exec & {
|
||||
args: ["sh", "-c", """
|
||||
echo "This test SHOULD fail, because this SHOULD be executed"
|
||||
exit 1
|
||||
|
@@ -1,15 +1,14 @@
|
||||
package optional
|
||||
|
||||
import "alpha.dagger.io/dagger/op"
|
||||
|
||||
dang?: string
|
||||
|
||||
#up: [
|
||||
{
|
||||
do: "fetch-container"
|
||||
op.#FetchContainer & {
|
||||
ref: "alpine"
|
||||
},
|
||||
{
|
||||
do: "exec"
|
||||
dir: "/"
|
||||
op.#Exec & {
|
||||
args: ["sh", "-c", """
|
||||
echo success
|
||||
"""]
|
||||
|
Reference in New Issue
Block a user