MOAR TESTS

- tests for load
- fixed a few typos in “copy” tests
- provisional tests for mount
- adding a “concurrency” test

Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
This commit is contained in:
dubo-dubon-duponey
2021-01-15 16:24:17 -08:00
parent 3be2865a56
commit c67e02eeda
12 changed files with 510 additions and 10 deletions

View File

@@ -0,0 +1,37 @@
package testing
test1: {
string
#dagger: {
compute: [
{
do: "load"
from: [{do: "fetch-container", ref: "alpine"}]
},
{
do: "export"
source: "/etc/issue"
format: "string"
},
]
}
}
test2: {
string
#dagger: {
compute: [
{
do: "load"
from: [{do: "fetch-container", ref: "busybox"}]
},
{
do: "export"
source: "/etc/issue"
format: "string"
},
]
}
}

View File

@@ -0,0 +1,57 @@
package testing
component: #dagger: compute: [{
do: "fetch-container"
ref: "alpine"
}, {
do: "exec"
args: ["sh", "-c", """
printf lol > /id
"""]
dir: "/"
}]
test1: {
string
#dagger: {
compute: [
{
do: "load"
from: component
},
{
do: "export"
source: "/id"
format: "string"
},
]
}
}
test2: {
string
#dagger: {
compute: [
{
do: "load"
from: #dagger: compute: [{
do: "fetch-container"
ref: "alpine"
}, {
do: "exec"
args: ["sh", "-c", """
printf lol > /id
"""]
dir: "/"
}]
},
{
do: "export"
source: "/id"
format: "string"
},
]
}
}

View File

@@ -0,0 +1,20 @@
package testing
test: {
string
#dagger: {
compute: [
{
do: "load"
from: [{do: "fetch-container", ref: "alpine"}]
},
{
do: "export"
source: "/etc/issue"
format: "string"
},
]
}
}