Committed by
Yuta HIGUCHI
Disable test, which actually tries to ssh to some node.
Change-Id: I8034874249609c06913b235d433406bc8f288661 (cherry picked from commit ea39db5f)
Showing
1 changed file
with
9 additions
and
0 deletions
... | @@ -35,6 +35,7 @@ import java.util.concurrent.ConcurrentHashMap; | ... | @@ -35,6 +35,7 @@ import java.util.concurrent.ConcurrentHashMap; |
35 | import org.easymock.EasyMock; | 35 | import org.easymock.EasyMock; |
36 | import org.junit.After; | 36 | import org.junit.After; |
37 | import org.junit.Before; | 37 | import org.junit.Before; |
38 | +import org.junit.Ignore; | ||
38 | import org.junit.Test; | 39 | import org.junit.Test; |
39 | import org.onlab.packet.ChassisId; | 40 | import org.onlab.packet.ChassisId; |
40 | import org.onosproject.cfg.ComponentConfigService; | 41 | import org.onosproject.cfg.ComponentConfigService; |
... | @@ -179,6 +180,7 @@ public class NetconfDeviceProviderTest { | ... | @@ -179,6 +180,7 @@ public class NetconfDeviceProviderTest { |
179 | return dictionary; | 180 | return dictionary; |
180 | } | 181 | } |
181 | 182 | ||
183 | + @Ignore("Test fails if the hard coded host actually exists.") | ||
182 | @Test(expected = SocketTimeoutException.class) | 184 | @Test(expected = SocketTimeoutException.class) |
183 | public void testSSHAuthentication() throws JNCException, IOException { | 185 | public void testSSHAuthentication() throws JNCException, IOException { |
184 | NetconfDevice netconfDevice = new NetconfDevice("10.18.14.19", 22, | 186 | NetconfDevice netconfDevice = new NetconfDevice("10.18.14.19", 22, |
... | @@ -408,34 +410,41 @@ public class NetconfDeviceProviderTest { | ... | @@ -408,34 +410,41 @@ public class NetconfDeviceProviderTest { |
408 | 410 | ||
409 | private class TestProviderService implements DeviceProviderService { | 411 | private class TestProviderService implements DeviceProviderService { |
410 | 412 | ||
413 | + @Override | ||
411 | public DeviceProvider provider() { | 414 | public DeviceProvider provider() { |
412 | return null; | 415 | return null; |
413 | } | 416 | } |
414 | 417 | ||
418 | + @Override | ||
415 | public void deviceConnected(DeviceId deviceId, | 419 | public void deviceConnected(DeviceId deviceId, |
416 | DeviceDescription deviceDescription) { | 420 | DeviceDescription deviceDescription) { |
417 | } | 421 | } |
418 | 422 | ||
423 | + @Override | ||
419 | public void deviceDisconnected(DeviceId deviceId) { | 424 | public void deviceDisconnected(DeviceId deviceId) { |
420 | 425 | ||
421 | } | 426 | } |
422 | 427 | ||
428 | + @Override | ||
423 | public void updatePorts(DeviceId deviceId, | 429 | public void updatePorts(DeviceId deviceId, |
424 | List<PortDescription> portDescriptions) { | 430 | List<PortDescription> portDescriptions) { |
425 | 431 | ||
426 | } | 432 | } |
427 | 433 | ||
434 | + @Override | ||
428 | public void portStatusChanged(DeviceId deviceId, | 435 | public void portStatusChanged(DeviceId deviceId, |
429 | PortDescription portDescription) { | 436 | PortDescription portDescription) { |
430 | 437 | ||
431 | } | 438 | } |
432 | 439 | ||
440 | + @Override | ||
433 | public void receivedRoleReply(DeviceId deviceId, | 441 | public void receivedRoleReply(DeviceId deviceId, |
434 | MastershipRole requested, | 442 | MastershipRole requested, |
435 | MastershipRole response) { | 443 | MastershipRole response) { |
436 | 444 | ||
437 | } | 445 | } |
438 | 446 | ||
447 | + @Override | ||
439 | public void updatePortStatistics(DeviceId deviceId, | 448 | public void updatePortStatistics(DeviceId deviceId, |
440 | Collection<PortStatistics> portStatistics) { | 449 | Collection<PortStatistics> portStatistics) { |
441 | 450 | ... | ... |
-
Please register or login to post a comment