From 88d819428e2cef900aa810334c99350bf90869b1 Mon Sep 17 00:00:00 2001 From: Yusuke Kuoka Date: Wed, 23 Sep 2020 22:25:12 +0900 Subject: [PATCH] Fix failing test whose result was dependent on some container image repo contents --- examples/module/Dockerfile | 2 +- examples/module/default.variantmod | 2 +- examples/module/module_test.variant | 4 ++-- main_test.go | 20 ++++++++++++++------ 4 files changed, 18 insertions(+), 10 deletions(-) diff --git a/examples/module/Dockerfile b/examples/module/Dockerfile index 7e7ae05..a272deb 100644 --- a/examples/module/Dockerfile +++ b/examples/module/Dockerfile @@ -1,6 +1,6 @@ FROM alpine:3.10 -ARG HELM_VERSION=3.0.0 +ARG HELM_VERSION=3.2.0 ARG HELM_FILENAME="helm-${HELM_VERSION}-linux-amd64.tar.gz" ADD http://storage.googleapis.com/kubernetes-helm/${HELM_FILE_NAME} /tmp diff --git a/examples/module/default.variantmod b/examples/module/default.variantmod index f5f4c66..9c225a2 100644 --- a/examples/module/default.variantmod +++ b/examples/module/default.variantmod @@ -1,7 +1,7 @@ module "default" { dependency "github_release" "helm" { source = "helm/helm" - version = "> 1.0.0, < 3.0.1" + version = ">= 3.0.0, < 3.2.1" } file "Dockerfile" { diff --git a/examples/module/module_test.variant b/examples/module/module_test.variant index 633b154..db600c4 100644 --- a/examples/module/module_test.variant +++ b/examples/module/module_test.variant @@ -2,7 +2,7 @@ test "test" { case "ok" { out = trimspace(<