Skip to content

Commit

Permalink
Add specific usecase to tests
Browse files Browse the repository at this point in the history
Signed-off-by: Marcus Noble <[email protected]>
  • Loading branch information
AverageMarcus committed Apr 26, 2024
1 parent 10d4f25 commit f7995a0
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions pkg/values/values_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f7995a0

Please sign in to comment.