summaryrefslogtreecommitdiff
path: root/adservices/tests/unittest/service-core/assets/msmt_interop_tests/rate_limit_max_source_registration_reporting_origin_endpoints.json
diff options
context:
space:
mode:
Diffstat (limited to 'adservices/tests/unittest/service-core/assets/msmt_interop_tests/rate_limit_max_source_registration_reporting_origin_endpoints.json')
-rw-r--r--adservices/tests/unittest/service-core/assets/msmt_interop_tests/rate_limit_max_source_registration_reporting_origin_endpoints.json240
1 files changed, 240 insertions, 0 deletions
diff --git a/adservices/tests/unittest/service-core/assets/msmt_interop_tests/rate_limit_max_source_registration_reporting_origin_endpoints.json b/adservices/tests/unittest/service-core/assets/msmt_interop_tests/rate_limit_max_source_registration_reporting_origin_endpoints.json
new file mode 100644
index 0000000000..c301d10214
--- /dev/null
+++ b/adservices/tests/unittest/service-core/assets/msmt_interop_tests/rate_limit_max_source_registration_reporting_origin_endpoints.json
@@ -0,0 +1,240 @@
+{
+ "description": "Max source registration reporting endpoints per rate limit window",
+ "api_config": {
+ "rate_limit_max_source_registration_reporting_origins": "1"
+ },
+ "input": {
+ "sources": [
+ {
+ "timestamp": "1643235573000",
+ "registration_request": {
+ "source_origin": "https://source1.test",
+ "attribution_src_url": "https://reporter1.test/register-source",
+ "source_type": "navigation"
+ },
+ "responses": [{
+ "url": "https://reporter1.test/register-source",
+ "response": {
+ "Attribution-Reporting-Register-Source": {
+ "destination": "https://destination1.test",
+ "source_event_id": "111"
+ }
+ }
+ }]
+ },
+ {
+ "timestamp": "1643235574000",
+ "registration_request": {
+ "source_origin": "https://source2.test",
+ "attribution_src_url": "https://reporter2.test/register-source",
+ "source_type": "navigation"
+ },
+ "responses": [{
+ "url": "https://reporter2.test/register-source",
+ "response": {
+ "Attribution-Reporting-Register-Source": {
+ "destination": "https://destination1.test",
+ "source_event_id": "222"
+ }
+ }
+ }]
+ },
+ {
+ "timestamp": "1643235575000",
+ "registration_request": {
+ "source_origin": "https://source1.test",
+ "attribution_src_url": "https://reporter2.test/register-source",
+ "source_type": "navigation"
+ },
+ "responses": [{
+ "url": "https://reporter2.test/register-source",
+ "response": {
+ "Attribution-Reporting-Register-Source": {
+ "destination": "https://destination2.test",
+ "source_event_id": "333"
+ }
+ }
+ }]
+ },
+ {
+ "timestamp": "1643235576000",
+ "registration_request": {
+ "source_origin": "https://source1.test",
+ "attribution_src_url": "https://reporter3.test/register-source",
+ "source_type": "event"
+ },
+ "responses": [{
+ "url": "https://reporter3.test/register-source",
+ "response": {
+ "Attribution-Reporting-Register-Source": {
+ "destination": "https://destination1.test",
+ "source_event_id": "444"
+ }
+ }
+ }]
+ },
+ {
+ "timestamp": "1645827573000",
+ "registration_request": {
+ "source_origin": "https://source1.test",
+ "attribution_src_url": "https://reporter3.test/register-source",
+ "source_type": "event"
+ },
+ "responses": [{
+ "url": "https://reporter3.test/register-source",
+ "response": {
+ "Attribution-Reporting-Register-Source": {
+ "destination": "https://destination1.test",
+ "source_event_id": "555"
+ }
+ }
+ }]
+ }
+ ],
+ "triggers": [
+ {
+ "timestamp": "1643235583000",
+ "registration_request": {
+ "attribution_src_url": "https://reporter1.test/register-trigger",
+ "destination_origin": "https://destination1.test"
+ },
+ "responses": [{
+ "url": "https://reporter1.test/register-trigger",
+ "response": {
+ "Attribution-Reporting-Register-Trigger": {
+ "event_trigger_data": [
+ {
+ "trigger_data": "7"
+ }
+ ]
+ }
+ }
+ }]
+ },
+ {
+ "timestamp": "1643235584000",
+ "registration_request": {
+ "attribution_src_url": "https://reporter2.test/register-trigger",
+ "destination_origin": "https://destination1.test"
+ },
+ "responses": [{
+ "url": "https://reporter2.test/register-trigger",
+ "response": {
+ "Attribution-Reporting-Register-Trigger": {
+ "event_trigger_data": [
+ {
+ "trigger_data": "6"
+ }
+ ]
+ }
+ }
+ }]
+ },
+ {
+ "timestamp": "1643235585000",
+ "registration_request": {
+ "attribution_src_url": "https://reporter2.test/register-trigger",
+ "destination_origin": "https://destination2.test"
+ },
+ "responses": [{
+ "url": "https://reporter2.test/register-trigger",
+ "response": {
+ "Attribution-Reporting-Register-Trigger": {
+ "event_trigger_data": [
+ {
+ "trigger_data": "5"
+ }
+ ]
+ }
+ }
+ }]
+ },
+ {
+ "timestamp": "1643235585000",
+ "registration_request": {
+ "attribution_src_url": "https://reporter3.test/register-trigger",
+ "destination_origin": "https://destination1.test"
+ },
+ "responses": [{
+ "url": "https://reporter3.test/register-trigger",
+ "response": {
+ "Attribution-Reporting-Register-Trigger": {
+ "event_trigger_data": [
+ {
+ "trigger_data": "4"
+ }
+ ]
+ }
+ }
+ }]
+ },
+ {
+ "timestamp": "1645827574000",
+ "registration_request": {
+ "attribution_src_url": "https://reporter3.test/register-trigger",
+ "destination_origin": "https://destination1.test"
+ },
+ "responses": [{
+ "url": "https://reporter3.test/register-trigger",
+ "response": {
+ "Attribution-Reporting-Register-Trigger": {
+ "event_trigger_data": [
+ {
+ "trigger_data": "3"
+ }
+ ]
+ }
+ }
+ }]
+ }
+ ]
+ },
+ "output": {
+ "event_level_results": [
+ {
+ "payload": {
+ "attribution_destination": "https://destination1.test",
+ "randomized_trigger_rate": 0.0024,
+ "source_event_id": "111",
+ "source_type": "navigation",
+ "trigger_data": "7"
+ },
+ "report_url": "https://reporter1.test/.well-known/attribution-reporting/report-event-attribution",
+ "report_time": "1643408373000"
+ },
+ {
+ "payload": {
+ "attribution_destination": "https://destination1.test",
+ "randomized_trigger_rate": 0.0024,
+ "source_event_id": "222",
+ "source_type": "navigation",
+ "trigger_data": "6"
+ },
+ "report_url": "https://reporter2.test/.well-known/attribution-reporting/report-event-attribution",
+ "report_time": "1643408374000"
+ },
+ {
+ "payload": {
+ "attribution_destination": "https://destination2.test",
+ "randomized_trigger_rate": 0.0024,
+ "source_event_id": "333",
+ "source_type": "navigation",
+ "trigger_data": "5"
+ },
+ "report_url": "https://reporter2.test/.well-known/attribution-reporting/report-event-attribution",
+ "report_time": "1643408375000"
+ },
+ {
+ "payload": {
+ "attribution_destination": "https://destination1.test",
+ "randomized_trigger_rate": 0.0000025,
+ "source_event_id": "555",
+ "source_type": "event",
+ "trigger_data": "1"
+ },
+ "report_url": "https://reporter3.test/.well-known/attribution-reporting/report-event-attribution",
+ "report_time": "1648423173000"
+ }
+ ]
+ }
+}