{
  "repo": "tidbcloud/cloud-cicd",
  "binary": "smoke-test-auth0-token",
  "binary_path": "smoke_test/get_auth0_token.py",
  "dependencies": {
    "CLI python smoke_test/get_auth0_token.py --chromedriver <path> --url <tidb-cloud-url> --tokendir <dir>": {
      "infrastructure": {
        "browser_automation": {
          "conditions": [
            "Always"
          ],
          "operations": [
            {
              "operation": "BROWSER LOGIN AUTOMATION",
              "trigger": "Launch ChromeDriver, log in to TiDB Cloud, and extract the Auth0 token from browser events",
              "conditions": [
                "The CLI is executed with a valid ChromeDriver path and credentials"
              ],
              "implementation": "selenium webdriver flow in get_driver(), login_tidb_cloud(), get_events(), and get_user_token()"
            }
          ]
        },
        "filesystem": {
          "conditions": [
            "When persisting acquired tokens"
          ],
          "operations": [
            {
              "operation": "WRITE FILES",
              "trigger": "Persist the captured tokens into the target directory",
              "conditions": [
                "write_token() is executed"
              ],
              "implementation": "write_token() in smoke_test/get_auth0_token.py"
            }
          ]
        }
      },
      "services": []
    }
  }
}
