Search in sources :

Example 16 with BridgeContext

use of com.redhat.service.bridge.integration.tests.context.BridgeContext in project sandbox by 5733d9e2be6485d52ffa08870cabdee0.

the class ProcessorSteps method deleteProcessorOfBridgeIsFailingWithHTTPResponseCode.

@When("^delete the Processor \"([^\"]*)\" of the Bridge \"([^\"]*)\" is failing with HTTP response code (\\d+)$")
public void deleteProcessorOfBridgeIsFailingWithHTTPResponseCode(String processorName, String testBridgeName, int responseCode) {
    BridgeContext bridgeContext = context.getBridge(testBridgeName);
    String processorId = bridgeContext.getProcessor(processorName).getId();
    ProcessorResource.deleteProcessorResponse(context.getManagerToken(), bridgeContext.getId(), processorId).then().statusCode(responseCode);
}
Also used : BridgeContext(com.redhat.service.bridge.integration.tests.context.BridgeContext) When(io.cucumber.java.en.When)

Aggregations

BridgeContext (com.redhat.service.bridge.integration.tests.context.BridgeContext)16 And (io.cucumber.java.en.And)7 When (io.cucumber.java.en.When)5 Then (io.cucumber.java.en.Then)3 ProcessorContext (com.redhat.service.bridge.integration.tests.context.ProcessorContext)2 ProcessorResponse (com.redhat.service.bridge.manager.api.models.responses.ProcessorResponse)2 BaseAction (com.redhat.service.bridge.infra.models.actions.BaseAction)1 BridgeListResponse (com.redhat.service.bridge.manager.api.models.responses.BridgeListResponse)1 BridgeResponse (com.redhat.service.bridge.manager.api.models.responses.BridgeResponse)1 ProcessorListResponse (com.redhat.service.bridge.manager.api.models.responses.ProcessorListResponse)1 JsonObject (io.vertx.core.json.JsonObject)1 ByteArrayInputStream (java.io.ByteArrayInputStream)1 IOException (java.io.IOException)1 InputStream (java.io.InputStream)1