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

{
  "api_config": {
    "max_trigger_state_cardinality": "3"
  },
  "description": "limit number of report states for a source registration",
  "input": {
    "registrations": [
      {
        // Should register as default event sources have 3 possible states.
        "timestamp": "0",
        "registration_request": {
          "context_origin": "https://source.test",
          "Attribution-Reporting-Eligible": "event-source"
        },
        "responses": [
          {
            "url": "https://reporter.test/register-source",
            "debug_permission": true,
            "response": {
              "Attribution-Reporting-Register-Source": {
                "destination": "https://destination.test",
                "source_event_id": "123",
                "debug_reporting": true
              }
            }
          }
        ]
      },
      {
        // Should not register as default navigation sources have 2925 possible
        // states.
        "timestamp": "1000",
        "registration_request": {
          "context_origin": "https://source.test",
          "Attribution-Reporting-Eligible": "navigation-source"
        },
        "responses": [
          {
            "url": "https://reporter2.test/register-source",
            "debug_permission": true,
            "response": {
              "Attribution-Reporting-Register-Source": {
                "destination": "https://destination.test",
                "source_event_id": "456",
                "debug_reporting": true
              }
            }
          }
        ]
      },
      {
        "timestamp": "2000",
        "registration_request": {
          "context_origin": "https://destination.test"
        },
        "responses": [
          {
            "url": "https://reporter.test/register-trigger",
            "response": {
              "Attribution-Reporting-Register-Trigger": {
                "event_trigger_data": [
                  {
                    "trigger_data": "1"
                  }
                ]
              }
            }
          }
        ]
      }
    ]
  },
  "output": {
    "reports": [
      {
        "payload": [
          {
            "body": {
              "attribution_destination": "https://destination.test",
              "source_event_id": "123",
              "source_site": "https://source.test"
            },
            "type": "source-success"
          }
        ],
        "report_time": "0",
        "report_url": "https://reporter.test/.well-known/attribution-reporting/debug/verbose"
      },
      {
        "payload": [ {
           "body": {
              "attribution_destination": "https://destination.test",
              "limit": "3",
              "source_event_id": "456",
              "source_site": "https://source.test"
           },
           "type": "source-trigger-state-cardinality-limit"
        } ],
        "report_time": "1000",
        "report_url": "https://reporter2.test/.well-known/attribution-reporting/debug/verbose"
      },
      {
        "payload": {
          "attribution_destination": "https://destination.test",
          "randomized_trigger_rate": 0.0000025,
          "scheduled_report_time": "2592000",
          "source_event_id": "123",
          "source_type": "event",
          "trigger_data": "1"
        },
        "report_url": "https://reporter.test/.well-known/attribution-reporting/report-event-attribution",
        "report_time": "2592000000"
      }
    ]
  }
}