Search in sources :

Example 1 with IslControllerNotFoundException

use of org.openkilda.wfm.topology.network.error.IslControllerNotFoundException in project open-kilda by telstra.

the class NetworkIslServiceTest method noIslCreationOnIslDown.

@Test
public void noIslCreationOnIslDown() {
    setupIslStorageStub();
    IslReference reference = new IslReference(endpointAlpha1, endpointBeta2);
    for (IslDownReason reason : IslDownReason.values()) {
        try {
            service.islDown(reference.getSource(), reference, reason);
            Assert.fail("No expected exception IslControllerNotFoundException");
        } catch (IslControllerNotFoundException e) {
        // expected
        }
    }
}
Also used : IslControllerNotFoundException(org.openkilda.wfm.topology.network.error.IslControllerNotFoundException) IslReference(org.openkilda.wfm.share.model.IslReference) IslDownReason(org.openkilda.model.IslDownReason) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 IslDownReason (org.openkilda.model.IslDownReason)1 IslReference (org.openkilda.wfm.share.model.IslReference)1 IslControllerNotFoundException (org.openkilda.wfm.topology.network.error.IslControllerNotFoundException)1