5353 BootstrapData : "fake data" ,
5454 }
5555 fakeExistingVM = compute.VirtualMachine {
56- ID : to .StringPtr ("test -vm-id " ),
56+ ID : to .StringPtr ("subscriptions/123/resourceGroups/my_resource_group/providers/Microsoft.Compute/virtualMachines/my -vm" ),
5757 Name : to .StringPtr ("test-vm-name" ),
5858 VirtualMachineProperties : & compute.VirtualMachineProperties {
5959 ProvisioningState : to .StringPtr ("Succeeded" ),
@@ -131,7 +131,7 @@ func TestReconcileVM(t *testing.T) {
131131 r .CreateResource (gomockinternal .AContext (), & fakeVMSpec , serviceName ).Return (fakeExistingVM , nil )
132132 s .UpdatePutStatus (infrav1 .VMRunningCondition , serviceName , nil )
133133 s .UpdatePutStatus (infrav1 .DisksReadyCondition , serviceName , nil )
134- s .SetProviderID ("azure://test -vm-id " )
134+ s .SetProviderID ("azure://subscriptions/123/resourceGroups/my_resource_group/providers/Microsoft.Compute/virtualMachines/my -vm" )
135135 s .SetAnnotation ("cluster-api-provider-azure" , "true" )
136136 mnic .Get (gomockinternal .AContext (), & fakeNetworkInterfaceGetterSpec ).Return (fakeNetworkInterface , nil )
137137 mpip .Get (gomockinternal .AContext (), & fakePublicIPSpec ).Return (fakePublicIPs , nil )
@@ -157,7 +157,7 @@ func TestReconcileVM(t *testing.T) {
157157 r .CreateResource (gomockinternal .AContext (), & fakeVMSpec , serviceName ).Return (fakeExistingVM , nil )
158158 s .UpdatePutStatus (infrav1 .VMRunningCondition , serviceName , nil )
159159 s .UpdatePutStatus (infrav1 .DisksReadyCondition , serviceName , nil )
160- s .SetProviderID ("azure://test -vm-id " )
160+ s .SetProviderID ("azure://subscriptions/123/resourceGroups/my_resource_group/providers/Microsoft.Compute/virtualMachines/my -vm" )
161161 s .SetAnnotation ("cluster-api-provider-azure" , "true" )
162162 mnic .Get (gomockinternal .AContext (), & fakeNetworkInterfaceGetterSpec ).Return (network.Interface {}, internalError )
163163 },
@@ -170,7 +170,7 @@ func TestReconcileVM(t *testing.T) {
170170 r .CreateResource (gomockinternal .AContext (), & fakeVMSpec , serviceName ).Return (fakeExistingVM , nil )
171171 s .UpdatePutStatus (infrav1 .VMRunningCondition , serviceName , nil )
172172 s .UpdatePutStatus (infrav1 .DisksReadyCondition , serviceName , nil )
173- s .SetProviderID ("azure://test -vm-id " )
173+ s .SetProviderID ("azure://subscriptions/123/resourceGroups/my_resource_group/providers/Microsoft.Compute/virtualMachines/my -vm" )
174174 s .SetAnnotation ("cluster-api-provider-azure" , "true" )
175175 mnic .Get (gomockinternal .AContext (), & fakeNetworkInterfaceGetterSpec ).Return (fakeNetworkInterface , nil )
176176 mpip .Get (gomockinternal .AContext (), & fakePublicIPSpec ).Return (network.PublicIPAddress {}, internalError )
0 commit comments