From e6209c05d3560c8a052a72e2548619a62fdc0adc Mon Sep 17 00:00:00 2001 From: Karol Pucynski Date: Tue, 22 Oct 2019 01:35:14 +0200 Subject: [PATCH] Make "local" tests to use local chart --- decision_maker_test.go | 2 +- helm_helpers_test.go | 2 +- test_files/chart-test/Chart.yaml | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 test_files/chart-test/Chart.yaml diff --git a/decision_maker_test.go b/decision_maker_test.go index 42cf4333..4dd40226 100644 --- a/decision_maker_test.go +++ b/decision_maker_test.go @@ -94,7 +94,7 @@ func Test_inspectUpgradeScenario(t *testing.T){ Name: "release1", Namespace: "namespace", Version: "1.0.0", - Chart: "/local/charts", + Chart: "./test_files/chart-test", Enabled: true, }, s: releaseState{ diff --git a/helm_helpers_test.go b/helm_helpers_test.go index a348432d..547c91e3 100644 --- a/helm_helpers_test.go +++ b/helm_helpers_test.go @@ -360,7 +360,7 @@ func Test_getChartVersion(t *testing.T) { Name: "release1", Namespace: "namespace", Version: "1.0.0", - Chart: "/local/charts", + Chart: "./test_files/chart-test", Enabled: true, }, }, diff --git a/test_files/chart-test/Chart.yaml b/test_files/chart-test/Chart.yaml new file mode 100644 index 00000000..27cbcc07 --- /dev/null +++ b/test_files/chart-test/Chart.yaml @@ -0,0 +1,3 @@ +apiVersion: v1 +name: chart-test +version: 1.0.0