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 & { dagger.#Plan & {
inputs: directories: testdata: path: "./testdata" client: filesystem: "./testdata": read: contents: dagger.#FS
actions: tests: dockerfile: { actions: test: dockerfile: {
simple: { simple: {
build: docker.#Build & { build: docker.#Build & {
steps: [ steps: [
@ -45,7 +45,7 @@ dagger.#Plan & {
build: docker.#Build & { build: docker.#Build & {
steps: [ steps: [
docker.#Dockerfile & { docker.#Dockerfile & {
source: inputs.directories.testdata.contents source: client.filesystem."./testdata".read.contents
}, },
docker.#Run & { docker.#Run & {
command: { command: {

View File

@ -5,5 +5,8 @@ setup() {
} }
@test "docker" { @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
} }