mirror of https://github.com/apache/cloudstack.git
Prachi's commit 20a747601c introduced a
new call to network.getPhysicalNetworkId() which wasn't mocked yet in the nvp plugin unittests.
This commit is contained in:
parent
8b2aabe687
commit
aea5b268b4
|
|
@ -252,6 +252,7 @@ public class NiciraNvpGuestNetworkGuruTest {
|
|||
NetworkVO network = mock(NetworkVO.class);
|
||||
when(network.getName()).thenReturn("testnetwork");
|
||||
when(network.getState()).thenReturn(State.Implementing);
|
||||
when(network.getPhysicalNetworkId()).thenReturn(42L);
|
||||
|
||||
DeployDestination dest = mock(DeployDestination.class);
|
||||
|
||||
|
|
@ -308,7 +309,7 @@ public class NiciraNvpGuestNetworkGuruTest {
|
|||
when(network.getState()).thenReturn(State.Implementing);
|
||||
when(network.getGateway()).thenReturn("10.1.1.1");
|
||||
when(network.getCidr()).thenReturn("10.1.1.0/24");
|
||||
|
||||
when(network.getPhysicalNetworkId()).thenReturn(42L);
|
||||
|
||||
DeployDestination dest = mock(DeployDestination.class);
|
||||
|
||||
|
|
@ -365,6 +366,7 @@ public class NiciraNvpGuestNetworkGuruTest {
|
|||
NetworkVO network = mock(NetworkVO.class);
|
||||
when(network.getName()).thenReturn("testnetwork");
|
||||
when(network.getState()).thenReturn(State.Implementing);
|
||||
when(network.getPhysicalNetworkId()).thenReturn(42L);
|
||||
|
||||
DeployDestination dest = mock(DeployDestination.class);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue