From 0383c6b52aada0a0b7c104cd713d0903fe7c9def Mon Sep 17 00:00:00 2001 From: Tom Chauveau Date: Sat, 15 May 2021 16:05:09 +0200 Subject: [PATCH] remove unused test helper Signed-off-by: Tom Chauveau --- examples/docker/main.cue | 2 +- tests/helpers.bash | 5 ----- tests/stdlib.bats | 2 -- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/examples/docker/main.cue b/examples/docker/main.cue index 485ff08f..596b5514 100644 --- a/examples/docker/main.cue +++ b/examples/docker/main.cue @@ -9,6 +9,6 @@ import ( source: dagger.#Artifact // Container image -container: docker.#Build & { +image: docker.#Build & { "source": source } diff --git a/tests/helpers.bash b/tests/helpers.bash index ec22da5b..00f94b44 100644 --- a/tests/helpers.bash +++ b/tests/helpers.bash @@ -19,11 +19,6 @@ skip_unless_secrets_available() { sops exec-file "$inputFile" echo > /dev/null 2>&1 || skip "$inputFile cannot be decrypted" } -skip_unless_file_exist() { - local inputFile="$1" - test -f "$inputFile" || skip "$inputFile does not exist" -} - skip_unless_local_kube() { if [ -f ~/.kube/config ] && grep -q "user: kind-kind" ~/.kube/config &> /dev/null && grep -q "127.0.0.1" ~/.kube/config &> /dev/null; then echo "Kubernetes available" diff --git a/tests/stdlib.bats b/tests/stdlib.bats index b2fc37c5..f2a19e11 100644 --- a/tests/stdlib.bats +++ b/tests/stdlib.bats @@ -61,8 +61,6 @@ setup() { } @test "stdlib: docker-build" { - skip_unless_file_exist "$TESTDIR"/stdlib/docker/build/Dockerfile - "$DAGGER" compute "$TESTDIR"/stdlib/docker/build/ --input-dir source="$TESTDIR"/stdlib/docker/build }