|
| 1 | +[ |
| 2 | + { |
| 3 | + "description": "Test cases for QueryCompatibleOperation operation", |
| 4 | + "metadata": { |
| 5 | + "apiVersion": "2020-07-14", |
| 6 | + "auth": [ |
| 7 | + "aws.auth#sigv4" |
| 8 | + ], |
| 9 | + "awsQueryCompatible": {}, |
| 10 | + "endpointPrefix": "querycompatiblejsonrpc10", |
| 11 | + "jsonVersion": "1.0", |
| 12 | + "protocol": "json", |
| 13 | + "protocols": [ |
| 14 | + "json" |
| 15 | + ], |
| 16 | + "serviceFullName": "QueryCompatibleJsonRpc10", |
| 17 | + "serviceId": "Query Compatible JSON RPC 10", |
| 18 | + "signatureVersion": "v4", |
| 19 | + "signingName": "QueryCompatibleJsonRpc10", |
| 20 | + "targetPrefix": "QueryCompatibleJsonRpc10", |
| 21 | + "uid": "query-compatible-json-rpc-10-2020-07-14" |
| 22 | + }, |
| 23 | + "shapes": { |
| 24 | + "NoCustomCodeError": { |
| 25 | + "type": "structure", |
| 26 | + "members": { |
| 27 | + "message": { |
| 28 | + "shape": "String" |
| 29 | + } |
| 30 | + }, |
| 31 | + "exception": true |
| 32 | + }, |
| 33 | + "String": { |
| 34 | + "type": "string" |
| 35 | + } |
| 36 | + }, |
| 37 | + "cases": [ |
| 38 | + { |
| 39 | + "id": "QueryCompatibleAwsJson10NoCustomCodeError", |
| 40 | + "given": { |
| 41 | + "name": "QueryCompatibleOperation", |
| 42 | + "http": { |
| 43 | + "method": "POST", |
| 44 | + "requestUri": "/" |
| 45 | + }, |
| 46 | + "idempotent": true, |
| 47 | + "errors": [ |
| 48 | + { |
| 49 | + "shape": "NoCustomCodeError" |
| 50 | + } |
| 51 | + ] |
| 52 | + }, |
| 53 | + "description": "Parses simple errors with no query error code", |
| 54 | + "errorCode": "NoCustomCodeError", |
| 55 | + "errorMessage": "Hi", |
| 56 | + "error": { |
| 57 | + "message": "Hi" |
| 58 | + }, |
| 59 | + "response": { |
| 60 | + "status_code": 400, |
| 61 | + "headers": { |
| 62 | + "Content-Type": "application/x-amz-json-1.0" |
| 63 | + }, |
| 64 | + "body": "{\n \"__type\": \"aws.protocoltests.json10#NoCustomCodeError\",\n \"message\": \"Hi\"\n}" |
| 65 | + } |
| 66 | + } |
| 67 | + ] |
| 68 | + }, |
| 69 | + { |
| 70 | + "description": "Test cases for QueryCompatibleOperation operation", |
| 71 | + "metadata": { |
| 72 | + "apiVersion": "2020-07-14", |
| 73 | + "auth": [ |
| 74 | + "aws.auth#sigv4" |
| 75 | + ], |
| 76 | + "awsQueryCompatible": {}, |
| 77 | + "endpointPrefix": "querycompatiblejsonrpc10", |
| 78 | + "jsonVersion": "1.0", |
| 79 | + "protocol": "json", |
| 80 | + "protocols": [ |
| 81 | + "json" |
| 82 | + ], |
| 83 | + "serviceFullName": "QueryCompatibleJsonRpc10", |
| 84 | + "serviceId": "Query Compatible JSON RPC 10", |
| 85 | + "signatureVersion": "v4", |
| 86 | + "signingName": "QueryCompatibleJsonRpc10", |
| 87 | + "targetPrefix": "QueryCompatibleJsonRpc10", |
| 88 | + "uid": "query-compatible-json-rpc-10-2020-07-14" |
| 89 | + }, |
| 90 | + "shapes": { |
| 91 | + "CustomCodeError": { |
| 92 | + "type": "structure", |
| 93 | + "members": { |
| 94 | + "message": { |
| 95 | + "shape": "String" |
| 96 | + } |
| 97 | + }, |
| 98 | + "error": { |
| 99 | + "code": "Customized", |
| 100 | + "httpStatusCode": 402, |
| 101 | + "senderFault": true |
| 102 | + }, |
| 103 | + "exception": true |
| 104 | + }, |
| 105 | + "String": { |
| 106 | + "type": "string" |
| 107 | + } |
| 108 | + }, |
| 109 | + "cases": [ |
| 110 | + { |
| 111 | + "id": "QueryCompatibleAwsJson10CustomCodeError", |
| 112 | + "given": { |
| 113 | + "name": "QueryCompatibleOperation", |
| 114 | + "http": { |
| 115 | + "method": "POST", |
| 116 | + "requestUri": "/" |
| 117 | + }, |
| 118 | + "idempotent": true, |
| 119 | + "errors": [ |
| 120 | + { |
| 121 | + "shape": "CustomCodeError" |
| 122 | + } |
| 123 | + ] |
| 124 | + }, |
| 125 | + "description": "Parses simple errors with query error code", |
| 126 | + "errorCode": "Customized", |
| 127 | + "errorMessage": "Hi", |
| 128 | + "error": { |
| 129 | + "message": "Hi" |
| 130 | + }, |
| 131 | + "response": { |
| 132 | + "status_code": 400, |
| 133 | + "headers": { |
| 134 | + "Content-Type": "application/x-amz-json-1.0", |
| 135 | + "x-amzn-query-error": "Customized;Sender" |
| 136 | + }, |
| 137 | + "body": "{\n \"__type\": \"aws.protocoltests.json10#CustomCodeError\",\n \"message\": \"Hi\"\n}" |
| 138 | + } |
| 139 | + } |
| 140 | + ] |
| 141 | + } |
| 142 | +] |
0 commit comments