aboutsummaryrefslogtreecommitdiffstats
path: root/src/k8splugin/internal
diff options
context:
space:
mode:
authorKonrad Bańka <k.banka@samsung.com>2020-01-07 15:34:20 +0100
committerKonrad Bańka <k.banka@samsung.com>2020-02-20 10:47:38 +0100
commite4f7a40fd862688eebda72826498a5f358341170 (patch)
tree6de0c8c8a1f9fb00083563671ac08ea506264be1 /src/k8splugin/internal
parent38df1b0ee0f1d6cd3bf11f94adf7c952f32c191c (diff)
Provide OverrideParameters capability for infra_workload API
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 <k.banka@samsung.com> Change-Id: I69c6dab82ee233b2365a656bfaf1c7d64e375c98
Diffstat (limited to 'src/k8splugin/internal')
-rw-r--r--src/k8splugin/internal/helm/helm_test.go11
1 files changed, 10 insertions, 1 deletions
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)
}
}
})