Skip to content

Commit 7bc663d

Browse files
committed
update unit tests
1 parent 1d488f4 commit 7bc663d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_trigger.py

+4
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ def test_extract_trigger_tags_api_gateway(self):
258258
"http.url": "70ixmpl4fl.execute-api.us-east-2.amazonaws.com",
259259
"http.url_details.path": "/prod/path/to/resource",
260260
"http.method": "POST",
261+
"http.route": "/{proxy+}"
261262
},
262263
)
263264

@@ -276,6 +277,8 @@ def test_extract_trigger_tags_api_gateway_non_proxy(self):
276277
"http.url": "lgxbo6a518.execute-api.eu-west-1.amazonaws.com",
277278
"http.url_details.path": "/dev/http/get",
278279
"http.method": "GET",
280+
"http.route": "/http/get",
281+
279282
},
280283
)
281284

@@ -342,6 +345,7 @@ def test_extract_trigger_tags_api_gateway_http_api(self):
342345
"http.url": "x02yirxc7a.execute-api.eu-west-1.amazonaws.com",
343346
"http.url_details.path": "/httpapi/get",
344347
"http.method": "GET",
348+
"http.route": "GET /httpapi/get"
345349
},
346350
)
347351

0 commit comments

Comments
 (0)