scenario:
  id: 7f549e4a888f470083cff40502de0611
  context:
    auth:
      type: customized
    base_path: /v1beta2
    host: null
  description: need continue_on_unexpected and export unmatched case
  name: ng_private_endpoint_service.openapi.403
steps:
  - operation_id: TidbService_CreateTidb
    request_type: http
    request: |-
      {
        "method": "POST",
        "path": "/tidbs",
        "headers": {},
        "query_params": {},
        "body": {
          "displayName": "ng-rbac-private-link-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: 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": 403,
        "cel": ""
      }
    save: null
    description:
      "Test 403 unauthorized access for PrivateEndpointConnectionService_GetPrivateLinkService
      with X-Auth-Method: digest"
    max_retries: 0
    delay_after: 0
    name: test_403_privateendpointconnectionservice_getprivatelinkservice_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: 7f549e4a888f470083cff40502de0611
    order: 1
    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": 403,
        "cel": ""
      }
    save: null
    description:
      "Test 403 unauthorized access for PrivateEndpointConnectionService_ListPrivateEndpointConnections
      with X-Auth-Method: digest"
    max_retries: 0
    delay_after: 0
    name: test_403_privateendpointconnectionservice_listprivateendpointconnections_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: 7f549e4a888f470083cff40502de0611
    order: 2
    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: 3
    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": 403,
        "cel": ""
      }
    save: null
    description:
      "Test 403 unauthorized access for PrivateEndpointConnectionService_GetPrivateEndpointConnection
      with X-Auth-Method: digest"
    max_retries: 0
    delay_after: 0
    name: test_403_privateendpointconnectionservice_getprivateendpointconnection_digest_no_type
    continue_on_unexpected: false
    stage: execute
    meta: "{}"
    generation_id: 7f549e4a888f470083cff40502de0611
    order: 4
    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: 5
    case_id: 7f549e4a888f470083cff40502de0611_5
    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: 6
    case_id: c76f444aa0684b168f816703875a4b01_4
    case_type: typical_negative
    step_type: generated
