From 3aec0337d27f6e8ecb6afc16c7543004b1c57bb8 Mon Sep 17 00:00:00 2001 From: Sam Alba Date: Wed, 31 Mar 2021 18:10:20 -0700 Subject: [PATCH] tests: fixed invalid test Signed-off-by: Sam Alba --- cmd/dagger/cmd/query.go | 1 - tests/push-container/main.cue | 18 +++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/cmd/dagger/cmd/query.go b/cmd/dagger/cmd/query.go index ac267496..1ff66ea2 100644 --- a/cmd/dagger/cmd/query.go +++ b/cmd/dagger/cmd/query.go @@ -69,7 +69,6 @@ var queryCmd = &cobra.Command{ lg.Fatal().Err(err).Msg("failed to lookup source") } - output.IsConcreteR() fmt.Println(string(out)) }, } diff --git a/tests/push-container/main.cue b/tests/push-container/main.cue index cb54bdf4..04676aad 100644 --- a/tests/push-container/main.cue +++ b/tests/push-container/main.cue @@ -1,7 +1,7 @@ package main import ( - "dagger.io/dagger" + "dagger.io/llb" "dagger.io/alpine" ) @@ -10,11 +10,11 @@ TestPushContainer: { random: { string #compute: [ - dagger.#Load & {from: alpine.#Image}, - dagger.#Exec & { + llb.#Load & {from: alpine.#Image}, + llb.#Exec & { args: ["sh", "-c", "echo -n $RANDOM > /rand"] }, - dagger.#Export & { + llb.#Export & { source: "/rand" }, ] @@ -24,11 +24,11 @@ TestPushContainer: { push: { ref: "daggerio/ci-test:\(random)" #compute: [ - dagger.#WriteFile & { + llb.#WriteFile & { content: random dest: "/rand" }, - dagger.#PushContainer & { + llb.#PushContainer & { "ref": ref }, ] @@ -36,15 +36,15 @@ TestPushContainer: { // Pull the image back pull: #compute: [ - dagger.#FetchContainer & { + llb.#FetchContainer & { ref: push.ref }, ] // Check the content check: #compute: [ - dagger.#Load & {from: alpine.#Image}, - dagger.#Exec & { + llb.#Load & {from: alpine.#Image}, + llb.#Exec & { args: [ "sh", "-c", #""" test "$(cat /src/rand)" = "\#(random)"