mirror of https://github.com/apache/cloudstack.git
fix test
This commit is contained in:
parent
a00f3e6436
commit
460151ad3c
|
|
@ -121,7 +121,6 @@ public class NsxGuestNetworkGuruTest {
|
|||
NetworkOfferingDao networkOfferingDao;
|
||||
|
||||
NsxGuestNetworkGuru guru;
|
||||
GuestNetworkGuru guestNetworkGuru;
|
||||
AutoCloseable closeable;
|
||||
|
||||
@Before
|
||||
|
|
@ -249,10 +248,7 @@ public class NsxGuestNetworkGuruTest {
|
|||
when(network.getTrafficType()).thenReturn(Networks.TrafficType.Guest);
|
||||
when(vmProfile.getVirtualMachine()).thenReturn(virtualMachine);
|
||||
when(virtualMachine.getType()).thenReturn(VirtualMachine.Type.User);
|
||||
// when(network.getId()).thenReturn(2L);
|
||||
// when(offering.getId()).thenReturn(11L);
|
||||
when(networkModel.getNetworkIp4Dns(any(Network.class), nullable(DataCenter.class))).thenReturn(dns);
|
||||
// when(networkModel.getNextAvailableMacAddressInNetwork(anyLong())).thenReturn(macAddress);
|
||||
when(nicProfile.getMacAddress()).thenReturn(macAddress);
|
||||
when(networkOfferingDao.isIpv6Supported(anyLong())).thenReturn(false);
|
||||
|
||||
|
|
|
|||
|
|
@ -160,6 +160,7 @@ public class NsxPublicNetworkGuruTest {
|
|||
when(ipAddressDao.listByAssociatedVpc(12L, true)).thenReturn(sourceNatList);
|
||||
when(vlanDetailsDao.findDetail(anyLong(), anyString())).thenReturn(vlanDetailVO);
|
||||
when(vpcVO.getVpcOfferingId()).thenReturn(12L);
|
||||
when(vpcVO.getId()).thenReturn(12L);
|
||||
when(vpcVO.getName()).thenReturn("nsxVPCNet");
|
||||
when(vpcOfferingServiceMapDao.areServicesSupportedByVpcOffering(anyLong(), any())).thenReturn(true);
|
||||
when(nsxService.createVpcNetwork(anyLong(), anyLong(), anyLong(), anyLong(), anyString(), anyBoolean())).thenReturn(true);
|
||||
|
|
|
|||
Loading…
Reference in New Issue