From f7995a0f5ce84d90ac644fd238a005665fc7ab61 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Fri, 26 Apr 2024 14:36:31 +0100 Subject: [PATCH] Add specific usecase to tests Signed-off-by: Marcus Noble --- pkg/values/values_test.go | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/pkg/values/values_test.go b/pkg/values/values_test.go index a692609..19c80ac 100644 --- a/pkg/values/values_test.go +++ b/pkg/values/values_test.go @@ -58,6 +58,28 @@ func TestMerge(t *testing.T) { bar: baz extra: property`, }, + { + name: "Disable spot instances usecase", + inputValues: []string{ + `global: + nodePools: + nodepool-0: + maxSize: 5 + spotInstances: + enabled: true`, + `global: + nodePools: + nodepool-0: + spotInstances: + enabled: false`, + }, + expected: `global: + nodePools: + nodepool-0: + maxSize: 5 + spotInstances: + enabled: false`, + }, } for _, tc := range tests {