File tree 2 files changed +235
-185
lines changed
tests/functional/event_handler
2 files changed +235
-185
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import pytest
4
4
5
+ from tests .functional .utils import load_event
6
+
5
7
6
8
@pytest .fixture
7
9
def json_dump ():
@@ -39,3 +41,33 @@ def validation_schema():
39
41
@pytest .fixture
40
42
def raw_event ():
41
43
return {"message" : "hello hello" , "username" : "blah blah" }
44
+
45
+
46
+ @pytest .fixture
47
+ def gw_event ():
48
+ return load_event ("apiGatewayProxyEvent.json" )
49
+
50
+
51
+ @pytest .fixture
52
+ def gw_event_http ():
53
+ return load_event ("apiGatewayProxyV2Event.json" )
54
+
55
+
56
+ @pytest .fixture
57
+ def gw_event_alb ():
58
+ return load_event ("albMultiValueQueryStringEvent.json" )
59
+
60
+
61
+ @pytest .fixture
62
+ def gw_event_lambda_url ():
63
+ return load_event ("lambdaFunctionUrlEventWithHeaders.json" )
64
+
65
+
66
+ @pytest .fixture
67
+ def gw_event_vpc_lattice ():
68
+ return load_event ("vpcLatticeV2EventWithHeaders.json" )
69
+
70
+
71
+ @pytest .fixture
72
+ def gw_event_vpc_lattice_v1 ():
73
+ return load_event ("vpcLatticeEvent.json" )
You can’t perform that action at this time.
0 commit comments