All pastes #294536 Raw Edit

Untitled

public text v1 · immutable
#294536 ·published 2006-12-28 16:31 UTC
rendered paste body
  public void testAddingIfs() throws Exception {
        addIfTable();

        createSnmpInterface(1, 24, "lo0", CollectionType.PRIMARY);
        createSnmpInterface(2, 55, "gif0", CollectionType.SECONDARY);
        createSnmpInterface(3, 57, "stf0", CollectionType.COLLECT);

        SnmpIfCollector collector = createSnmpIfCollector();
        waitForSignal();

        assertInterfaceMibObjectsPresent(collector.getCollectionSet());

        createSnmpInterface(4, 59, "fsck0", CollectionType.COLLECT);

        Event e = MockEventUtil.createReinitializeNode("test", "127.0.0.1");
        //        
        // if (reductionKey != null) {
        // AlarmData data = new AlarmData();
        // data.setAlarmType(1);
        // data.setReductionKey(reductionKey);
        // e.setAlarmData(data);
        // } else {
        // e.setAlarmData(null);
        // }

        Logmsg logmsg = new Logmsg();
        logmsg.setDest("logndisplay");
        logmsg.setContent("testing");
        e.setLogmsg(logmsg);
        m_eventd.processEvent(e);

        // collector = createSnmpIfCollector();
        
        waitForSignal();
        
        assertInterfaceMibObjectsPresent(collector.getCollectionSet());
        
    }