Search in sources :

Example 31 with FlowIdStatusPayload

use of org.openkilda.messaging.payload.flow.FlowIdStatusPayload in project open-kilda by telstra.

the class NorthboundRunTest method flowState.

@Then("^flow (\\w+) in (\\w+) state$")
public void flowState(String flowId, String state) throws Throwable {
    String flowName = FlowUtils.getFlowName(flowId);
    FlowState flowState = FlowState.valueOf(state);
    FlowIdStatusPayload payload = FlowUtils.waitFlowStatus(flowName, flowState);
    assertNotNull(payload);
    assertEquals(flowName, payload.getId());
    assertEquals(flowState, payload.getStatus());
}
Also used : FlowState(org.openkilda.messaging.payload.flow.FlowState) FlowIdStatusPayload(org.openkilda.messaging.payload.flow.FlowIdStatusPayload) Then(cucumber.api.java.en.Then)

Aggregations

FlowIdStatusPayload (org.openkilda.messaging.payload.flow.FlowIdStatusPayload)31 InfoMessage (org.openkilda.messaging.info.InfoMessage)15 CommandMessage (org.openkilda.messaging.command.CommandMessage)11 Test (org.junit.Test)10 FlowStatusResponse (org.openkilda.messaging.info.flow.FlowStatusResponse)8 FlowPayload (org.openkilda.messaging.payload.flow.FlowPayload)7 AbstractStormTest (org.openkilda.wfm.AbstractStormTest)6 Message (org.openkilda.messaging.Message)5 Then (cucumber.api.java.en.Then)3 Values (org.apache.storm.tuple.Values)3 FlowGetRequest (org.openkilda.messaging.command.flow.FlowGetRequest)3 FlowsGetRequest (org.openkilda.messaging.command.flow.FlowsGetRequest)3 Flow (org.openkilda.messaging.model.Flow)3 FlowState (org.openkilda.messaging.payload.flow.FlowState)3 FlowPathRequest (org.openkilda.messaging.command.flow.FlowPathRequest)2 FlowStatusRequest (org.openkilda.messaging.command.flow.FlowStatusRequest)2 InstallOneSwitchFlow (org.openkilda.messaging.command.flow.InstallOneSwitchFlow)2 RemoveFlow (org.openkilda.messaging.command.flow.RemoveFlow)2 ErrorData (org.openkilda.messaging.error.ErrorData)2 ErrorMessage (org.openkilda.messaging.error.ErrorMessage)2