github.com/thiagoyeds/go-cloud@v0.26.0/docstore/awsdynamodb/testdata/TestConformance/As/verify_As.yaml (about) 1 --- 2 version: 1 3 interactions: 4 - request: 5 body: '{"TableName":"docstore-test-2"}' 6 form: {} 7 headers: 8 Accept-Encoding: 9 - identity 10 Content-Length: 11 - "31" 12 Content-Type: 13 - application/x-amz-json-1.0 14 User-Agent: 15 - aws-sdk-go/1.19.16 (go1.12; linux; amd64) 16 X-Amz-Date: 17 - 20190502T125305Z 18 X-Amz-Target: 19 - DynamoDB_20120810.DescribeTable 20 url: https://dynamodb.us-east-2.amazonaws.com/ 21 method: POST 22 response: 23 body: '{"Table":{"AttributeDefinitions":[{"AttributeName":"Game","AttributeType":"S"},{"AttributeName":"Player","AttributeType":"S"},{"AttributeName":"Score","AttributeType":"N"},{"AttributeName":"Time","AttributeType":"S"}],"CreationDateTime":1.556147916461E9,"GlobalSecondaryIndexes":[{"IndexArn":"arn:aws:dynamodb:us-east-2:462380225722:table/docstore-test-2/index/global","IndexName":"global","IndexSizeBytes":212,"IndexStatus":"ACTIVE","ItemCount":2,"KeySchema":[{"AttributeName":"Player","KeyType":"HASH"},{"AttributeName":"Time","KeyType":"RANGE"}],"Projection":{"ProjectionType":"ALL"},"ProvisionedThroughput":{"NumberOfDecreasesToday":0,"ReadCapacityUnits":5,"WriteCapacityUnits":5}}],"ItemCount":2,"KeySchema":[{"AttributeName":"Game","KeyType":"HASH"},{"AttributeName":"Player","KeyType":"RANGE"}],"LocalSecondaryIndexes":[{"IndexArn":"arn:aws:dynamodb:us-east-2:462380225722:table/docstore-test-2/index/local","IndexName":"local","IndexSizeBytes":212,"ItemCount":2,"KeySchema":[{"AttributeName":"Game","KeyType":"HASH"},{"AttributeName":"Score","KeyType":"RANGE"}],"Projection":{"ProjectionType":"ALL"}}],"ProvisionedThroughput":{"NumberOfDecreasesToday":0,"ReadCapacityUnits":5,"WriteCapacityUnits":5},"TableArn":"arn:aws:dynamodb:us-east-2:462380225722:table/docstore-test-2","TableId":"5c4c6014-7e6a-4db7-93de-a174552cf78d","TableName":"docstore-test-2","TableSizeBytes":266,"TableStatus":"ACTIVE"}}' 24 headers: 25 Connection: 26 - keep-alive 27 Content-Length: 28 - "1407" 29 Content-Type: 30 - application/x-amz-json-1.0 31 Date: 32 - Thu, 02 May 2019 12:53:05 GMT 33 Server: 34 - Server 35 X-Amz-Crc32: 36 - "325584166" 37 X-Amzn-Requestid: 38 - GJ97UPS5OS6KIT0DJRNFI0UH73VV4KQNSO5AEMVJF66Q9ASUAAJG 39 status: 200 OK 40 code: 200 41 duration: "" 42 - request: 43 body: '{"ClientRequestToken":"7d7ad684-7b3d-461a-b6d5-4be758ee986a","TransactItems":[{"Put":{"Item":{"DocstoreRevision":{"S":"2fd2d1fd-c1ce-46d7-b335-258215f94f2f"},"Game":{"S":"Days 44 Gone"},"Player":{"S":"steph"},"Score":{"N":"24"},"Time":{"S":"2019-04-25T00:00:00Z"}},"TableName":"docstore-test-2"}},{"Put":{"Item":{"DocstoreRevision":{"S":"eb43aab0-5a21-4f65-b604-2ac5e32f3606"},"Game":{"S":"Days 45 Gone"},"Player":{"S":"mia"},"Score":{"N":"99"},"Time":{"S":"2019-04-26T00:00:00Z"}},"TableName":"docstore-test-2"}}]}' 46 form: {} 47 headers: 48 Accept-Encoding: 49 - identity 50 Content-Length: 51 - "509" 52 Content-Type: 53 - application/x-amz-json-1.0 54 User-Agent: 55 - aws-sdk-go/1.19.16 (go1.12; linux; amd64) 56 X-Amz-Date: 57 - 20190502T125305Z 58 X-Amz-Target: 59 - DynamoDB_20120810.TransactWriteItems 60 url: https://dynamodb.us-east-2.amazonaws.com/ 61 method: POST 62 response: 63 body: '{}' 64 headers: 65 Connection: 66 - keep-alive 67 Content-Length: 68 - "2" 69 Content-Type: 70 - application/x-amz-json-1.0 71 Date: 72 - Thu, 02 May 2019 12:53:05 GMT 73 Server: 74 - Server 75 X-Amz-Crc32: 76 - "2745614147" 77 X-Amzn-Requestid: 78 - K4JNLM37EL1D58TPSLOH7NL99FVV4KQNSO5AEMVJF66Q9ASUAAJG 79 status: 200 OK 80 code: 200 81 duration: "" 82 - request: 83 body: '{"ConsistentRead":true,"ExpressionAttributeNames":{"#0":"Game"},"ExpressionAttributeValues":{":0":{"S":"Days 84 Gone"}},"KeyConditionExpression":"#0 = :0","TableName":"docstore-test-2"}' 85 form: {} 86 headers: 87 Accept-Encoding: 88 - identity 89 Content-Length: 90 - "182" 91 Content-Type: 92 - application/x-amz-json-1.0 93 User-Agent: 94 - aws-sdk-go/1.19.16 (go1.12; linux; amd64) 95 X-Amz-Date: 96 - 20190502T125305Z 97 X-Amz-Target: 98 - DynamoDB_20120810.Query 99 url: https://dynamodb.us-east-2.amazonaws.com/ 100 method: POST 101 response: 102 body: '{"Count":2,"Items":[{"Time":{"S":"2019-04-26T00:00:00Z"},"Player":{"S":"mia"},"Score":{"N":"99"},"Game":{"S":"Days 103 Gone"},"DocstoreRevision":{"S":"eb43aab0-5a21-4f65-b604-2ac5e32f3606"}},{"Time":{"S":"2019-04-25T00:00:00Z"},"Player":{"S":"steph"},"Score":{"N":"24"},"Game":{"S":"Days 104 Gone"},"DocstoreRevision":{"S":"2fd2d1fd-c1ce-46d7-b335-258215f94f2f"}}],"ScannedCount":2}' 105 headers: 106 Connection: 107 - keep-alive 108 Content-Length: 109 - "374" 110 Content-Type: 111 - application/x-amz-json-1.0 112 Date: 113 - Thu, 02 May 2019 12:53:05 GMT 114 Server: 115 - Server 116 X-Amz-Crc32: 117 - "3144266929" 118 X-Amzn-Requestid: 119 - F1EB7Q9TIHJKFD16JBPFL8M5I3VV4KQNSO5AEMVJF66Q9ASUAAJG 120 status: 200 OK 121 code: 200 122 duration: "" 123 - request: 124 body: '{"ConsistentRead":true,"ExpressionAttributeNames":{"#0":"Score"},"ExpressionAttributeValues":{":0":{"N":"50"}},"FilterExpression":"#0 125 > :0","TableName":"docstore-test-2"}' 126 form: {} 127 headers: 128 Accept-Encoding: 129 - identity 130 Content-Length: 131 - "170" 132 Content-Type: 133 - application/x-amz-json-1.0 134 User-Agent: 135 - aws-sdk-go/1.19.16 (go1.12; linux; amd64) 136 X-Amz-Date: 137 - 20190502T125306Z 138 X-Amz-Target: 139 - DynamoDB_20120810.Scan 140 url: https://dynamodb.us-east-2.amazonaws.com/ 141 method: POST 142 response: 143 body: '{"Count":1,"Items":[{"Time":{"S":"2019-04-26T00:00:00Z"},"Player":{"S":"mia"},"Score":{"N":"99"},"Game":{"S":"Days 144 Gone"},"DocstoreRevision":{"S":"eb43aab0-5a21-4f65-b604-2ac5e32f3606"}}],"ScannedCount":2}' 145 headers: 146 Connection: 147 - keep-alive 148 Content-Length: 149 - "205" 150 Content-Type: 151 - application/x-amz-json-1.0 152 Date: 153 - Thu, 02 May 2019 12:53:05 GMT 154 Server: 155 - Server 156 X-Amz-Crc32: 157 - "2965315507" 158 X-Amzn-Requestid: 159 - U96606SLHKOQ3FCJFN03BI8OGRVV4KQNSO5AEMVJF66Q9ASUAAJG 160 status: 200 OK 161 code: 200 162 duration: "" 163 - request: 164 body: '{"TableName":"docstore-test-2"}' 165 form: {} 166 headers: 167 Accept-Encoding: 168 - identity 169 Content-Length: 170 - "31" 171 Content-Type: 172 - application/x-amz-json-1.0 173 User-Agent: 174 - aws-sdk-go/1.19.16 (go1.12; linux; amd64) 175 X-Amz-Date: 176 - 20190502T125306Z 177 X-Amz-Target: 178 - DynamoDB_20120810.Scan 179 url: https://dynamodb.us-east-2.amazonaws.com/ 180 method: POST 181 response: 182 body: '{"Count":2,"Items":[{"Time":{"S":"2019-04-26T00:00:00Z"},"Player":{"S":"mia"},"Score":{"N":"99"},"Game":{"S":"Days 183 Gone"},"DocstoreRevision":{"S":"eb43aab0-5a21-4f65-b604-2ac5e32f3606"}},{"Time":{"S":"2019-04-25T00:00:00Z"},"Player":{"S":"steph"},"Score":{"N":"24"},"Game":{"S":"Days 184 Gone"},"DocstoreRevision":{"S":"2fd2d1fd-c1ce-46d7-b335-258215f94f2f"}}],"ScannedCount":2}' 185 headers: 186 Connection: 187 - keep-alive 188 Content-Length: 189 - "374" 190 Content-Type: 191 - application/x-amz-json-1.0 192 Date: 193 - Thu, 02 May 2019 12:53:05 GMT 194 Server: 195 - Server 196 X-Amz-Crc32: 197 - "3144266929" 198 X-Amzn-Requestid: 199 - HOOQ68CQH3FTI7RDS77VE03FHFVV4KQNSO5AEMVJF66Q9ASUAAJG 200 status: 200 OK 201 code: 200 202 duration: "" 203 - request: 204 body: '{"ClientRequestToken":"b36a96df-94a3-42ae-ad52-e65302cd8847","TransactItems":[{"Delete":{"ConditionExpression":"#0 205 = :0","ExpressionAttributeNames":{"#0":"DocstoreRevision"},"ExpressionAttributeValues":{":0":{"S":"eb43aab0-5a21-4f65-b604-2ac5e32f3606"}},"Key":{"Game":{"S":"Days 206 Gone"},"Player":{"S":"mia"}},"TableName":"docstore-test-2"}},{"Delete":{"ConditionExpression":"#0 207 = :0","ExpressionAttributeNames":{"#0":"DocstoreRevision"},"ExpressionAttributeValues":{":0":{"S":"2fd2d1fd-c1ce-46d7-b335-258215f94f2f"}},"Key":{"Game":{"S":"Days 208 Gone"},"Player":{"S":"steph"}},"TableName":"docstore-test-2"}}]}' 209 form: {} 210 headers: 211 Accept-Encoding: 212 - identity 213 Content-Length: 214 - "605" 215 Content-Type: 216 - application/x-amz-json-1.0 217 User-Agent: 218 - aws-sdk-go/1.19.16 (go1.12; linux; amd64) 219 X-Amz-Date: 220 - 20190502T125306Z 221 X-Amz-Target: 222 - DynamoDB_20120810.TransactWriteItems 223 url: https://dynamodb.us-east-2.amazonaws.com/ 224 method: POST 225 response: 226 body: '{}' 227 headers: 228 Connection: 229 - keep-alive 230 Content-Length: 231 - "2" 232 Content-Type: 233 - application/x-amz-json-1.0 234 Date: 235 - Thu, 02 May 2019 12:53:05 GMT 236 Server: 237 - Server 238 X-Amz-Crc32: 239 - "2745614147" 240 X-Amzn-Requestid: 241 - BBQ9E7M0KLRHJS47UNLLA4FIPNVV4KQNSO5AEMVJF66Q9ASUAAJG 242 status: 200 OK 243 code: 200 244 duration: ""