{
  "id": "starter",
  "caseOrder": [
    "starter-create",
    "starter-connection",
    "starter-connection-password",
    "starter-backup-list",
    "starter-backup-settings",
    "starter-restore",
    "starter-events",
    "starter-metrics",
    "starter-slow-query",
    "starter-chat2query",
    "starter-import",
    "starter-data-service",
    "starter-data-service-cleanup",
    "starter-networking",
    "starter-branch-create",
    "starter-branch-delete",
    "starter-delete"
  ],
  "start": { "path": "/tidbs" },
  "variables": {
    "clusterName": {
      "env": ["E2E_STARTER_CLUSTER_NAME"],
      "required": true
    },
    "dataAppName": {
      "env": ["E2E_STARTER_DATA_APP_NAME"],
      "default": "{{clusterName}}"
    }
  },
  "initialization": [
    "Work only on Starter instance {{clusterName}} in the organization selected by the authenticated application.",
    "If the instance is not already open, locate it through visible UI; never guess a resource ID or construct a detail URL."
  ],
  "safety": {
    "blockOtherApiMutations": true,
    "navigationGuards": [
      {
        "id": "starter-cluster-identity",
        "pathMatches": "^/(?:tidbs|clusters)/([^/]+)(?:/|$)",
        "apiPathMatches": [
          "^/api/v2023/clusterManagement/v1beta2/tidbs/([^/]+)$",
          "^/api/v2023/serverless/v1beta1/clusters/([^/]+)$",
          "^/api/v1/serverless/orgs/[^/]+/clusters/([^/]+)/",
          "^/api/v1/external/[^/]+/orgs/[^/]+/projects/[^/]+/clusters/([^/]+)/?$"
        ],
        "resourceIdGroup": 1,
        "expectedVisibleName": "{{clusterName}}",
        "allowCapturedVariable": "starterClusterId"
      }
    ]
  }
}
