scenario:
  id: b0325d12a912402a84a8d02af51a0df9
  context:
    auth:
      type: customized
    base_path: /v1beta2
    host: null
  description: need continue_on_unexpected and export unmatched case
  name: ng_database_auditlog_service_cluster_viewer
steps:
  - operation_id: TidbService_CreateTidb
    request_type: http
    request: |-
      {
        "method": "POST",
        "path": "/tidbs",
        "headers": {},
        "query_params": {},
        "body": {
          "displayName": "ng-rbac-all-cluster-viewer",
          "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: role_service
    request_type: http
    request: |-
      {
        "method": "PUT",
        "path": "https://iam.staging.tidbapi.com/v1beta1/apikeys/{public_key}/roles",
        "headers": {},
        "query_params": {},
        "body": {
          "orgRole": "org:member",
          "clusterRoles": [
            {
              "scopeIdStr": "{tidbId}",
              "role": "cluster:viewer"
            }
          ]
        },
        "auth": {
          "auth_type": "digest",
          "auth_role": "resource_apikey"
        },
        "body_params": {
          "tidbId": "cluster_1"
        },
        "path_params": {
          "public_key": "target_apikey_public"
        }
      }
    expect: |-
      {
        "status_code": 200,
        "cel": ""
      }
    save: null
    description: ""
    max_retries: 120
    delay_after: 30
    name: ""
    continue_on_unexpected: false
    stage: ""
    meta: "{}"
    generation_id: ""
    order: 0.6
  - operation_id: DatabaseAuditLogService_GetAuditLogSetting
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "GET",
        "path": "/tidbs/{tidbId}/auditLogSetting",
        "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 DatabaseAuditLogService_GetAuditLogSetting
      with X-Auth-Method: digest"
    max_retries: 0
    delay_after: 0
    name: test_200_databaseauditlogservice_getauditlogsetting_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: b0325d12a912402a84a8d02af51a0df9
    order: 1
    case_id: b0325d12a912402a84a8d02af51a0df9_1
    case_type: typical_negative
    step_type: generated
  - operation_id: DatabaseAuditLogService_UpdateAuditLogSetting
    request_type: http
    request: |-
      {
        "auth": {
            "auth_type": "digest",
            "auth_role": "target_apikey"
        },
        "method": "PATCH",
        "path": "/tidbs/{tidbId}/auditLogSetting",
        "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 DatabaseAuditLogService_UpdateAuditLogSetting
      with X-Auth-Method: digest"
    max_retries: 0
    delay_after: 0
    name: test_403_databaseauditlogservice_updateauditlogsetting_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: b0325d12a912402a84a8d02af51a0df9
    order: 2
    case_id: b0325d12a912402a84a8d02af51a0df9_2
    case_type: typical_negative
    step_type: generated
  - operation_id: DatabaseAuditLogService_ListAuditLogFilterRules
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "GET",
        "path": "/tidbs/{tidbId}/auditLogFilterRules",
        "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 DatabaseAuditLogService_ListAuditLogFilterRules
      with X-Auth-Method: digest"
    max_retries: 0
    delay_after: 0
    name: test_200_databaseauditlogservice_listauditlogfilterrules_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: b0325d12a912402a84a8d02af51a0df9
    order: 3
    case_id: b0325d12a912402a84a8d02af51a0df9_3
    case_type: typical_negative
    step_type: generated
  - operation_id: DatabaseAuditLogService_CreateAuditLogFilterRule
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "POST",
        "path": "/tidbs/{tidbId}/auditLogFilterRules",
        "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 DatabaseAuditLogService_CreateAuditLogFilterRule
      with X-Auth-Method: digest"
    max_retries: 0
    delay_after: 0
    name: test_403_databaseauditlogservice_createauditlogfilterrule_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: b0325d12a912402a84a8d02af51a0df9
    order: 4
    case_id: b0325d12a912402a84a8d02af51a0df9_4
    case_type: typical_negative
    step_type: generated
  - operation_id: DatabaseAuditLogService_UpdateAuditLogFilterRule
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "PATCH",
        "path": "/tidbs/{tidbId}/auditLogFilterRules/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 DatabaseAuditLogService_UpdateAuditLogFilterRule
      with X-Auth-Method: digest"
    max_retries: 0
    delay_after: 0
    name: test_403_databaseauditlogservice_updateauditlogfilterrule_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: b0325d12a912402a84a8d02af51a0df9
    order: 5
    case_id: b0325d12a912402a84a8d02af51a0df9_5
    case_type: typical_negative
    step_type: generated
  - operation_id: DatabaseAuditLogService_GetAuditLogFilterRule
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "GET",
        "path": "/tidbs/{tidbId}/auditLogFilterRules/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": 404,
        "cel": ""
      }
    save: null
    description:
      "Test 404 access for DatabaseAuditLogService_GetAuditLogFilterRule
      with X-Auth-Method: digest"
    max_retries: 0
    delay_after: 0
    name: test_200_databaseauditlogservice_getauditlogfilterrule_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: b0325d12a912402a84a8d02af51a0df9
    order: 6
    case_id: b0325d12a912402a84a8d02af51a0df9_6
    case_type: typical_negative
    step_type: generated
  - operation_id: DatabaseAuditLogService_DeleteAuditLogFilterRule
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "DELETE",
        "path": "/tidbs/{tidbId}/auditLogFilterRules/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 DatabaseAuditLogService_DeleteAuditLogFilterRule
      with X-Auth-Method: digest"
    max_retries: 0
    delay_after: 0
    name: test_403_databaseauditlogservice_deleteauditlogfilterrule_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: b0325d12a912402a84a8d02af51a0df9
    order: 7
    case_id: b0325d12a912402a84a8d02af51a0df9_7
    case_type: typical_negative
    step_type: generated
  - operation_id: LogRedactionPolicyService_GetLogRedactionPolicy
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "GET",
        "path": "/tidbs/{tidbId}/logRedactionPolicy",
        "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 LogRedactionPolicyService_GetLogRedactionPolicy
      with X-Auth-Method: digest"
    max_retries: 0
    delay_after: 0
    name: test_403_logredactionpolicyservice_getlogredactionpolicy_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: 8dcc603a60e548188199033faa0ebc66
    order: 8
    case_id: 8dcc603a60e548188199033faa0ebc66_1
    case_type: typical_negative
    step_type: generated
  - operation_id: LogRedactionPolicyService_UpdateLogRedactionPolicy
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "PATCH",
        "path": "/tidbs/{tidbId}/logRedactionPolicy",
        "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 LogRedactionPolicyService_UpdateLogRedactionPolicy
      with X-Auth-Method: digest"
    max_retries: 0
    delay_after: 0
    name: test_403_logredactionpolicyservice_updatelogredactionpolicy_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: 8dcc603a60e548188199033faa0ebc66
    order: 9
    case_id: 8dcc603a60e548188199033faa0ebc66_2
    case_type: typical_negative
    step_type: generated
  - operation_id: PrivateEndpointConnectionService_GetPrivateLinkService
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "GET",
        "path": "/tidbs/{tidbId}/privateLinkService",
        "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 PrivateEndpointConnectionService_GetPrivateLinkService
      with X-Auth-Method: digest"
    max_retries: 0
    delay_after: 0
    name: test_200_privateendpointconnectionservice_getprivatelinkservice_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: 7f549e4a888f470083cff40502de0611
    order: 10
    case_id: 7f549e4a888f470083cff40502de0611_1
    case_type: typical_negative
    step_type: generated
  - operation_id: PrivateEndpointConnectionService_ListPrivateEndpointConnections
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "GET",
        "path": "/tidbs/{tidbId}/privateEndpointConnections",
        "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 PrivateEndpointConnectionService_ListPrivateEndpointConnections
      with X-Auth-Method: digest"
    max_retries: 0
    delay_after: 0
    name: test_200_privateendpointconnectionservice_listprivateendpointconnections_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: 7f549e4a888f470083cff40502de0611
    order: 11
    case_id: 7f549e4a888f470083cff40502de0611_2
    case_type: typical_negative
    step_type: generated
  - operation_id: PrivateEndpointConnectionService_CreatePrivateEndpointConnection
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "POST",
        "path": "/tidbs/{tidbId}/privateEndpointConnections",
        "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 PrivateEndpointConnectionService_CreatePrivateEndpointConnection
      with X-Auth-Method: digest"
    max_retries: 0
    delay_after: 0
    name: test_403_privateendpointconnectionservice_createprivateendpointconnection_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: 7f549e4a888f470083cff40502de0611
    order: 12
    case_id: 7f549e4a888f470083cff40502de0611_3
    case_type: typical_negative
    step_type: generated
  - operation_id: PrivateEndpointConnectionService_GetPrivateEndpointConnection
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "GET",
        "path": "/tidbs/{tidbId}/privateEndpointConnections/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": 404,
        "cel": ""
      }
    save: null
    description:
      "Test 404 access for PrivateEndpointConnectionService_GetPrivateEndpointConnection
      with X-Auth-Method: digest"
    max_retries: 0
    delay_after: 0
    name: test_200_privateendpointconnectionservice_getprivateendpointconnection_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: 7f549e4a888f470083cff40502de0611
    order: 13
    case_id: 7f549e4a888f470083cff40502de0611_4
    case_type: typical_negative
    step_type: generated
  - operation_id: PrivateEndpointConnectionService_DeletePrivateEndpointConnection
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "DELETE",
        "path": "/tidbs/{tidbId}/privateEndpointConnections/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 PrivateEndpointConnectionService_DeletePrivateEndpointConnection
      with X-Auth-Method: digest"
    max_retries: 0
    delay_after: 0
    name: test_403_privateendpointconnectionservice_deleteprivateendpointconnection_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: 7f549e4a888f470083cff40502de0611
    order: 14
    case_id: 7f549e4a888f470083cff40502de0611_5
    case_type: typical_negative
    step_type: generated

  - operation_id: PublicConnectionSettingService_GetPublicConnectionSetting
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "GET",
        "path": "/tidbs/{tidbId}/publicConnectionSetting",
        "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 PublicConnectionSettingService_GetPublicConnectionSetting
      with X-Auth-Method: digest"
    max_retries: 0
    delay_after: 0
    name: test_200_publicconnectionsettingservice_getpublicconnectionsetting_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: 70caf20aa0a74844b98a6fa62d5be175
    order: 15
    case_id: 70caf20aa0a74844b98a6fa62d5be175_1
    case_type: typical_negative
    step_type: generated
  - operation_id: PublicConnectionSettingService_UpdatePublicConnectionSetting
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "PATCH",
        "path": "/tidbs/{tidbId}/publicConnectionSetting",
        "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 PublicConnectionSettingService_UpdatePublicConnectionSetting
      with X-Auth-Method: digest"
    max_retries: 0
    delay_after: 0
    name: test_403_publicconnectionsettingservice_updatepublicconnectionsetting_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: 70caf20aa0a74844b98a6fa62d5be175
    order: 16
    case_id: 70caf20aa0a74844b98a6fa62d5be175_2
    case_type: typical_negative
    step_type: generated
  - 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": ""
      }
    save: null
    description: "Test 200 access for TidbService_ListTidbs with X-Auth-Method:
      digest"
    max_retries: 0
    delay_after: 0
    name: test_200_tidbservice_listtidbs_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: c76f444aa0684b168f816703875a4b01
    order: 17
    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: 18
    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": 200,
        "cel": ""
      }
    save: null
    description: "Test 200 access for TidbService_GetTidb with X-Auth-Method:
      digest"
    max_retries: 0
    delay_after: 0
    name: test_200_tidbservice_gettidb_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: c76f444aa0684b168f816703875a4b01
    order: 19
    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: 20
    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: 21
    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: 5
    delay_after: 60
    name: test_403_tidbservice_resetrootpassword_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: c76f444aa0684b168f816703875a4b01
    order: 22
    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": 200,
        "cel": ""
      }
    save: null
    description: "Test 200 access for TidbService_GetCloudProviderInfo
      with X-Auth-Method: digest"
    max_retries: 0
    delay_after: 0
    name: test_200_tidbservice_getcloudproviderinfo_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: c76f444aa0684b168f816703875a4b01
    order: 23
    case_id: c76f444aa0684b168f816703875a4b01_7
    case_type: typical_negative
    step_type: generated
  # - operation_id: TidbService_EstimatePrice
  #   request_type: http
  #   request: |-
  #     {
  #       "auth": {
  #         "auth_type": "digest",
  #         "content": {
  #           "public_key": "placeholder",
  #           "private_key": "placeholder"
  #         }
  #       },
  #       "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": 200,
        "cel": ""
      }
    save: null
    description:
      "Test 200 unauthorized access for TidbService_GetBackupSetting with
      X-Auth-Method: digest"
    max_retries: 0
    delay_after: 0
    name: test_200_tidbservice_getbackupsetting_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: c76f444aa0684b168f816703875a4b01
    order: 24
    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: 25
    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": 200,
        "cel": ""
      }
    save: null
    description: "Test 200 access for TidbService_ListTidbBackups with
      X-Auth-Method: digest"
    max_retries: 0
    delay_after: 0
    name: test_200_tidbservice_listtidbbackups_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: c76f444aa0684b168f816703875a4b01
    order: 26
    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: 27
    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": {
          "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_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: 28
    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": 404,
        "cel": ""
      }
    save: null
    description:
      "Test 404 access for TidbService_RestoreStatus with X-Auth-Method:
      digest"
    max_retries: 0
    delay_after: 0
    name: test_404_tidbservice_restorestatus_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: c76f444aa0684b168f816703875a4b01
    order: 29
    case_id: c76f444aa0684b168f816703875a4b01_14
    case_type: typical_negative
    step_type: generated
  - operation_id: TidbService_DeleteTidb
    request_type: http
    request: |-
      {
        "method": "DELETE",
        "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": ""
      }
    save: null
    description: ''
    max_retries: 0
    delay_after: 0
    name: ''
    continue_on_unexpected: false
    stage: ''
    meta: '{}'
    generation_id: ''
    order: 30
