2021-01-16 01:24:17 +01:00
|
|
|
package testing
|
|
|
|
|
2021-06-23 16:31:42 +02:00
|
|
|
import "alpha.dagger.io/dagger/op"
|
2021-04-15 01:44:34 +02:00
|
|
|
|
2021-04-24 22:33:52 +02:00
|
|
|
TestExportConcurrency1: {
|
2021-01-16 01:24:17 +01:00
|
|
|
string
|
|
|
|
|
2021-04-03 00:00:30 +02:00
|
|
|
#up: [
|
2021-04-15 01:44:34 +02:00
|
|
|
op.#FetchContainer & {
|
2021-01-16 01:24:17 +01:00
|
|
|
ref: "alpine"
|
|
|
|
},
|
2021-04-15 01:44:34 +02:00
|
|
|
op.#Exec & {
|
2021-01-16 01:24:17 +01:00
|
|
|
args: ["sh", "-c", """
|
2021-04-24 22:33:52 +02:00
|
|
|
echo -n lol1 > /tmp/out
|
2021-01-21 03:26:10 +01:00
|
|
|
"""]
|
|
|
|
dir: "/"
|
2021-01-16 01:24:17 +01:00
|
|
|
always: true
|
|
|
|
},
|
2021-04-15 01:44:34 +02:00
|
|
|
op.#Export & {
|
2021-01-16 01:24:17 +01:00
|
|
|
source: "/tmp/out"
|
|
|
|
format: "string"
|
|
|
|
},
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2021-04-24 22:33:52 +02:00
|
|
|
TestExportConcurrency2: {
|
2021-01-16 01:24:17 +01:00
|
|
|
string
|
|
|
|
|
2021-04-03 00:00:30 +02:00
|
|
|
#up: [
|
2021-04-15 01:44:34 +02:00
|
|
|
op.#FetchContainer & {
|
2021-01-16 01:24:17 +01:00
|
|
|
ref: "alpine"
|
|
|
|
},
|
2021-04-15 01:44:34 +02:00
|
|
|
op.#Exec & {
|
2021-01-16 01:24:17 +01:00
|
|
|
args: ["sh", "-c", """
|
2021-04-24 22:33:52 +02:00
|
|
|
echo -n lol2 > /tmp/out
|
2021-01-21 03:26:10 +01:00
|
|
|
"""]
|
|
|
|
dir: "/"
|
2021-01-16 01:24:17 +01:00
|
|
|
always: true
|
|
|
|
},
|
2021-04-15 01:44:34 +02:00
|
|
|
op.#Export & {
|
2021-01-16 01:24:17 +01:00
|
|
|
source: "/tmp/out"
|
|
|
|
format: "string"
|
|
|
|
},
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2021-04-24 22:33:52 +02:00
|
|
|
TestExportConcurrency3: {
|
2021-01-16 01:24:17 +01:00
|
|
|
string
|
|
|
|
|
2021-04-03 00:00:30 +02:00
|
|
|
#up: [
|
2021-04-15 01:44:34 +02:00
|
|
|
op.#FetchContainer & {
|
2021-01-16 01:24:17 +01:00
|
|
|
ref: "alpine"
|
|
|
|
},
|
2021-04-15 01:44:34 +02:00
|
|
|
op.#Exec & {
|
2021-01-16 01:24:17 +01:00
|
|
|
args: ["sh", "-c", """
|
2021-04-24 22:33:52 +02:00
|
|
|
echo -n lol3 > /tmp/out
|
2021-01-21 03:26:10 +01:00
|
|
|
"""]
|
|
|
|
dir: "/"
|
2021-01-16 01:24:17 +01:00
|
|
|
always: true
|
|
|
|
},
|
2021-04-15 01:44:34 +02:00
|
|
|
op.#Export & {
|
2021-01-16 01:24:17 +01:00
|
|
|
source: "/tmp/out"
|
|
|
|
format: "string"
|
|
|
|
},
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2021-04-24 22:33:52 +02:00
|
|
|
TestExportConcurrency4: {
|
2021-01-16 01:24:17 +01:00
|
|
|
string
|
|
|
|
|
2021-04-03 00:00:30 +02:00
|
|
|
#up: [
|
2021-04-15 01:44:34 +02:00
|
|
|
op.#FetchContainer & {
|
2021-01-16 01:24:17 +01:00
|
|
|
ref: "alpine"
|
|
|
|
},
|
2021-04-15 01:44:34 +02:00
|
|
|
op.#Exec & {
|
2021-01-16 01:24:17 +01:00
|
|
|
args: ["sh", "-c", """
|
2021-04-24 22:33:52 +02:00
|
|
|
echo -n lol4 > /tmp/out
|
2021-01-21 03:26:10 +01:00
|
|
|
"""]
|
|
|
|
dir: "/"
|
2021-01-16 01:24:17 +01:00
|
|
|
always: true
|
|
|
|
},
|
2021-04-15 01:44:34 +02:00
|
|
|
op.#Export & {
|
2021-01-16 01:24:17 +01:00
|
|
|
source: "/tmp/out"
|
|
|
|
format: "string"
|
|
|
|
},
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2021-04-24 22:33:52 +02:00
|
|
|
TestExportConcurrency5: {
|
2021-01-16 01:24:17 +01:00
|
|
|
string
|
|
|
|
|
2021-04-03 00:00:30 +02:00
|
|
|
#up: [
|
2021-04-15 01:44:34 +02:00
|
|
|
op.#FetchContainer & {
|
2021-01-16 01:24:17 +01:00
|
|
|
ref: "alpine"
|
|
|
|
},
|
2021-04-15 01:44:34 +02:00
|
|
|
op.#Exec & {
|
2021-01-16 01:24:17 +01:00
|
|
|
args: ["sh", "-c", """
|
2021-04-24 22:33:52 +02:00
|
|
|
echo -n lol5 > /tmp/out
|
2021-01-21 03:26:10 +01:00
|
|
|
"""]
|
2021-01-16 01:24:17 +01:00
|
|
|
always: true
|
|
|
|
},
|
2021-04-15 01:44:34 +02:00
|
|
|
op.#Export & {
|
2021-01-16 01:24:17 +01:00
|
|
|
source: "/tmp/out"
|
|
|
|
format: "string"
|
|
|
|
},
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2021-04-24 22:33:52 +02:00
|
|
|
TestExportConcurrency6: {
|
2021-01-16 01:24:17 +01:00
|
|
|
string
|
|
|
|
|
2021-04-03 00:00:30 +02:00
|
|
|
#up: [
|
2021-04-15 01:44:34 +02:00
|
|
|
op.#FetchContainer & {
|
2021-01-16 01:24:17 +01:00
|
|
|
ref: "alpine"
|
|
|
|
},
|
2021-04-15 01:44:34 +02:00
|
|
|
op.#Exec & {
|
2021-01-16 01:24:17 +01:00
|
|
|
args: ["sh", "-c", """
|
2021-04-24 22:33:52 +02:00
|
|
|
echo -n lol6 > /tmp/out
|
2021-01-21 03:26:10 +01:00
|
|
|
"""]
|
2021-01-16 01:24:17 +01:00
|
|
|
always: true
|
|
|
|
},
|
2021-04-15 01:44:34 +02:00
|
|
|
op.#Export & {
|
2021-01-16 01:24:17 +01:00
|
|
|
source: "/tmp/out"
|
|
|
|
format: "string"
|
|
|
|
},
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2021-04-24 22:33:52 +02:00
|
|
|
TestExportConcurrency7: {
|
2021-01-16 01:24:17 +01:00
|
|
|
string
|
|
|
|
|
2021-04-03 00:00:30 +02:00
|
|
|
#up: [
|
2021-04-15 01:44:34 +02:00
|
|
|
op.#FetchContainer & {
|
2021-01-16 01:24:17 +01:00
|
|
|
ref: "alpine"
|
|
|
|
},
|
2021-04-15 01:44:34 +02:00
|
|
|
op.#Exec & {
|
2021-01-16 01:24:17 +01:00
|
|
|
args: ["sh", "-c", """
|
2021-04-24 22:33:52 +02:00
|
|
|
echo -n lol7 > /tmp/out
|
2021-01-21 03:26:10 +01:00
|
|
|
"""]
|
2021-01-16 01:24:17 +01:00
|
|
|
always: true
|
|
|
|
},
|
2021-04-15 01:44:34 +02:00
|
|
|
op.#Export & {
|
2021-01-16 01:24:17 +01:00
|
|
|
source: "/tmp/out"
|
|
|
|
format: "string"
|
|
|
|
},
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2021-04-24 22:33:52 +02:00
|
|
|
TestExportConcurrency8: {
|
2021-01-16 01:24:17 +01:00
|
|
|
string
|
|
|
|
|
2021-04-03 00:00:30 +02:00
|
|
|
#up: [
|
2021-04-15 01:44:34 +02:00
|
|
|
op.#FetchContainer & {
|
2021-01-16 01:24:17 +01:00
|
|
|
ref: "alpine"
|
|
|
|
},
|
2021-04-15 01:44:34 +02:00
|
|
|
op.#Exec & {
|
2021-01-16 01:24:17 +01:00
|
|
|
args: ["sh", "-c", """
|
2021-04-24 22:33:52 +02:00
|
|
|
echo -n lol8 > /tmp/out
|
2021-01-21 03:26:10 +01:00
|
|
|
"""]
|
|
|
|
dir: "/"
|
2021-01-16 01:24:17 +01:00
|
|
|
always: true
|
|
|
|
},
|
2021-04-15 01:44:34 +02:00
|
|
|
op.#Export & {
|
2021-01-16 01:24:17 +01:00
|
|
|
source: "/tmp/out"
|
|
|
|
format: "string"
|
|
|
|
},
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2021-04-24 22:33:52 +02:00
|
|
|
TestExportConcurrency9: {
|
2021-01-16 01:24:17 +01:00
|
|
|
string
|
|
|
|
|
2021-04-03 00:00:30 +02:00
|
|
|
#up: [
|
2021-04-15 01:44:34 +02:00
|
|
|
op.#FetchContainer & {
|
2021-01-16 01:24:17 +01:00
|
|
|
ref: "alpine"
|
|
|
|
},
|
2021-04-15 01:44:34 +02:00
|
|
|
op.#Exec & {
|
2021-01-16 01:24:17 +01:00
|
|
|
args: ["sh", "-c", """
|
2021-04-24 22:33:52 +02:00
|
|
|
echo -n lol9 > /tmp/out
|
2021-01-21 03:26:10 +01:00
|
|
|
"""]
|
|
|
|
dir: "/"
|
2021-01-16 01:24:17 +01:00
|
|
|
always: true
|
|
|
|
},
|
2021-04-15 01:44:34 +02:00
|
|
|
op.#Export & {
|
2021-01-16 01:24:17 +01:00
|
|
|
source: "/tmp/out"
|
|
|
|
format: "string"
|
|
|
|
},
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2021-04-24 22:33:52 +02:00
|
|
|
TestExportConcurrency10: {
|
2021-01-16 01:24:17 +01:00
|
|
|
string
|
|
|
|
|
2021-04-03 00:00:30 +02:00
|
|
|
#up: [
|
2021-04-15 01:44:34 +02:00
|
|
|
op.#FetchContainer & {
|
2021-01-16 01:24:17 +01:00
|
|
|
ref: "alpine"
|
|
|
|
},
|
2021-04-15 01:44:34 +02:00
|
|
|
op.#Exec & {
|
2021-01-16 01:24:17 +01:00
|
|
|
args: ["sh", "-c", """
|
2021-04-24 22:33:52 +02:00
|
|
|
echo -n lol10 > /tmp/out
|
2021-01-21 03:26:10 +01:00
|
|
|
"""]
|
|
|
|
dir: "/"
|
2021-01-16 01:24:17 +01:00
|
|
|
always: true
|
|
|
|
},
|
2021-04-15 01:44:34 +02:00
|
|
|
op.#Export & {
|
2021-01-16 01:24:17 +01:00
|
|
|
source: "/tmp/out"
|
|
|
|
format: "string"
|
|
|
|
},
|
|
|
|
]
|
|
|
|
}
|