Skip to content

Commit aea5b26

Browse files
committed
Prachi's commit 20a7476 introduced a
new call to network.getPhysicalNetworkId() which wasn't mocked yet in the nvp plugin unittests.
1 parent 8b2aabe commit aea5b26

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎plugins/network-elements/nicira-nvp/test/com/cloud/network/guru/NiciraNvpGuestNetworkGuruTest.java‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ public void testImplement() throws InsufficientVirtualNetworkCapcityException {
252252
NetworkVO network = mock(NetworkVO.class);
253253
when(network.getName()).thenReturn("testnetwork");
254254
when(network.getState()).thenReturn(State.Implementing);
255+
when(network.getPhysicalNetworkId()).thenReturn(42L);
255256

256257
DeployDestination dest = mock(DeployDestination.class);
257258

@@ -308,7 +309,7 @@ public void testImplementWithCidr() throws InsufficientVirtualNetworkCapcityExce
308309
when(network.getState()).thenReturn(State.Implementing);
309310
when(network.getGateway()).thenReturn("10.1.1.1");
310311
when(network.getCidr()).thenReturn("10.1.1.0/24");
311-
312+
when(network.getPhysicalNetworkId()).thenReturn(42L);
312313

313314
DeployDestination dest = mock(DeployDestination.class);
314315

@@ -365,6 +366,7 @@ public void testImplementURIException() throws InsufficientVirtualNetworkCapcity
365366
NetworkVO network = mock(NetworkVO.class);
366367
when(network.getName()).thenReturn("testnetwork");
367368
when(network.getState()).thenReturn(State.Implementing);
369+
when(network.getPhysicalNetworkId()).thenReturn(42L);
368370

369371
DeployDestination dest = mock(DeployDestination.class);
370372

0 commit comments

Comments
 (0)