示例#1
0
def test_func_multi_trigger(logger, **kwargs):
    return [
        Payload(path=Path.TEST_TRIGGER_SECOND, kwargs={}),
        Payload(path=Path.TEST_TRIGGER_SECOND, kwargs={}),
        Payload(
            queue=Queue(
                name=config("TEST_KINESIS_STREAM"),
                type=QueueType.KINESIS,
                path="TEST_FUNC",
            ),
            kwargs={"foo": "bar"},
        ),
    ]
示例#2
0
def test_func_trigger_error(logger, **kwargs):
    return Payload(path=Path.TEST_RAISE, kwargs={})
示例#3
0
def return_payload_throw_custom_exception_continue(**kwargs):
    return Payload(path=Path.TEST_RAISE_CUSTOM_CONTINUE, kwargs={})
示例#4
0
def test_func_trigger_first(logger, **kwargs):
    return Payload(path=Path.TEST_TRIGGER_SECOND, kwargs={})
示例#5
0
def return_payload_throw_custom_exception(**kwargs):
    return Payload(path=Path.TEST_RAISE_CUSTOM, kwargs={})