chromium/content/test/data/attribution_reporting/interop/rate_limit_max_source_reporting_origin_ignores_expiry.json

{
  "description": "Max source registration reporting endpoints per rate limit window ignores source expiry.",
  "api_config": {
    "rate_limit_max_source_registration_reporting_origins": "1"
  },
  "input": {
    "registrations": [
      {
        "registration_request": {
          "context_origin": "https://source.test",
          "Attribution-Reporting-Eligible": "navigation-source"
        },
        "responses": [
          {
            "url": "https://reporter.test/register-source",
            "response": {
              "Attribution-Reporting-Register-Source": {
                "source_event_id": "123",
                "destination": "https://destination.test",
                "expiry": "86400"
              }
            }
          }
        ],
        "timestamp": "0"
      },
      // Source is rejected for exceeding the distinct reporting origin
      // limit. Although the previous source has expired, it is still within
      // the rate limit window.
      {
        "registration_request": {
          "context_origin": "https://source.test",
          "Attribution-Reporting-Eligible": "event-source"
        },
        "responses": [
          {
            "url": "https://example.reporter.test/register-source",
            "response": {
              "Attribution-Reporting-Register-Source": {
                "source_event_id": "456",
                "destination": "https://destination.test"
              }
            }
          }
        ],
        "timestamp": "86400001"
      },
      // Should not result in any report since the reporting origins
      // do not match.
      {
        "registration_request": {
          "context_origin": "https://destination.test"
        },
        "responses": [
          {
            "url": "https://example.reporter.test/register-trigger",
            "response": {
              "Attribution-Reporting-Register-Trigger": {
                "event_trigger_data": [
                  {
                    "trigger_data": "1"
                  }
                ]
              }
            }
          }
        ],
        "timestamp": "86401001"
      }
    ]
  },
  "output": {
    "reports": []
  }
}