Update dockerfile test to use client API

Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
This commit is contained in:
Tom Chauveau 2022-03-18 12:38:50 +01:00 committed by Vasek - Tom C
parent cc601a4e07
commit c6da3eeb9e
No known key found for this signature in database
GPG Key ID: 175D82E572427960
2 changed files with 7 additions and 4 deletions

View File

@ -6,9 +6,9 @@ import (
)
dagger.#Plan & {
inputs: directories: testdata: path: "./testdata"
client: filesystem: "./testdata": read: contents: dagger.#FS
actions: tests: dockerfile: {
actions: test: dockerfile: {
simple: {
build: docker.#Build & {
steps: [
@ -45,7 +45,7 @@ dagger.#Plan & {
build: docker.#Build & {
steps: [
docker.#Dockerfile & {
source: inputs.directories.testdata.contents
source: client.filesystem."./testdata".read.contents
},
docker.#Run & {
command: {

View File

@ -5,5 +5,8 @@ setup() {
}
@test "docker" {
dagger "do" -p ./ test
dagger "do" -p ./build.cue test
dagger "do" -p ./dockerfile.cue test
dagger "do" -p ./run.cue test
dagger "do" -p ./image.cue test
}