use of com.redhat.service.smartevents.infra.models.gateways.Action in project sandbox by 5733d9e2be6485d52ffa08870cabdee0.
the class SendToBridgeActionResolverTest method testActionWithUnknownBridgeId.
@Test
void testActionWithUnknownBridgeId() {
Action inputAction = actionWithBridgeId(UNKNOWN_BRIDGE_ID);
assertThatExceptionOfType(ItemNotFoundException.class).isThrownBy(() -> resolver.resolve(inputAction, TEST_CUSTOMER_ID, BRIDGE_ID, ""));
}
use of com.redhat.service.smartevents.infra.models.gateways.Action in project sandbox by 5733d9e2be6485d52ffa08870cabdee0.
the class SendToBridgeActionResolverTest method testActionWithOtherBridgeId.
@Test
void testActionWithOtherBridgeId() {
Action inputAction = actionWithBridgeId(OTHER_BRIDGE_ID);
Action resolvedAction = resolver.resolve(inputAction, TEST_CUSTOMER_ID, BRIDGE_ID, "");
assertValid(resolvedAction, OTHER_BRIDGE_WEBHOOK);
}
use of com.redhat.service.smartevents.infra.models.gateways.Action in project sandbox by 5733d9e2be6485d52ffa08870cabdee0.
the class SendToBridgeActionResolverTest method testActionWithSameBridgeId.
@Test
void testActionWithSameBridgeId() {
Action inputAction = actionWithBridgeId(BRIDGE_ID);
Action resolvedAction = resolver.resolve(inputAction, TEST_CUSTOMER_ID, BRIDGE_ID, "");
assertValid(resolvedAction, BRIDGE_WEBHOOK);
}
use of com.redhat.service.smartevents.infra.models.gateways.Action in project sandbox by 5733d9e2be6485d52ffa08870cabdee0.
the class SendToBridgeActionResolverTest method testActionWithoutBridgeId.
@Test
void testActionWithoutBridgeId() {
Action inputAction = actionWithoutBridgeId();
Action resolvedAction = resolver.resolve(inputAction, TEST_CUSTOMER_ID, BRIDGE_ID, "");
assertValid(resolvedAction, BRIDGE_WEBHOOK);
}
use of com.redhat.service.smartevents.infra.models.gateways.Action in project sandbox by 5733d9e2be6485d52ffa08870cabdee0.
the class SendToBridgeActionValidatorTest method actionWithNullParams.
private Action actionWithNullParams() {
Action b = new Action();
b.setType(SendToBridgeAction.TYPE);
return b;
}
Aggregations