{
  "id": "dedicated",
  "caseOrder": [
    "dedicated-create",
    "dedicated-connection",
    "dedicated-password",
    "dedicated-backup-list",
    "dedicated-backup-settings",
    "dedicated-restore",
    "dedicated-restore-history",
    "dedicated-events",
    "dedicated-changefeed",
    "dedicated-delete"
  ],
  "start": { "path": "/tidbs" },
  "variables": {
    "clusterName": {
      "env": ["E2E_DEDICATED_CLUSTER_NAME", "PUBLIC_DEDICATED_CLUSTER_NAME"],
      "required": true
    }
  },
  "initialization": [
    "Work only on the exact Dedicated cluster {{clusterName}} in the organization selected by the authenticated application.",
    "Locate the cluster through visible UI; never guess or construct a resource ID."
  ],
  "safety": {
    "blockOtherApiMutations": true,
    "networkGuards": [
      {
        "id": "dedicated-cidr-validation-only",
        "method": "POST",
        "pathMatches": "^/api/v1/orgs/[^/]+/projects/[^/]+/cidrs$",
        "bodyEquals": { "validate_only": true },
        "maxRequests": 3
      }
    ],
    "navigationGuards": [
      {
        "id": "dedicated-cluster-identity",
        "pathMatches": "^/(?:tidbs|clusters)/([^/]+)(?:/|$)",
        "apiPathMatches": [
          "^/api/v2023/clusterManagement/v1beta2/tidbs/([^/]+)$",
          "^/api/v2023/dedicated/v1beta1/clusters/([^/]+)$",
          "^/api/v1/external/[^/]+/orgs/[^/]+/projects/[^/]+/clusters/([^/]+)/?$"
        ],
        "resourceIdGroup": 1,
        "expectedVisibleName": "{{clusterName}}",
        "allowCapturedVariable": "dedicatedClusterId"
      }
    ]
  }
}
