test: lint cue test files

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi
2021-03-12 18:12:58 -08:00
parent 657ba7ce34
commit b04c046234
4 changed files with 25 additions and 26 deletions

View File

@@ -23,7 +23,7 @@ TestOpChaining: #compute: [
},
dagger.#Exec & {
args: ["sh", "-c", "test $(cat /output) = foobar"]
}
},
]
TestBuildContext: #compute: [
@@ -32,7 +32,7 @@ TestBuildContext: #compute: [
},
dagger.#Exec & {
args: ["sh", "-c", "test $(cat /dir/foo) = foobar"]
}
},
]
TestBuildContextAndDockerfile: #compute: [
@@ -45,17 +45,17 @@ TestBuildContextAndDockerfile: #compute: [
},
dagger.#Exec & {
args: ["sh", "-c", "test $(cat /override) = foobar"]
}
},
]
TestDockerfilePath: #compute: [
dagger.#DockerBuild & {
context: TestData
context: TestData
dockerfilePath: "./dockerfilepath/Dockerfile.custom"
},
dagger.#Exec & {
args: ["sh", "-c", "test $(cat /test) = dockerfilePath"]
}
},
]
TestBuildArgs: #compute: [
@@ -66,7 +66,7 @@ TestBuildArgs: #compute: [
RUN test "${TEST}" = "bar"
"""
buildArg: TEST: "bar"
}
},
]
// FIXME: this doesn't test anything beside not crashing
@@ -76,7 +76,7 @@ TestBuildLabels: #compute: [
FROM alpine:latest@sha256:ab00606a42621fb68f2ed6ad3c88be54397f981a7b70a79db3d1172b11c4367d
"""
label: FOO: "bar"
}
},
]
// FIXME: this doesn't test anything beside not crashing
@@ -86,5 +86,5 @@ TestBuildPlatform: #compute: [
FROM alpine:latest@sha256:ab00606a42621fb68f2ed6ad3c88be54397f981a7b70a79db3d1172b11c4367d
"""
platforms: ["linux/amd64"]
}
},
]