@@ -98,7 +98,7 @@ func TestAttachDiskWithVMSS(t *testing.T) {
98
98
assert .NoError (t , err , test .desc )
99
99
testCloud := ss .cloud
100
100
testCloud .PrimaryScaleSetName = scaleSetName
101
- expectedVMSS := buildTestVMSS (scaleSetName , []string {testLBBackendpoolID0 }, false )
101
+ expectedVMSS := buildTestVMSSWithLB (scaleSetName , "vmss00-vm-" , []string {testLBBackendpoolID0 }, false )
102
102
mockVMSSClient := testCloud .VirtualMachineScaleSetsClient .(* mockvmssclient.MockInterface )
103
103
mockVMSSClient .EXPECT ().List (gomock .Any (), testCloud .ResourceGroup ).Return ([]compute.VirtualMachineScaleSet {expectedVMSS }, nil ).AnyTimes ()
104
104
mockVMSSClient .EXPECT ().Get (gomock .Any (), testCloud .ResourceGroup , scaleSetName ).Return (expectedVMSS , nil ).MaxTimes (1 )
@@ -194,7 +194,7 @@ func TestDetachDiskWithVMSS(t *testing.T) {
194
194
assert .NoError (t , err , test .desc )
195
195
testCloud := ss .cloud
196
196
testCloud .PrimaryScaleSetName = scaleSetName
197
- expectedVMSS := buildTestVMSS (scaleSetName , []string {testLBBackendpoolID0 }, false )
197
+ expectedVMSS := buildTestVMSSWithLB (scaleSetName , "vmss00-vm-" , []string {testLBBackendpoolID0 }, false )
198
198
mockVMSSClient := testCloud .VirtualMachineScaleSetsClient .(* mockvmssclient.MockInterface )
199
199
mockVMSSClient .EXPECT ().List (gomock .Any (), testCloud .ResourceGroup ).Return ([]compute.VirtualMachineScaleSet {expectedVMSS }, nil ).AnyTimes ()
200
200
mockVMSSClient .EXPECT ().Get (gomock .Any (), testCloud .ResourceGroup , scaleSetName ).Return (expectedVMSS , nil ).MaxTimes (1 )
@@ -297,7 +297,7 @@ func TestGetDataDisksWithVMSS(t *testing.T) {
297
297
assert .NoError (t , err , test .desc )
298
298
testCloud := ss .cloud
299
299
testCloud .PrimaryScaleSetName = scaleSetName
300
- expectedVMSS := buildTestVMSS (scaleSetName , []string {testLBBackendpoolID0 }, false )
300
+ expectedVMSS := buildTestVMSSWithLB (scaleSetName , "vmss00-vm-" , []string {testLBBackendpoolID0 }, false )
301
301
mockVMSSClient := testCloud .VirtualMachineScaleSetsClient .(* mockvmssclient.MockInterface )
302
302
mockVMSSClient .EXPECT ().List (gomock .Any (), testCloud .ResourceGroup ).Return ([]compute.VirtualMachineScaleSet {expectedVMSS }, nil ).AnyTimes ()
303
303
mockVMSSClient .EXPECT ().Get (gomock .Any (), testCloud .ResourceGroup , scaleSetName ).Return (expectedVMSS , nil ).MaxTimes (1 )
0 commit comments