Ejemplo n.º 1
0
  @Test
  public void testInterfaceWithNoCriticalService() {
    m_pollerConfig.setNodeOutageProcessingEnabled(true);

    MockInterface iface = m_network.getInterface(3, "192.168.1.4");
    MockService svc = iface.getService("SMTP");
    MockService otherService = iface.getService("HTTP");

    startDaemons();

    anticipateDown(iface);

    iface.bringDown();

    verifyAnticipated(8000);

    anticipateUp(iface);
    anticipateDown(otherService, true);

    svc.bringUp();

    verifyAnticipated(8000);
  }