@@ -151,7 +151,7 @@ func newApiNode(orchmode compute.OrchestrationMode, vmID int64) *apiv1.Node {
151
151
}
152
152
return node
153
153
}
154
- func TestMaxSize (t * testing.T ) {
154
+ func TestScaleSetMaxSize (t * testing.T ) {
155
155
provider := newTestProvider (t )
156
156
registered := provider .azureManager .RegisterNodeGroup (
157
157
newTestScaleSet (provider .azureManager , "test-asg" ))
@@ -160,7 +160,7 @@ func TestMaxSize(t *testing.T) {
160
160
assert .Equal (t , provider .NodeGroups ()[0 ].MaxSize (), 5 )
161
161
}
162
162
163
- func TestMinSize (t * testing.T ) {
163
+ func TestScaleSetMinSize (t * testing.T ) {
164
164
provider := newTestProvider (t )
165
165
registered := provider .azureManager .RegisterNodeGroup (
166
166
newTestScaleSet (provider .azureManager , "test-asg" ))
@@ -169,7 +169,7 @@ func TestMinSize(t *testing.T) {
169
169
assert .Equal (t , provider .NodeGroups ()[0 ].MinSize (), 1 )
170
170
}
171
171
172
- func TestMinSizeZero (t * testing.T ) {
172
+ func TestScaleSetMinSizeZero (t * testing.T ) {
173
173
provider := newTestProvider (t )
174
174
registered := provider .azureManager .RegisterNodeGroup (
175
175
newTestScaleSetMinSizeZero (provider .azureManager , testASG ))
@@ -178,7 +178,7 @@ func TestMinSizeZero(t *testing.T) {
178
178
assert .Equal (t , provider .NodeGroups ()[0 ].MinSize (), 0 )
179
179
}
180
180
181
- func TestTargetSize (t * testing.T ) {
181
+ func TestScaleSetTargetSize (t * testing.T ) {
182
182
ctrl := gomock .NewController (t )
183
183
defer ctrl .Finish ()
184
184
@@ -248,7 +248,7 @@ func TestTargetSize(t *testing.T) {
248
248
}
249
249
}
250
250
251
- func TestIncreaseSize (t * testing.T ) {
251
+ func TestScaleSetIncreaseSize (t * testing.T ) {
252
252
ctrl := gomock .NewController (t )
253
253
defer ctrl .Finish ()
254
254
@@ -365,7 +365,7 @@ func TestIncreaseSize(t *testing.T) {
365
365
366
366
// TestIncreaseSizeOnVMProvisioningFailed has been tweeked only for Uniform Orchestration mode.
367
367
// If ProvisioningState == failed and power state is not running, Status.State == InstanceCreating with errorInfo populated.
368
- func TestIncreaseSizeOnVMProvisioningFailed (t * testing.T ) {
368
+ func TestScaleSetIncreaseSizeOnVMProvisioningFailed (t * testing.T ) {
369
369
testCases := map [string ]struct {
370
370
expectInstanceRunning bool
371
371
isMissingInstanceView bool
@@ -543,7 +543,7 @@ func TestIncreaseSizeOnVMProvisioningFailedWithFastDelete(t *testing.T) {
543
543
}
544
544
}
545
545
546
- func TestIncreaseSizeOnVMSSUpdating (t * testing.T ) {
546
+ func TestScaleSetIncreaseSizeOnVMSSUpdating (t * testing.T ) {
547
547
ctrl := gomock .NewController (t )
548
548
defer ctrl .Finish ()
549
549
@@ -593,7 +593,7 @@ func TestIncreaseSizeOnVMSSUpdating(t *testing.T) {
593
593
assert .NoError (t , err )
594
594
}
595
595
596
- func TestBelongs (t * testing.T ) {
596
+ func TestScaleSetBelongs (t * testing.T ) {
597
597
ctrl := gomock .NewController (t )
598
598
defer ctrl .Finish ()
599
599
@@ -645,7 +645,7 @@ func TestBelongs(t *testing.T) {
645
645
}
646
646
}
647
647
648
- func TestDeleteNodes (t * testing.T ) {
648
+ func TestScaleSetDeleteNodes (t * testing.T ) {
649
649
ctrl := gomock .NewController (t )
650
650
defer ctrl .Finish ()
651
651
@@ -783,7 +783,7 @@ func TestDeleteNodes(t *testing.T) {
783
783
}
784
784
}
785
785
786
- func TestDeleteNodeUnregistered (t * testing.T ) {
786
+ func TestScaleSetDeleteNodeUnregistered (t * testing.T ) {
787
787
ctrl := gomock .NewController (t )
788
788
defer ctrl .Finish ()
789
789
@@ -896,7 +896,7 @@ func TestDeleteNodeUnregistered(t *testing.T) {
896
896
}
897
897
}
898
898
899
- func TestDeleteInstancesWithForceDeleteEnabled (t * testing.T ) {
899
+ func TestScaleSetDeleteInstancesWithForceDeleteEnabled (t * testing.T ) {
900
900
ctrl := gomock .NewController (t )
901
901
defer ctrl .Finish ()
902
902
manager := newTestAzureManager (t )
@@ -1010,7 +1010,7 @@ func TestDeleteInstancesWithForceDeleteEnabled(t *testing.T) {
1010
1010
1011
1011
}
1012
1012
1013
- func TestDeleteNoConflictRequest (t * testing.T ) {
1013
+ func TestScaleSetDeleteNoConflictRequest (t * testing.T ) {
1014
1014
ctrl := gomock .NewController (t )
1015
1015
defer ctrl .Finish ()
1016
1016
@@ -1071,7 +1071,7 @@ func TestDeleteNoConflictRequest(t *testing.T) {
1071
1071
err = scaleSet .DeleteNodes ([]* apiv1.Node {node })
1072
1072
}
1073
1073
1074
- func TestId (t * testing.T ) {
1074
+ func TestScaleSetId (t * testing.T ) {
1075
1075
provider := newTestProvider (t )
1076
1076
registered := provider .azureManager .RegisterNodeGroup (
1077
1077
newTestScaleSet (provider .azureManager , "test-asg" ))
@@ -1080,7 +1080,7 @@ func TestId(t *testing.T) {
1080
1080
assert .Equal (t , provider .NodeGroups ()[0 ].Id (), "test-asg" )
1081
1081
}
1082
1082
1083
- func TestDebug (t * testing.T ) {
1083
+ func TestAgentPoolDebug (t * testing.T ) {
1084
1084
asg := ScaleSet {
1085
1085
manager : newTestAzureManager (t ),
1086
1086
minSize : 5 ,
@@ -1159,7 +1159,7 @@ func TestScaleSetNodes(t *testing.T) {
1159
1159
1160
1160
}
1161
1161
1162
- func TestEnableVmssFlexNodesFlag (t * testing.T ) {
1162
+ func TestScaleSetEnableVmssFlexNodesFlag (t * testing.T ) {
1163
1163
1164
1164
// flag set to false
1165
1165
ctrl := gomock .NewController (t )
@@ -1191,7 +1191,7 @@ func TestEnableVmssFlexNodesFlag(t *testing.T) {
1191
1191
assert .NoError (t , err )
1192
1192
}
1193
1193
1194
- func TestTemplateNodeInfo (t * testing.T ) {
1194
+ func TestScaleSetTemplateNodeInfo (t * testing.T ) {
1195
1195
ctrl := gomock .NewController (t )
1196
1196
defer ctrl .Finish ()
1197
1197
@@ -1317,7 +1317,7 @@ func TestTemplateNodeInfo(t *testing.T) {
1317
1317
})
1318
1318
1319
1319
}
1320
- func TestCseErrors (t * testing.T ) {
1320
+ func TestScaleSetCseErrors (t * testing.T ) {
1321
1321
errorMessage := to .StringPtr ("Error Message Test" )
1322
1322
vmssVMs := compute.VirtualMachineScaleSetVM {
1323
1323
Name : to .StringPtr ("vmTest" ),
0 commit comments