scenario:
  id: c76f444aa0684b168f816703875a4b01
  context:
    auth:
      type: customized
    base_path: /v1beta2
    host: null
  description: need continue_on_unexpected and export unmatched case
  name: ng_tidb_service.openapi.403
steps:
  - operation_id: TidbService_CreateTidb
    request_type: http
    request: |-
      {
        "method": "POST",
        "path": "/tidbs",
        "headers": {},
        "query_params": {},
        "body": {
          "displayName": "ng-rbac-tidb-service-403",
          "regionId": "{regionId}",
          "minRcu": "5000",
          "maxRcu": "6000",
          "servicePlan": "Premium",
          "cloudProvider": "{cloud_provider}"
        },
        "body_params": {
          "regionId": "region_id",
          "cloud_provider": "cloud_provider"
        },
        "auth": {
          "auth_type": "digest",
          "auth_role": "resource_apikey"
        }
      }
    expect: |-
      {
        "status_code": 200,
        "cel": ""
      }
    save: |-
      {
        "placeholder": [
          {
            "key": "cluster_1",
            "eval": "body.tidbId"
          }
        ]
      }
    description: ""
    max_retries: 0
    delay_after: 0
    name: ""
    continue_on_unexpected: false
    stage: ""
    meta: "{}"
    generation_id: ""
    order: 0
  - operation_id: TidbService_GetTidb
    request_type: http
    request: |-
      {
        "method": "GET",
        "path": "/tidbs/{tidbId}",
        "headers": {},
        "query_params": {},
        "body": {},
        "auth": {
          "auth_type": "digest",
          "auth_role": "resource_apikey"
        },
        "path_params": {
          "tidbId": "cluster_1"
        }
      }
    expect: |-
      {
        "status_code": 200,
        "cel": "body.state == 'ACTIVE'"
      }
    save: null
    description: ""
    max_retries: 120
    delay_after: 30
    name: ""
    continue_on_unexpected: false
    stage: ""
    meta: "{}"
    generation_id: ""
    order: 0.5
  - operation_id: TidbService_ListTidbs
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "GET",
        "path": "/tidbs",
        "path_params": {},
        "query_params": {},
        "headers": {
          "accept": "application/json, text/plain, */*",
          "accept-language": "zh-CN,zh;q=0.9",
          "X-Auth-Method": "digest"
        },
        "body": {}
      }
    expect: |-
      {
        "status_code": 200,
        "cel": "has(body.tidbs) && size(body.tidbs) == 0"
      }
    save: null
    description:
      "Test 403 unauthorized access for TidbService_ListTidbs with X-Auth-Method:
      digest"
    max_retries: 0
    delay_after: 0
    name: test_403_tidbservice_listtidbs_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: c76f444aa0684b168f816703875a4b01
    order: 1
    case_id: c76f444aa0684b168f816703875a4b01_1
    case_type: typical_negative
    step_type: generated
  - operation_id: TidbService_CreateTidb
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "POST",
        "path": "/tidbs",
        "path_params": {},
        "query_params": {},
        "headers": {
          "accept": "application/json, text/plain, */*",
          "accept-language": "zh-CN,zh;q=0.9",
          "X-Auth-Method": "digest"
        },
        "body": {}
      }
    expect: |-
      {
        "status_code": 403,
        "cel": ""
      }
    save: null
    description:
      "Test 403 unauthorized access for TidbService_CreateTidb with X-Auth-Method:
      digest"
    max_retries: 0
    delay_after: 0
    name: test_403_tidbservice_createtidb_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: c76f444aa0684b168f816703875a4b01
    order: 2
    case_id: c76f444aa0684b168f816703875a4b01_2
    case_type: typical_negative
    step_type: generated
  - operation_id: TidbService_GetTidb
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "GET",
        "path": "/tidbs/{tidbId}",
        "path_params": {
          "tidbId": "cluster_1"
        },
        "query_params": {},
        "headers": {
          "accept": "application/json, text/plain, */*",
          "accept-language": "zh-CN,zh;q=0.9",
          "X-Auth-Method": "digest"
        },
        "body": {}
      }
    expect: |-
      {
        "status_code": 403,
        "cel": ""
      }
    save: null
    description:
      "Test 403 unauthorized access for TidbService_GetTidb with X-Auth-Method:
      digest"
    max_retries: 0
    delay_after: 0
    name: test_403_tidbservice_gettidb_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: c76f444aa0684b168f816703875a4b01
    order: 3
    case_id: c76f444aa0684b168f816703875a4b01_3
    case_type: typical_negative
    step_type: generated
  - operation_id: TidbService_DeleteTidb
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "DELETE",
        "path": "/tidbs/{tidbId}",
        "path_params": {
          "tidbId": "cluster_1"
        },
        "query_params": {},
        "headers": {
          "accept": "application/json, text/plain, */*",
          "accept-language": "zh-CN,zh;q=0.9",
          "X-Auth-Method": "digest"
        },
        "body": {}
      }
    expect: |-
      {
        "status_code": 403,
        "cel": ""
      }
    save: null
    description:
      "Test 403 unauthorized access for TidbService_DeleteTidb with X-Auth-Method:
      digest"
    max_retries: 0
    delay_after: 0
    name: test_403_tidbservice_deletetidb_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: c76f444aa0684b168f816703875a4b01
    order: 4
    case_id: c76f444aa0684b168f816703875a4b01_4
    case_type: typical_negative
    step_type: generated
  - operation_id: TidbService_UpdateTidb
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "PATCH",
        "path": "/tidbs/{tidbId}",
        "path_params": {
          "tidbId": "cluster_1"
        },
        "query_params": {},
        "headers": {
          "accept": "application/json, text/plain, */*",
          "accept-language": "zh-CN,zh;q=0.9",
          "X-Auth-Method": "digest"
        },
        "body": {}
      }
    expect: |-
      {
        "status_code": 403,
        "cel": ""
      }
    save: null
    description:
      "Test 403 unauthorized access for TidbService_UpdateTidb with X-Auth-Method:
      digest"
    max_retries: 0
    delay_after: 0
    name: test_403_tidbservice_updatetidb_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: c76f444aa0684b168f816703875a4b01
    order: 5
    case_id: c76f444aa0684b168f816703875a4b01_5
    case_type: typical_negative
    step_type: generated
  - operation_id: TidbService_ResetRootPassword
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "POST",
        "path": "/tidbs/{tidbId}:resetRootPassword",
        "path_params": {
          "tidbId": "cluster_1"
        },
        "query_params": {},
        "headers": {
          "accept": "application/json, text/plain, */*",
          "accept-language": "zh-CN,zh;q=0.9",
          "X-Auth-Method": "digest"
        },
        "body": {}
      }
    expect: |-
      {
        "status_code": 403,
        "cel": ""
      }
    save: null
    description:
      "Test 403 unauthorized access for TidbService_ResetRootPassword with
      X-Auth-Method: digest"
    max_retries: 0
    delay_after: 0
    name: test_403_tidbservice_resetrootpassword_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: c76f444aa0684b168f816703875a4b01
    order: 6
    case_id: c76f444aa0684b168f816703875a4b01_6
    case_type: typical_negative
    step_type: generated
  - operation_id: TidbService_GetCloudProviderInfo
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "GET",
        "path": "/tidbs/{tidbId}/cloudProviderInfo",
        "path_params": {
          "tidbId": "cluster_1"
        },
        "query_params": {},
        "headers": {
          "accept": "application/json, text/plain, */*",
          "accept-language": "zh-CN,zh;q=0.9",
          "X-Auth-Method": "digest"
        },
        "body": {}
      }
    expect: |-
      {
        "status_code": 403,
        "cel": ""
      }
    save: null
    description:
      "Test 403 unauthorized access for TidbService_GetCloudProviderInfo
      with X-Auth-Method: digest"
    max_retries: 0
    delay_after: 0
    name: test_403_tidbservice_getcloudproviderinfo_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: c76f444aa0684b168f816703875a4b01
    order: 7
    case_id: c76f444aa0684b168f816703875a4b01_7
    case_type: typical_negative
    step_type: generated
  # - operation_id: TidbService_EstimatePrice
  #   request_type: http
  #   request: |-
  #     {
  #       "auth": {
  #         "auth_type": "digest",
  #         "auth_role": "target_apikey"
  #       },
  #       "method": "POST",
  #       "path": "/tidbs:estimatePrice",
  #       "path_params": {},
  #       "query_params": {},
  #       "headers": {
  #         "accept": "application/json, text/plain, */*",
  #         "accept-language": "zh-CN,zh;q=0.9",
  #         "X-Auth-Method": "digest"
  #       },
  #       "body": {}
  #     }
  #   expect: |-
  #     {
  #       "status_code": 403,
  #       "cel": ""
  #     }
  #   save: null
  #   description:
  #     "Test 403 unauthorized access for TidbService_EstimatePrice with X-Auth-Method:
  #     digest"
  #   max_retries: 0
  #   delay_after: 0
  #   name: test_403_tidbservice_estimateprice_digest_no_type
  #   continue_on_unexpected: false
  #   stage: execute
  #   meta: "{}"
  #   generation_id: c76f444aa0684b168f816703875a4b01
  #   order: 8
  #   case_id: c76f444aa0684b168f816703875a4b01_8
  #   case_type: typical_negative
  #   step_type: generated
  - operation_id: TidbService_GetBackupSetting
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "GET",
        "path": "/tidbs/{tidbId}/backupSetting",
        "path_params": {
          "tidbId": "cluster_1"
        },
        "query_params": {},
        "headers": {
          "accept": "application/json, text/plain, */*",
          "accept-language": "zh-CN,zh;q=0.9",
          "X-Auth-Method": "digest"
        },
        "body": {}
      }
    expect: |-
      {
        "status_code": 403,
        "cel": ""
      }
    save: null
    description:
      "Test 403 unauthorized access for TidbService_GetBackupSetting with
      X-Auth-Method: digest"
    max_retries: 0
    delay_after: 0
    name: test_403_tidbservice_getbackupsetting_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: c76f444aa0684b168f816703875a4b01
    order: 9
    case_id: c76f444aa0684b168f816703875a4b01_9
    case_type: typical_negative
    step_type: generated
  - operation_id: TidbService_UpdateBackupSetting
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "PATCH",
        "path": "/tidbs/{tidbId}/backupSetting",
        "path_params": {
          "tidbId": "cluster_1"
        },
        "query_params": {},
        "headers": {
          "accept": "application/json, text/plain, */*",
          "accept-language": "zh-CN,zh;q=0.9",
          "X-Auth-Method": "digest"
        },
        "body": {}
      }
    expect: |-
      {
        "status_code": 403,
        "cel": ""
      }
    save: null
    description:
      "Test 403 unauthorized access for TidbService_UpdateBackupSetting with
      X-Auth-Method: digest"
    max_retries: 0
    delay_after: 0
    name: test_403_tidbservice_updatebackupsetting_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: c76f444aa0684b168f816703875a4b01
    order: 10
    case_id: c76f444aa0684b168f816703875a4b01_10
    case_type: typical_negative
    step_type: generated
  - operation_id: TidbService_ListTidbBackups
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "GET",
        "path": "/tidbs/{tidbId}/backups",
        "path_params": {
          "tidbId": "cluster_1"
        },
        "query_params": {},
        "headers": {
          "accept": "application/json, text/plain, */*",
          "accept-language": "zh-CN,zh;q=0.9",
          "X-Auth-Method": "digest"
        },
        "body": {}
      }
    expect: |-
      {
        "status_code": 403,
        "cel": ""
      }
    save: null
    description:
      "Test 403 unauthorized access for TidbService_ListTidbBackups with
      X-Auth-Method: digest"
    max_retries: 0
    delay_after: 0
    name: test_403_tidbservice_listtidbbackups_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: c76f444aa0684b168f816703875a4b01
    order: 11
    case_id: c76f444aa0684b168f816703875a4b01_11
    case_type: typical_negative
    step_type: generated
  - operation_id: TidbService_DeleteTidbBackup
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "DELETE",
        "path": "/tidbs/{tidbId}/backups/123",
        "path_params": {
          "tidbId": "cluster_1"
        },
        "query_params": {},
        "headers": {
          "accept": "application/json, text/plain, */*",
          "accept-language": "zh-CN,zh;q=0.9",
          "X-Auth-Method": "digest"
        },
        "body": {}
      }
    expect: |-
      {
        "status_code": 403,
        "cel": ""
      }
    save: null
    description:
      "Test 403 unauthorized access for TidbService_DeleteTidbBackup with
      X-Auth-Method: digest"
    max_retries: 0
    delay_after: 0
    name: test_403_tidbservice_deletetidbbackup_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: c76f444aa0684b168f816703875a4b01
    order: 12
    case_id: c76f444aa0684b168f816703875a4b01_12
    case_type: typical_negative
    step_type: generated
  - operation_id: TidbService_RestoreTidb
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "POST",
        "path": "/tidbs:restore",
        "path_params": {},
        "query_params": {},
        "headers": {
          "accept": "application/json, text/plain, */*",
          "accept-language": "zh-CN,zh;q=0.9",
          "X-Auth-Method": "digest"
        },
        "body": {}
      }
    expect: |-
      {
        "status_code": 403,
        "cel": ""
      }
    save: null
    description:
      "Test 403 unauthorized access for TidbService_RestoreTidb with X-Auth-Method:
      digest"
    max_retries: 0
    delay_after: 0
    name: test_403_tidbservice_restoretidb_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: c76f444aa0684b168f816703875a4b01
    order: 13
    case_id: c76f444aa0684b168f816703875a4b01_13
    case_type: typical_negative
    step_type: generated
  - operation_id: TidbService_RestoreStatus
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "GET",
        "path": "/tidbs/{tidbId}:restoreStatus",
        "path_params": {
          "tidbId": "cluster_1"
        },
        "query_params": {},
        "headers": {
          "accept": "application/json, text/plain, */*",
          "accept-language": "zh-CN,zh;q=0.9",
          "X-Auth-Method": "digest"
        },
        "body": {}
      }
    expect: |-
      {
        "status_code": 403,
        "cel": ""
      }
    save: null
    description:
      "Test 403 unauthorized access for TidbService_RestoreStatus with X-Auth-Method:
      digest"
    max_retries: 0
    delay_after: 0
    name: test_403_tidbservice_restorestatus_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: c76f444aa0684b168f816703875a4b01
    order: 14
    case_id: c76f444aa0684b168f816703875a4b01_14
    case_type: typical_negative
    step_type: generated
  - operation_id: TidbService_DeleteTidb
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "resource_apikey"
        },
        "method": "DELETE",
        "path": "/tidbs/{tidbId}",
        "path_params": {
          "tidbId": "cluster_1"
        },
        "query_params": {},
        "headers": {
          "accept": "application/json, text/plain, */*",
          "accept-language": "zh-CN,zh;q=0.9",
          "X-Auth-Method": "digest"
        },
        "body": {}
      }
    expect: |-
      {
        "status_code": 200,
        "cel": ""
      }
    save: null
    description: "Test 200 access for TidbService_DeleteTidb with X-Auth-Method:
      digest"
    max_retries: 0
    delay_after: 0
    name: test_200_tidbservice_deletetidb_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: c76f444aa0684b168f816703875a4b01
    order: 15
    case_id: c76f444aa0684b168f816703875a4b01_4
    case_type: typical_negative
    step_type: generated
