@@ -134,7 +134,7 @@ public void testDeployInternalLbVmWithTemplates_SuccessfulFirstTemplate() throws
134
134
when (internalLbVmDao .findById (anyLong ())).thenReturn (mock (DomainRouterVO .class ));
135
135
DomainRouterVO result = service .deployInternalLbVmWithTemplates (null , id , plan , internalLbProviderId , account , userId , vpcId , serviceOffering , networks , templates );
136
136
assertNotNull (result );
137
- verify (virtualMachineManager ).allocate (anyString (), eq (template1 ), eq (serviceOffering ), eq (networks ), eq (plan ), isNull ());
137
+ verify (virtualMachineManager ).allocate (anyString (), eq (template1 ), eq (serviceOffering ), eq (networks ), eq (plan ), isNull (), isNull (), isNull () );
138
138
}
139
139
140
140
@ Test
@@ -149,11 +149,11 @@ public void testDeployInternalLbVmWithTemplates_RetryOnInsufficientCapacity() th
149
149
when (internalLbVmDao .persist (any (DomainRouterVO .class ))).thenAnswer (invocation -> invocation .getArgument (0 ));
150
150
when (internalLbVmDao .findById (anyLong ())).thenReturn (mock (DomainRouterVO .class ));
151
151
doThrow (new InsufficientServerCapacityException ("Not enough capacity" , id ))
152
- .when (virtualMachineManager ).allocate (anyString (), eq (template1 ), eq (serviceOffering ), eq (networks ), eq (plan ), isNull ());
152
+ .when (virtualMachineManager ).allocate (anyString (), eq (template1 ), eq (serviceOffering ), eq (networks ), eq (plan ), isNull (), isNull (), isNull () );
153
153
DomainRouterVO result = service .deployInternalLbVmWithTemplates (null , id , plan , internalLbProviderId , account , userId , vpcId , serviceOffering , networks , templates );
154
154
assertNotNull (result );
155
- verify (virtualMachineManager ).allocate (anyString (), eq (template1 ), eq (serviceOffering ), eq (networks ), eq (plan ), isNull ());
156
- verify (virtualMachineManager ).allocate (anyString (), eq (template2 ), eq (serviceOffering ), eq (networks ), eq (plan ), isNull ());
155
+ verify (virtualMachineManager ).allocate (anyString (), eq (template1 ), eq (serviceOffering ), eq (networks ), eq (plan ), isNull (), isNull (), isNull () );
156
+ verify (virtualMachineManager ).allocate (anyString (), eq (template2 ), eq (serviceOffering ), eq (networks ), eq (plan ), isNull (), isNull (), isNull () );
157
157
}
158
158
159
159
@ Test (expected = InsufficientCapacityException .class )
@@ -166,7 +166,7 @@ public void testDeployInternalLbVmWithTemplates_AllTemplatesFail() throws Except
166
166
LinkedHashMap <Network , List <? extends NicProfile >> networks = new LinkedHashMap <>();
167
167
when (internalLbVmDao .persist (any (DomainRouterVO .class ))).thenAnswer (invocation -> invocation .getArgument (0 ));
168
168
doThrow (new InsufficientServerCapacityException ("Insufficient capacity" , id ))
169
- .when (virtualMachineManager ).allocate (anyString (), any (VMTemplateVO .class ), eq (serviceOffering ), eq (networks ), eq (plan ), isNull ());
169
+ .when (virtualMachineManager ).allocate (anyString (), any (VMTemplateVO .class ), eq (serviceOffering ), eq (networks ), eq (plan ), isNull (), isNull (), isNull () );
170
170
service .deployInternalLbVmWithTemplates (null , id , plan , internalLbProviderId , account , userId , vpcId , serviceOffering , networks , templates );
171
171
}
172
172
}
0 commit comments