aboutsummaryrefslogtreecommitdiffstats
path: root/src/k8splugin/internal/helm
diff options
context:
space:
mode:
authorKonrad Bańka <k.banka@samsung.com>2021-01-13 13:39:53 +0100
committerKonrad Bańka <k.banka@samsung.com>2021-01-13 14:22:31 +0100
commit0b4114ddfd6663aaafeaacb983335140cd44a358 (patch)
treeb6e7e3a52e38bb7c16299c97b78bfddc2ae6a7b1 /src/k8splugin/internal/helm
parentac7751eca12f848732f8f0377af50ff0f2cc1a28 (diff)
Provide simple v3 chart mock test
Issue-ID: MULTICLOUD-1267 Signed-off-by: Konrad Bańka <k.banka@samsung.com> Change-Id: Ib05167a6e0e2c69268bcd85c0ae3fa30fdd78e39
Diffstat (limited to 'src/k8splugin/internal/helm')
-rw-r--r--src/k8splugin/internal/helm/helm_test.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/k8splugin/internal/helm/helm_test.go b/src/k8splugin/internal/helm/helm_test.go
index 817bbaa3..d25ca091 100644
--- a/src/k8splugin/internal/helm/helm_test.go
+++ b/src/k8splugin/internal/helm/helm_test.go
@@ -1,5 +1,6 @@
/*
* Copyright 2018 Intel Corporation, Inc
+ * Copyright 2020,2021 Samsung Electronics, Modifications
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -182,6 +183,16 @@ func TestGenerateKubernetesArtifacts(t *testing.T) {
},
expectedError: "",
},
+ {
+ label: "Test simple v3 helm charts support",
+ chartPath: "../../mock_files/mock_charts/mockv3",
+ valueFiles: []string{},
+ values: []string{},
+ expectedError: "",
+ expectedHashMap: map[string]string{
+ "mockv3/templates/deployment.yaml": "259a027a4957e7428eb1d2e774fa1afaa62449521853f8b2916887040bae2ca4",
+ },
+ },
}
h := sha256.New()