Rename tests with new naming convention and update tests lists

Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
This commit is contained in:
Tom Chauveau
2021-04-24 22:33:52 +02:00
parent a9189392b9
commit e366773dc0
25 changed files with 152 additions and 142 deletions

View File

@@ -2,7 +2,7 @@ package testing
import "dagger.io/dagger/op"
testScalar: {
TestExportScalar: {
bool
#up: [
@@ -23,7 +23,7 @@ testScalar: {
]
}
testMap: #up: [
TestExportMap: #up: [
op.#FetchContainer & {
ref: "alpine"
},
@@ -40,28 +40,27 @@ testMap: #up: [
},
]
// FIXME: lists are currently broken
// testList: {
// [...string]
TestExportList: {
[...string]
// #up: [
// {
// do: "fetch-container"
// ref: "alpine"
// },
// {
// do: "exec"
// args: ["sh", "-c", """
// echo '["milk", "pumpkin pie", "eggs", "juice"]' > /tmp/out
// """,
// ]
// dir: "/"
// },
// {
// do: "export"
// // Source path in the container
// source: "/tmp/out"
// format: "json"
// },
// ]
// }
#up: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo '["milk", "pumpkin pie", "eggs", "juice"]' > /tmp/out
""",
]
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "json"
},
]
}