# region api 403
  - operation_id: RegionService_ListRegions
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "GET",
        "path": "/regions",
        "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 RegionService_ListRegions with X-Auth-Method:
      digest'
    max_retries: 0
    delay_after: 0
    name: test_403_regionservice_listregions_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: '{}'
    generation_id: b4d92edc0bb44c93b5e06e3db2b7f125
    order: 31
    case_id: b4d92edc0bb44c93b5e06e3db2b7f125_1
    case_type: typical_negative
    step_type: generated
  - operation_id: RegionService_ListCloudProviders
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "GET",
        "path": "/regions:listCloudProviders?servicePlan=Premium",
        "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": ""
      }
    save: null
    description: 'Test 200 unauthorized access for RegionService_ListCloudProviders
      with X-Auth-Method: digest'
    max_retries: 0
    delay_after: 0
    name: test_200_regionservice_listcloudproviders_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: '{}'
    generation_id: b4d92edc0bb44c93b5e06e3db2b7f125
    order: 32
    case_id: b4d92edc0bb44c93b5e06e3db2b7f125_2
    case_type: typical_negative
    step_type: generated
  # backup service api
  - operation_id: BackupService_ListBackups
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "GET",
        "path": "/backups",
        "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 BackupService_ListBackups with X-Auth-Method:
      digest'
    max_retries: 0
    delay_after: 0
    name: test_403_backupservice_listbackups_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: '{}'
    generation_id: 34c714838795475bba87419507ab80f8
    order: 33
    case_id: 34c714838795475bba87419507ab80f8_1
    case_type: typical_negative
    step_type: generated
  - operation_id: BackupService_DeleteBackup
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "DELETE",
        "path": "/backups/123",
        "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 BackupService_DeleteBackup with X-Auth-Method:
      digest'
    max_retries: 0
    delay_after: 0
    name: test_403_backupservice_deletebackup_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: '{}'
    generation_id: 34c714838795475bba87419507ab80f8
    order: 34
    case_id: 34c714838795475bba87419507ab80f8_2
    case_type: typical_negative
    step_type: generated
  - operation_id: BackupService_ListDeletedTidbs
    request_type: http
    request: |-
      {
        "auth": {
          "auth_type": "digest",
          "auth_role": "target_apikey"
        },
        "method": "GET",
        "path": "/backups:listDeletedTidbs",
        "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 BackupService_ListDeletedTidbs with
      X-Auth-Method: digest'
    max_retries: 0
    delay_after: 0
    name: test_403_backupservice_listdeletedtidbs_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: '{}'
    generation_id: 34c714838795475bba87419507ab80f8
    order: 35
    case_id: 34c714838795475bba87419507ab80f8_3
    case_type: typical_negative
    step_type: generated
