Skip to content

Commit 6f0d49c

Browse files
committed
add TestConfigBuilder interface to clusterapi
This change converts the previous single function interfaces to create machineset and machinedeployment test configs to instead use a new builder/fluent style interface. This make the tests easier to read and simpler to contribute new functionality. The previous functions have been migrated to a new file to help keep the complexity from overlapping into other test functions, and to promote future refactoring.
1 parent bf86702 commit 6f0d49c

File tree

6 files changed

+1367
-1027
lines changed

6 files changed

+1367
-1027
lines changed

cluster-autoscaler/cloudprovider/clusterapi/clusterapi_autodiscovery_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ func Test_parseAutoDiscovery(t *testing.T) {
198198
func Test_allowedByAutoDiscoverySpec(t *testing.T) {
199199
for _, tc := range []struct {
200200
name string
201-
testSpec testSpec
201+
testSpec TestSpec
202202
autoDiscoveryConfig *clusterAPIAutoDiscoveryConfig
203203
additionalLabels map[string]string
204204
shouldMatch bool

0 commit comments

Comments
 (0)