Skip to content

Commit 33ac065

Browse files
authored
Merge pull request #3060 from nojnhuh/aks-taints-test
add empty node taints agentpool parameters test
2 parents 0f77a5b + 8b59747 commit 33ac065

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

azure/services/agentpools/spec_test.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,18 @@ func TestParameters(t *testing.T) {
287287
),
288288
expectedError: nil,
289289
},
290+
{
291+
name: "empty node taints should not trigger an update",
292+
spec: fakeAgentPool(
293+
func(pool *AgentPoolSpec) { pool.NodeTaints = nil },
294+
),
295+
existing: sdkFakeAgentPool(
296+
func(pool *containerservice.AgentPool) { pool.NodeTaints = nil },
297+
sdkWithProvisioningState("Succeeded"),
298+
),
299+
expected: nil,
300+
expectedError: nil,
301+
},
290302
}
291303
for _, tc := range testcases {
292304
tc := tc

0 commit comments

Comments
 (0)