use of com.redhat.service.bridge.integration.tests.context.ProcessorContext in project sandbox by 5733d9e2be6485d52ffa08870cabdee0.
the class ProcessorSteps method addFakeProcessorToBridge.
@When("^add a fake Processor \"([^\"]*)\" to the Bridge \"([^\"]*)\"$")
public void addFakeProcessorToBridge(String processorName, String testBridgeName) {
BridgeContext bridgeContext = context.getBridge(testBridgeName);
ProcessorContext processorContext = bridgeContext.newProcessor(processorName, Utils.generateId(processorName));
processorContext.setDeleted(true);
}
use of com.redhat.service.bridge.integration.tests.context.ProcessorContext in project sandbox by 5733d9e2be6485d52ffa08870cabdee0.
the class ProcessorSteps method listOfBridgeInstancesIsContainingBridge.
@And("^the list of Processor instances of the Bridge \"([^\"]*)\" is containing the Processor \"([^\"]*)\"$")
public void listOfBridgeInstancesIsContainingBridge(String testBridgeName, String processorName) {
BridgeContext bridgeContext = context.getBridge(testBridgeName);
ProcessorContext processorContext = bridgeContext.getProcessor(processorName);
ProcessorListResponse response = ProcessorResource.getProcessorList(context.getManagerToken(), bridgeContext.getId());
assertThat(response.getItems()).anyMatch(p -> p.getId().equals(processorContext.getId()));
}
Aggregations