From 72c2d08befbf43b61a9decda26ffd90ed9828b77 Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Thu, 14 Jul 2022 04:07:53 +0000 Subject: [PATCH] Bug 1776241 [wpt PR 34556] - Adds test for debug reports., a=testonly Automatic update from web-platform-tests Adds test for debug reports. Adds debug event report endpoint. Bug: 1338942 Change-Id: I488b5130564ea1e95ea9e648b4fd4bc26cea72dd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3721875 Reviewed-by: Andrew Paseltiner Commit-Queue: Adarsh Murthy Cr-Commit-Position: refs/heads/main@{#1022759} -- wpt-commits: 57a9d6574ee944753551eb9ade2e26c41bd28826 wpt-pr: 34556 --- .../attribution-reporting/debug/report-event-attribution | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 testing/web-platform/tests/.well-known/attribution-reporting/debug/report-event-attribution diff --git a/testing/web-platform/tests/.well-known/attribution-reporting/debug/report-event-attribution b/testing/web-platform/tests/.well-known/attribution-reporting/debug/report-event-attribution new file mode 100644 index 000000000000..605d7589e099 --- /dev/null +++ b/testing/web-platform/tests/.well-known/attribution-reporting/debug/report-event-attribution @@ -0,0 +1,8 @@ +"""Endpoint to receive and return event-level debug reports.""" +from importlib import import_module + +reports = import_module('attribution-reporting.resources.reports') + + +def main(request, response): + return reports.handle_reports(request)