use of org.openkilda.floodlight.error.UnsupportedSwitchOperationException in project open-kilda by telstra.
the class IngressCommandRemoveTest method errorNoMeterSupport.
@Test
public void errorNoMeterSupport() throws Exception {
IngressFlowSegmentBase command = makeCommand(endpointIngressSingleVlan, meterConfig, makeMetadata());
switchFeaturesSetup(sw, false);
expectMeterDryRun(new UnsupportedSwitchOperationException(dpIdNext, "Switch doesn't support meters (unit-test)"));
expectMakeOuterOnlyVlanForwardMessage(command, new EffectiveIds());
expectNoMoreOfMessages();
replayAll();
verifySuccessCompletion(command.execute(commandProcessor));
}
use of org.openkilda.floodlight.error.UnsupportedSwitchOperationException in project open-kilda by telstra.
the class IngressCommandInstallTest method errorNoMeterSupport.
@Test
public void errorNoMeterSupport() throws Exception {
switchFeaturesSetup(sw, false);
IngressFlowSegmentBase command = makeCommand(endpointIngressSingleVlan, meterConfig, makeMetadata());
expectMeterInstall(new UnsupportedSwitchOperationException(dpIdNext, "Switch doesn't support meters (unit-test)"));
expectMakeOuterOnlyVlanForwardMessage(command, new EffectiveIds());
expectNoMoreOfMessages();
replayAll();
CompletableFuture<FlowSegmentReport> result = command.execute(commandProcessor);
verifyWriteCount(1);
verifySuccessCompletion(result);
verifyNoMeterCall((OFFlowAdd) getWriteRecord(0).getRequest());
}
Aggregations