From e4f7a40fd862688eebda72826498a5f358341170 Mon Sep 17 00:00:00 2001 From: Konrad Bańka Date: Tue, 7 Jan 2020 15:34:20 +0100 Subject: Provide OverrideParameters capability for infra_workload API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Provide parameters provided in sdnc, oof and user directives as override parameters for instantiate call. Issue-ID: MULTICLOUD-838 Signed-off-by: Konrad Bańka Change-Id: I69c6dab82ee233b2365a656bfaf1c7d64e375c98 --- src/k8splugin/internal/helm/helm_test.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/k8splugin/internal/helm') diff --git a/src/k8splugin/internal/helm/helm_test.go b/src/k8splugin/internal/helm/helm_test.go index f95c0fd5..1e676c52 100644 --- a/src/k8splugin/internal/helm/helm_test.go +++ b/src/k8splugin/internal/helm/helm_test.go @@ -75,6 +75,15 @@ func TestProcessValues(t *testing.T) { expectedHash: "516fab4ab7b76ba2ff35a97c2a79b74302543f532857b945f2fe25e717e755be", expectedError: "", }, + { + label: "Process complex Pair Override", + values: []string{ + "name={a,b,c}", + "servers[0].port=80", + }, + expectedError: "", + expectedHash: "50d9401b003f65c1ccfd1c5155106fff88c8201ab8b7d66bd6ffa4fe2883bead", + }, } h := sha256.New() @@ -96,7 +105,7 @@ func TestProcessValues(t *testing.T) { gotHash := fmt.Sprintf("%x", h.Sum(nil)) h.Reset() if gotHash != testCase.expectedHash { - t.Fatalf("Got unexpected values.yaml %s", out) + t.Fatalf("Got unexpected hash '%s' of values.yaml:\n%s", gotHash, out) } } }) -- cgit 1.2.3-korg