dynamodb_record 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/dynamodb_record/associations.rb +33 -33
- data/lib/dynamodb_record/finders.rb +0 -1
- data/lib/dynamodb_record/query.rb +1 -0
- data/lib/dynamodb_record/version.rb +1 -1
- data/lib/dynamodb_record.rb +1 -0
- data/spec/dynamodb_record/config_spec.rb +28 -0
- data/spec/dynamodb_record/document_spec.rb +4 -4
- data/spec/dynamodb_record/finders_spec.rb +7 -7
- data/spec/dynamodb_record/persistence_spec.rb +12 -12
- data/spec/dynamodb_record/query_spec.rb +2 -2
- data/spec/fixtures/vcr_cassettes/DynamodbRecord_Associations/_belongs_to/get_object.yml +18 -18
- data/spec/fixtures/vcr_cassettes/DynamodbRecord_Associations/_has_many/add_list.yml +108 -57
- data/spec/fixtures/vcr_cassettes/DynamodbRecord_Associations/_has_many/create_item.yml +28 -27
- data/spec/fixtures/vcr_cassettes/DynamodbRecord_Associations/_has_many/get_collection.yml +19 -18
- data/spec/fixtures/vcr_cassettes/DynamodbRecord_Associations/has_and_belongs_to_many.yml +31 -31
- data/spec/fixtures/vcr_cassettes/DynamodbRecord_Associations/has_and_belongs_to_many_create.yml +91 -39
- data/spec/fixtures/vcr_cassettes/DynamodbRecord_Associations/has_many_through.yml +30 -27
- data/spec/fixtures/vcr_cassettes/DynamodbRecord_Document/initializes_from_database.yml +11 -11
- data/spec/fixtures/vcr_cassettes/DynamodbRecord_Fields/_find/finds_record.yml +12 -12
- data/spec/fixtures/vcr_cassettes/DynamodbRecord_Fields/_find/when_record_doesn_t_exists/returns_empty_object.yml +9 -9
- data/spec/fixtures/vcr_cassettes/DynamodbRecord_Persistence/_destroy/when_no_range_key/destroys_record.yml +30 -30
- data/spec/fixtures/vcr_cassettes/DynamodbRecord_Persistence/_destroy/when_there_is_range_key/destroys_record.yml +9 -111
- data/spec/fixtures/vcr_cassettes/DynamodbRecord_Persistence/does_not_overwrite_existing_record.yml +20 -20
- data/spec/fixtures/vcr_cassettes/DynamodbRecord_Persistence/saves_record.yml +9 -9
- data/spec/fixtures/vcr_cassettes/DynamodbRecord_Persistence/updates_record.yml +31 -31
- data/spec/fixtures/vcr_cassettes/DynamodbRecord_Query/_all/find_all_records.yml +12 -12
- data/spec/fixtures/vcr_cassettes/DynamodbRecord_Query/querying/_where/returns_records_by_limit.yml +12 -12
- data/spec/fixtures/vcr_cassettes/DynamodbRecord_Query/querying/_where/returns_records_where_user_balance_0.yml +12 -12
- data/spec/spec_helper.rb +7 -6
- metadata +3 -2
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: http://localhost:8000/
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"TableName":"users","Key":{"id":{"S":"hguzman10@gmail.com"}}}'
|
8
|
+
string: '{"TableName":"fleteo-v2-users","Key":{"id":{"S":"hguzman10@gmail.com"}}}'
|
9
9
|
headers:
|
10
10
|
Accept-Encoding:
|
11
11
|
- ''
|
@@ -19,15 +19,15 @@ http_interactions:
|
|
19
19
|
Host:
|
20
20
|
- localhost:8000
|
21
21
|
X-Amz-Date:
|
22
|
-
-
|
22
|
+
- 20240514T144620Z
|
23
23
|
X-Amz-Content-Sha256:
|
24
|
-
-
|
24
|
+
- ab20f394f9f17ab85359c8cef098ff2e93991ca4f4f9402376eaa33ea97d5545
|
25
25
|
Authorization:
|
26
|
-
- AWS4-HMAC-SHA256 Credential=key/
|
26
|
+
- AWS4-HMAC-SHA256 Credential=key/20240514/us-east-1/dynamodb/aws4_request,
|
27
27
|
SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date;x-amz-target,
|
28
|
-
Signature=
|
28
|
+
Signature=7f40d5a6191a9532b51042f9e25b6d95ab08b5a9525610a8d4261cfcdaa3cf25
|
29
29
|
Content-Length:
|
30
|
-
- '
|
30
|
+
- '72'
|
31
31
|
Accept:
|
32
32
|
- "*/*"
|
33
33
|
response:
|
@@ -36,9 +36,9 @@ http_interactions:
|
|
36
36
|
message: OK
|
37
37
|
headers:
|
38
38
|
Date:
|
39
|
-
-
|
39
|
+
- Tue, 14 May 2024 14:46:20 GMT
|
40
40
|
X-Amzn-Requestid:
|
41
|
-
-
|
41
|
+
- 84007b4f-a47b-45c9-a341-a84c275c0031
|
42
42
|
Content-Type:
|
43
43
|
- application/x-amz-json-1.0
|
44
44
|
X-Amz-Crc32:
|
@@ -50,13 +50,13 @@ http_interactions:
|
|
50
50
|
body:
|
51
51
|
encoding: UTF-8
|
52
52
|
string: '{"Item":{"created_at":{"S":"2024-05-07T14:10:09-05:00"},"id":{"S":"hguzman10@gmail.com"},"balance":{"N":"0"},"updated_at":{"S":"2024-05-07T14:10:09-05:00"}}}'
|
53
|
-
recorded_at:
|
53
|
+
recorded_at: Tue, 14 May 2024 14:46:20 GMT
|
54
54
|
- request:
|
55
55
|
method: post
|
56
56
|
uri: http://localhost:8000/
|
57
57
|
body:
|
58
58
|
encoding: UTF-8
|
59
|
-
string: '{"TableName":"cars","Key":{"id":{"S":"UVX455"}}}'
|
59
|
+
string: '{"TableName":"fleteo-v2-cars","Key":{"id":{"S":"UVX455"}}}'
|
60
60
|
headers:
|
61
61
|
Accept-Encoding:
|
62
62
|
- ''
|
@@ -70,15 +70,15 @@ http_interactions:
|
|
70
70
|
Host:
|
71
71
|
- localhost:8000
|
72
72
|
X-Amz-Date:
|
73
|
-
-
|
73
|
+
- 20240514T144620Z
|
74
74
|
X-Amz-Content-Sha256:
|
75
|
-
-
|
75
|
+
- 3f40080fdb7ac1732232c14b86645a9ffbd3f94cf8ecda6b3c584d105288bb8d
|
76
76
|
Authorization:
|
77
|
-
- AWS4-HMAC-SHA256 Credential=key/
|
77
|
+
- AWS4-HMAC-SHA256 Credential=key/20240514/us-east-1/dynamodb/aws4_request,
|
78
78
|
SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date;x-amz-target,
|
79
|
-
Signature=
|
79
|
+
Signature=a7aa82df282063303cea5d1f31b73ba19956d24c980a68b21e8e421d3d26e5b9
|
80
80
|
Content-Length:
|
81
|
-
- '
|
81
|
+
- '58'
|
82
82
|
Accept:
|
83
83
|
- "*/*"
|
84
84
|
response:
|
@@ -87,9 +87,9 @@ http_interactions:
|
|
87
87
|
message: OK
|
88
88
|
headers:
|
89
89
|
Date:
|
90
|
-
-
|
90
|
+
- Tue, 14 May 2024 14:46:20 GMT
|
91
91
|
X-Amzn-Requestid:
|
92
|
-
-
|
92
|
+
- ed4c55df-a4e8-4ba8-8a30-45ecd389362e
|
93
93
|
Content-Type:
|
94
94
|
- application/x-amz-json-1.0
|
95
95
|
X-Amz-Crc32:
|
@@ -101,13 +101,13 @@ http_interactions:
|
|
101
101
|
body:
|
102
102
|
encoding: UTF-8
|
103
103
|
string: '{"Item":{"marca":{"S":"Chvrolet"},"created_at":{"S":"2024-05-07T14:09:25-05:00"},"id":{"S":"UVX455"},"updated_at":{"S":"2024-05-07T14:09:25-05:00"}}}'
|
104
|
-
recorded_at:
|
104
|
+
recorded_at: Tue, 14 May 2024 14:46:20 GMT
|
105
105
|
- request:
|
106
106
|
method: post
|
107
107
|
uri: http://localhost:8000/
|
108
108
|
body:
|
109
109
|
encoding: UTF-8
|
110
|
-
string: '{"TableName":"cars-users","IndexName":"cars-users-index","KeyConditionExpression":"#user_id
|
110
|
+
string: '{"TableName":"fleteo-v2-cars-users","IndexName":"fleteo-v2-cars-users-index","KeyConditionExpression":"#user_id
|
111
111
|
= :user_id","ExpressionAttributeNames":{"#user_id":"user_id"},"ExpressionAttributeValues":{":user_id":{"S":"hguzman10@gmail.com"}}}'
|
112
112
|
headers:
|
113
113
|
Accept-Encoding:
|
@@ -122,15 +122,15 @@ http_interactions:
|
|
122
122
|
Host:
|
123
123
|
- localhost:8000
|
124
124
|
X-Amz-Date:
|
125
|
-
-
|
125
|
+
- 20240514T144620Z
|
126
126
|
X-Amz-Content-Sha256:
|
127
|
-
-
|
127
|
+
- 0175d24f36fe98a611d5abdc67ddc83bb5d7192f7b6330d0014ace2323300f43
|
128
128
|
Authorization:
|
129
|
-
- AWS4-HMAC-SHA256 Credential=key/
|
129
|
+
- AWS4-HMAC-SHA256 Credential=key/20240514/us-east-1/dynamodb/aws4_request,
|
130
130
|
SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date;x-amz-target,
|
131
|
-
Signature=
|
131
|
+
Signature=37002d3bf5b8fefae8dd5333571d23b019cb94b2f4e2dc447a0724e126016367
|
132
132
|
Content-Length:
|
133
|
-
- '
|
133
|
+
- '243'
|
134
134
|
Accept:
|
135
135
|
- "*/*"
|
136
136
|
response:
|
@@ -139,27 +139,78 @@ http_interactions:
|
|
139
139
|
message: OK
|
140
140
|
headers:
|
141
141
|
Date:
|
142
|
-
-
|
142
|
+
- Tue, 14 May 2024 14:46:20 GMT
|
143
143
|
X-Amzn-Requestid:
|
144
|
-
-
|
144
|
+
- 643c1716-5124-400a-8cc9-a841255b8b37
|
145
145
|
Content-Type:
|
146
146
|
- application/x-amz-json-1.0
|
147
147
|
X-Amz-Crc32:
|
148
|
-
- '
|
148
|
+
- '1919856377'
|
149
149
|
Content-Length:
|
150
|
-
- '
|
150
|
+
- '102'
|
151
151
|
Server:
|
152
152
|
- Jetty(11.0.17)
|
153
153
|
body:
|
154
154
|
encoding: UTF-8
|
155
|
-
string: '{"Items":[],"Count":
|
156
|
-
recorded_at:
|
155
|
+
string: '{"Items":[{"user_id":{"S":"hguzman10@gmail.com"},"car_id":{"S":"UVX455"}}],"Count":1,"ScannedCount":1}'
|
156
|
+
recorded_at: Tue, 14 May 2024 14:46:20 GMT
|
157
|
+
- request:
|
158
|
+
method: post
|
159
|
+
uri: http://localhost:8000/
|
160
|
+
body:
|
161
|
+
encoding: UTF-8
|
162
|
+
string: '{"TableName":"fleteo-v2-cars","Key":{"id":{"S":"UVX455"}}}'
|
163
|
+
headers:
|
164
|
+
Accept-Encoding:
|
165
|
+
- ''
|
166
|
+
Content-Type:
|
167
|
+
- application/x-amz-json-1.0
|
168
|
+
X-Amz-Target:
|
169
|
+
- DynamoDB_20120810.GetItem
|
170
|
+
User-Agent:
|
171
|
+
- aws-sdk-ruby3/3.191.3 ua/2.0 api/dynamodb#1.105.0 os/macos#20 md/x86_64 lang/ruby#3.2.3
|
172
|
+
md/3.2.3 cfg/retry-mode#legacy
|
173
|
+
Host:
|
174
|
+
- localhost:8000
|
175
|
+
X-Amz-Date:
|
176
|
+
- 20240514T144620Z
|
177
|
+
X-Amz-Content-Sha256:
|
178
|
+
- 3f40080fdb7ac1732232c14b86645a9ffbd3f94cf8ecda6b3c584d105288bb8d
|
179
|
+
Authorization:
|
180
|
+
- AWS4-HMAC-SHA256 Credential=key/20240514/us-east-1/dynamodb/aws4_request,
|
181
|
+
SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date;x-amz-target,
|
182
|
+
Signature=a7aa82df282063303cea5d1f31b73ba19956d24c980a68b21e8e421d3d26e5b9
|
183
|
+
Content-Length:
|
184
|
+
- '58'
|
185
|
+
Accept:
|
186
|
+
- "*/*"
|
187
|
+
response:
|
188
|
+
status:
|
189
|
+
code: 200
|
190
|
+
message: OK
|
191
|
+
headers:
|
192
|
+
Date:
|
193
|
+
- Tue, 14 May 2024 14:46:20 GMT
|
194
|
+
X-Amzn-Requestid:
|
195
|
+
- 352f2964-36e4-4bfb-ad77-0b6f26ded9a9
|
196
|
+
Content-Type:
|
197
|
+
- application/x-amz-json-1.0
|
198
|
+
X-Amz-Crc32:
|
199
|
+
- '590923779'
|
200
|
+
Content-Length:
|
201
|
+
- '149'
|
202
|
+
Server:
|
203
|
+
- Jetty(11.0.17)
|
204
|
+
body:
|
205
|
+
encoding: UTF-8
|
206
|
+
string: '{"Item":{"marca":{"S":"Chvrolet"},"created_at":{"S":"2024-05-07T14:09:25-05:00"},"id":{"S":"UVX455"},"updated_at":{"S":"2024-05-07T14:09:25-05:00"}}}'
|
207
|
+
recorded_at: Tue, 14 May 2024 14:46:20 GMT
|
157
208
|
- request:
|
158
209
|
method: post
|
159
210
|
uri: http://localhost:8000/
|
160
211
|
body:
|
161
212
|
encoding: UTF-8
|
162
|
-
string: '{"TableName":"cars-users","Item":{"user_id":{"S":"hguzman10@gmail.com"},"car_id":{"S":"UVX455"}}}'
|
213
|
+
string: '{"TableName":"fleteo-v2-cars-users","Item":{"user_id":{"S":"hguzman10@gmail.com"},"car_id":{"S":"UVX455"}}}'
|
163
214
|
headers:
|
164
215
|
Accept-Encoding:
|
165
216
|
- ''
|
@@ -173,15 +224,15 @@ http_interactions:
|
|
173
224
|
Host:
|
174
225
|
- localhost:8000
|
175
226
|
X-Amz-Date:
|
176
|
-
-
|
227
|
+
- 20240514T144620Z
|
177
228
|
X-Amz-Content-Sha256:
|
178
|
-
-
|
229
|
+
- 5520b7b4378bf3798b15afc5abcf3f33002f11b3a1880135a946e306c3c73862
|
179
230
|
Authorization:
|
180
|
-
- AWS4-HMAC-SHA256 Credential=key/
|
231
|
+
- AWS4-HMAC-SHA256 Credential=key/20240514/us-east-1/dynamodb/aws4_request,
|
181
232
|
SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date;x-amz-target,
|
182
|
-
Signature=
|
233
|
+
Signature=a4887dad7be1e8f960cd0b14a963349dbc3ced008165315a4d16492595a3cafd
|
183
234
|
Content-Length:
|
184
|
-
- '
|
235
|
+
- '107'
|
185
236
|
Accept:
|
186
237
|
- "*/*"
|
187
238
|
response:
|
@@ -190,9 +241,9 @@ http_interactions:
|
|
190
241
|
message: OK
|
191
242
|
headers:
|
192
243
|
Date:
|
193
|
-
-
|
244
|
+
- Tue, 14 May 2024 14:46:20 GMT
|
194
245
|
X-Amzn-Requestid:
|
195
|
-
-
|
246
|
+
- '0985eed6-1e8b-477f-b222-2f308ce4d6a4'
|
196
247
|
Content-Type:
|
197
248
|
- application/x-amz-json-1.0
|
198
249
|
X-Amz-Crc32:
|
@@ -204,13 +255,13 @@ http_interactions:
|
|
204
255
|
body:
|
205
256
|
encoding: UTF-8
|
206
257
|
string: "{}"
|
207
|
-
recorded_at:
|
258
|
+
recorded_at: Tue, 14 May 2024 14:46:20 GMT
|
208
259
|
- request:
|
209
260
|
method: post
|
210
261
|
uri: http://localhost:8000/
|
211
262
|
body:
|
212
263
|
encoding: UTF-8
|
213
|
-
string: '{"TableName":"cars-users","IndexName":"cars-users-index","KeyConditionExpression":"#user_id
|
264
|
+
string: '{"TableName":"fleteo-v2-cars-users","IndexName":"fleteo-v2-cars-users-index","KeyConditionExpression":"#user_id
|
214
265
|
= :user_id","ExpressionAttributeNames":{"#user_id":"user_id"},"ExpressionAttributeValues":{":user_id":{"S":"hguzman10@gmail.com"}}}'
|
215
266
|
headers:
|
216
267
|
Accept-Encoding:
|
@@ -225,15 +276,15 @@ http_interactions:
|
|
225
276
|
Host:
|
226
277
|
- localhost:8000
|
227
278
|
X-Amz-Date:
|
228
|
-
-
|
279
|
+
- 20240514T144620Z
|
229
280
|
X-Amz-Content-Sha256:
|
230
|
-
-
|
281
|
+
- 0175d24f36fe98a611d5abdc67ddc83bb5d7192f7b6330d0014ace2323300f43
|
231
282
|
Authorization:
|
232
|
-
- AWS4-HMAC-SHA256 Credential=key/
|
283
|
+
- AWS4-HMAC-SHA256 Credential=key/20240514/us-east-1/dynamodb/aws4_request,
|
233
284
|
SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date;x-amz-target,
|
234
|
-
Signature=
|
285
|
+
Signature=37002d3bf5b8fefae8dd5333571d23b019cb94b2f4e2dc447a0724e126016367
|
235
286
|
Content-Length:
|
236
|
-
- '
|
287
|
+
- '243'
|
237
288
|
Accept:
|
238
289
|
- "*/*"
|
239
290
|
response:
|
@@ -242,9 +293,9 @@ http_interactions:
|
|
242
293
|
message: OK
|
243
294
|
headers:
|
244
295
|
Date:
|
245
|
-
-
|
296
|
+
- Tue, 14 May 2024 14:46:20 GMT
|
246
297
|
X-Amzn-Requestid:
|
247
|
-
-
|
298
|
+
- 84268b0a-f0a9-41d6-bb0c-8fad9b03f224
|
248
299
|
Content-Type:
|
249
300
|
- application/x-amz-json-1.0
|
250
301
|
X-Amz-Crc32:
|
@@ -256,13 +307,13 @@ http_interactions:
|
|
256
307
|
body:
|
257
308
|
encoding: UTF-8
|
258
309
|
string: '{"Items":[{"user_id":{"S":"hguzman10@gmail.com"},"car_id":{"S":"UVX455"}}],"Count":1,"ScannedCount":1}'
|
259
|
-
recorded_at:
|
310
|
+
recorded_at: Tue, 14 May 2024 14:46:20 GMT
|
260
311
|
- request:
|
261
312
|
method: post
|
262
313
|
uri: http://localhost:8000/
|
263
314
|
body:
|
264
315
|
encoding: UTF-8
|
265
|
-
string: '{"TableName":"cars","Key":{"id":{"S":"UVX455"}}}'
|
316
|
+
string: '{"TableName":"fleteo-v2-cars","Key":{"id":{"S":"UVX455"}}}'
|
266
317
|
headers:
|
267
318
|
Accept-Encoding:
|
268
319
|
- ''
|
@@ -276,15 +327,15 @@ http_interactions:
|
|
276
327
|
Host:
|
277
328
|
- localhost:8000
|
278
329
|
X-Amz-Date:
|
279
|
-
-
|
330
|
+
- 20240514T144620Z
|
280
331
|
X-Amz-Content-Sha256:
|
281
|
-
-
|
332
|
+
- 3f40080fdb7ac1732232c14b86645a9ffbd3f94cf8ecda6b3c584d105288bb8d
|
282
333
|
Authorization:
|
283
|
-
- AWS4-HMAC-SHA256 Credential=key/
|
334
|
+
- AWS4-HMAC-SHA256 Credential=key/20240514/us-east-1/dynamodb/aws4_request,
|
284
335
|
SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date;x-amz-target,
|
285
|
-
Signature=
|
336
|
+
Signature=a7aa82df282063303cea5d1f31b73ba19956d24c980a68b21e8e421d3d26e5b9
|
286
337
|
Content-Length:
|
287
|
-
- '
|
338
|
+
- '58'
|
288
339
|
Accept:
|
289
340
|
- "*/*"
|
290
341
|
response:
|
@@ -293,9 +344,9 @@ http_interactions:
|
|
293
344
|
message: OK
|
294
345
|
headers:
|
295
346
|
Date:
|
296
|
-
-
|
347
|
+
- Tue, 14 May 2024 14:46:20 GMT
|
297
348
|
X-Amzn-Requestid:
|
298
|
-
-
|
349
|
+
- 68b8bc16-fa54-4518-9038-0a755be7960d
|
299
350
|
Content-Type:
|
300
351
|
- application/x-amz-json-1.0
|
301
352
|
X-Amz-Crc32:
|
@@ -307,5 +358,5 @@ http_interactions:
|
|
307
358
|
body:
|
308
359
|
encoding: UTF-8
|
309
360
|
string: '{"Item":{"marca":{"S":"Chvrolet"},"created_at":{"S":"2024-05-07T14:09:25-05:00"},"id":{"S":"UVX455"},"updated_at":{"S":"2024-05-07T14:09:25-05:00"}}}'
|
310
|
-
recorded_at:
|
361
|
+
recorded_at: Tue, 14 May 2024 14:46:20 GMT
|
311
362
|
recorded_with: VCR 6.2.0
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: http://localhost:8000/
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"TableName":"cars","Key":{"id":{"S":"UVX455"}}}'
|
8
|
+
string: '{"TableName":"fleteo-v2-cars","Key":{"id":{"S":"UVX455"}}}'
|
9
9
|
headers:
|
10
10
|
Accept-Encoding:
|
11
11
|
- ''
|
@@ -19,15 +19,15 @@ http_interactions:
|
|
19
19
|
Host:
|
20
20
|
- localhost:8000
|
21
21
|
X-Amz-Date:
|
22
|
-
-
|
22
|
+
- 20240514T151144Z
|
23
23
|
X-Amz-Content-Sha256:
|
24
|
-
-
|
24
|
+
- 3f40080fdb7ac1732232c14b86645a9ffbd3f94cf8ecda6b3c584d105288bb8d
|
25
25
|
Authorization:
|
26
|
-
- AWS4-HMAC-SHA256 Credential=key/
|
26
|
+
- AWS4-HMAC-SHA256 Credential=key/20240514/us-east-1/dynamodb/aws4_request,
|
27
27
|
SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date;x-amz-target,
|
28
|
-
Signature=
|
28
|
+
Signature=8e245aec41f92b1942bbf4d9ec906de0590d4e7f7eee680746fcd7e81ec05eaa
|
29
29
|
Content-Length:
|
30
|
-
- '
|
30
|
+
- '58'
|
31
31
|
Accept:
|
32
32
|
- "*/*"
|
33
33
|
response:
|
@@ -36,9 +36,9 @@ http_interactions:
|
|
36
36
|
message: OK
|
37
37
|
headers:
|
38
38
|
Date:
|
39
|
-
-
|
39
|
+
- Tue, 14 May 2024 15:11:44 GMT
|
40
40
|
X-Amzn-Requestid:
|
41
|
-
-
|
41
|
+
- 05ca557b-ff45-47e2-86a6-fa0edc308ec9
|
42
42
|
Content-Type:
|
43
43
|
- application/x-amz-json-1.0
|
44
44
|
X-Amz-Crc32:
|
@@ -50,13 +50,14 @@ http_interactions:
|
|
50
50
|
body:
|
51
51
|
encoding: UTF-8
|
52
52
|
string: '{"Item":{"marca":{"S":"Chvrolet"},"created_at":{"S":"2024-05-07T14:09:25-05:00"},"id":{"S":"UVX455"},"updated_at":{"S":"2024-05-07T14:09:25-05:00"}}}'
|
53
|
-
recorded_at:
|
53
|
+
recorded_at: Tue, 14 May 2024 15:11:44 GMT
|
54
54
|
- request:
|
55
55
|
method: post
|
56
56
|
uri: http://localhost:8000/
|
57
57
|
body:
|
58
58
|
encoding: UTF-8
|
59
|
-
string: '{"TableName":"insurances","KeyConditionExpression":"#car_id
|
59
|
+
string: '{"TableName":"fleteo-v2-insurances","KeyConditionExpression":"#car_id
|
60
|
+
= :car_id","ExpressionAttributeNames":{"#car_id":"car_id"},"IndexName":"car_id_index","ExpressionAttributeValues":{":car_id":{"S":"UVX455"}}}'
|
60
61
|
headers:
|
61
62
|
Accept-Encoding:
|
62
63
|
- ''
|
@@ -70,15 +71,15 @@ http_interactions:
|
|
70
71
|
Host:
|
71
72
|
- localhost:8000
|
72
73
|
X-Amz-Date:
|
73
|
-
-
|
74
|
+
- 20240514T151144Z
|
74
75
|
X-Amz-Content-Sha256:
|
75
|
-
-
|
76
|
+
- 2fbf9fb79b236e4c2e9a9151b2960806f4b6841c9205fbe138b73cbd16ff4fee
|
76
77
|
Authorization:
|
77
|
-
- AWS4-HMAC-SHA256 Credential=key/
|
78
|
+
- AWS4-HMAC-SHA256 Credential=key/20240514/us-east-1/dynamodb/aws4_request,
|
78
79
|
SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date;x-amz-target,
|
79
|
-
Signature=
|
80
|
+
Signature=e0b0fd07be7e97250fd0a75fd9b2f5a3b5c0e1863896f781a5a0f37d734a7b4f
|
80
81
|
Content-Length:
|
81
|
-
- '
|
82
|
+
- '211'
|
82
83
|
Accept:
|
83
84
|
- "*/*"
|
84
85
|
response:
|
@@ -87,9 +88,9 @@ http_interactions:
|
|
87
88
|
message: OK
|
88
89
|
headers:
|
89
90
|
Date:
|
90
|
-
-
|
91
|
+
- Tue, 14 May 2024 15:11:44 GMT
|
91
92
|
X-Amzn-Requestid:
|
92
|
-
-
|
93
|
+
- fbd320ed-62af-4382-a7db-9e904162947c
|
93
94
|
Content-Type:
|
94
95
|
- application/x-amz-json-1.0
|
95
96
|
X-Amz-Crc32:
|
@@ -101,13 +102,13 @@ http_interactions:
|
|
101
102
|
body:
|
102
103
|
encoding: UTF-8
|
103
104
|
string: '{"Items":[{"name":{"S":"Colcerautos"},"car_id":{"S":"UVX455"},"id":{"S":"12345"}}],"Count":1,"ScannedCount":1}'
|
104
|
-
recorded_at:
|
105
|
+
recorded_at: Tue, 14 May 2024 15:11:44 GMT
|
105
106
|
- request:
|
106
107
|
method: post
|
107
108
|
uri: http://localhost:8000/
|
108
109
|
body:
|
109
110
|
encoding: UTF-8
|
110
|
-
string: '{"TableName":"insurances","Item":{"name":{"S":"fasecolda"},"car_id":{"S":"UVX455"},"id":{"S":"
|
111
|
+
string: '{"TableName":"fleteo-v2-insurances","Item":{"name":{"S":"fasecolda"},"car_id":{"S":"UVX455"},"id":{"S":"4026f95a-6bd3-44ba-b911-67702f43c7c6"},"created_at":{"S":"2024-05-14T10:11:44-05:00"},"updated_at":{"S":"2024-05-14T10:11:44-05:00"}}}'
|
111
112
|
headers:
|
112
113
|
Accept-Encoding:
|
113
114
|
- ''
|
@@ -121,15 +122,15 @@ http_interactions:
|
|
121
122
|
Host:
|
122
123
|
- localhost:8000
|
123
124
|
X-Amz-Date:
|
124
|
-
-
|
125
|
+
- 20240514T151144Z
|
125
126
|
X-Amz-Content-Sha256:
|
126
|
-
-
|
127
|
+
- d97b204ea6a569b77657b1943aa4690d66fd97fd36006efb278c3c3fa4836a65
|
127
128
|
Authorization:
|
128
|
-
- AWS4-HMAC-SHA256 Credential=key/
|
129
|
+
- AWS4-HMAC-SHA256 Credential=key/20240514/us-east-1/dynamodb/aws4_request,
|
129
130
|
SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date;x-amz-target,
|
130
|
-
Signature=
|
131
|
+
Signature=71125988ecc8a3b21fb7bbcef4a5eaa408027f7b7cb7144f59b90c46c515f7da
|
131
132
|
Content-Length:
|
132
|
-
- '
|
133
|
+
- '238'
|
133
134
|
Accept:
|
134
135
|
- "*/*"
|
135
136
|
response:
|
@@ -138,9 +139,9 @@ http_interactions:
|
|
138
139
|
message: OK
|
139
140
|
headers:
|
140
141
|
Date:
|
141
|
-
-
|
142
|
+
- Tue, 14 May 2024 15:11:44 GMT
|
142
143
|
X-Amzn-Requestid:
|
143
|
-
-
|
144
|
+
- ab6099fa-ef06-4f70-bf31-acfbe67ea77d
|
144
145
|
Content-Type:
|
145
146
|
- application/x-amz-json-1.0
|
146
147
|
X-Amz-Crc32:
|
@@ -152,5 +153,5 @@ http_interactions:
|
|
152
153
|
body:
|
153
154
|
encoding: UTF-8
|
154
155
|
string: "{}"
|
155
|
-
recorded_at:
|
156
|
+
recorded_at: Tue, 14 May 2024 15:11:44 GMT
|
156
157
|
recorded_with: VCR 6.2.0
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: http://localhost:8000/
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"TableName":"cars","Key":{"id":{"S":"UVX455"}}}'
|
8
|
+
string: '{"TableName":"fleteo-v2-cars","Key":{"id":{"S":"UVX455"}}}'
|
9
9
|
headers:
|
10
10
|
Accept-Encoding:
|
11
11
|
- ''
|
@@ -19,15 +19,15 @@ http_interactions:
|
|
19
19
|
Host:
|
20
20
|
- localhost:8000
|
21
21
|
X-Amz-Date:
|
22
|
-
-
|
22
|
+
- 20240514T151134Z
|
23
23
|
X-Amz-Content-Sha256:
|
24
|
-
-
|
24
|
+
- 3f40080fdb7ac1732232c14b86645a9ffbd3f94cf8ecda6b3c584d105288bb8d
|
25
25
|
Authorization:
|
26
|
-
- AWS4-HMAC-SHA256 Credential=key/
|
26
|
+
- AWS4-HMAC-SHA256 Credential=key/20240514/us-east-1/dynamodb/aws4_request,
|
27
27
|
SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date;x-amz-target,
|
28
|
-
Signature=
|
28
|
+
Signature=6cccb1afecbb66dcb85e14eb44c76944e95b7fd912961a9925abef3d73dc5fd9
|
29
29
|
Content-Length:
|
30
|
-
- '
|
30
|
+
- '58'
|
31
31
|
Accept:
|
32
32
|
- "*/*"
|
33
33
|
response:
|
@@ -36,9 +36,9 @@ http_interactions:
|
|
36
36
|
message: OK
|
37
37
|
headers:
|
38
38
|
Date:
|
39
|
-
-
|
39
|
+
- Tue, 14 May 2024 15:11:34 GMT
|
40
40
|
X-Amzn-Requestid:
|
41
|
-
-
|
41
|
+
- 4a8b532a-472b-4aef-9955-3e3f6bcb1865
|
42
42
|
Content-Type:
|
43
43
|
- application/x-amz-json-1.0
|
44
44
|
X-Amz-Crc32:
|
@@ -50,13 +50,14 @@ http_interactions:
|
|
50
50
|
body:
|
51
51
|
encoding: UTF-8
|
52
52
|
string: '{"Item":{"marca":{"S":"Chvrolet"},"created_at":{"S":"2024-05-07T14:09:25-05:00"},"id":{"S":"UVX455"},"updated_at":{"S":"2024-05-07T14:09:25-05:00"}}}'
|
53
|
-
recorded_at:
|
53
|
+
recorded_at: Tue, 14 May 2024 15:11:34 GMT
|
54
54
|
- request:
|
55
55
|
method: post
|
56
56
|
uri: http://localhost:8000/
|
57
57
|
body:
|
58
58
|
encoding: UTF-8
|
59
|
-
string: '{"TableName":"insurances","KeyConditionExpression":"#car_id
|
59
|
+
string: '{"TableName":"fleteo-v2-insurances","KeyConditionExpression":"#car_id
|
60
|
+
= :car_id","ExpressionAttributeNames":{"#car_id":"car_id"},"IndexName":"car_id_index","ExpressionAttributeValues":{":car_id":{"S":"UVX455"}}}'
|
60
61
|
headers:
|
61
62
|
Accept-Encoding:
|
62
63
|
- ''
|
@@ -70,15 +71,15 @@ http_interactions:
|
|
70
71
|
Host:
|
71
72
|
- localhost:8000
|
72
73
|
X-Amz-Date:
|
73
|
-
-
|
74
|
+
- 20240514T151134Z
|
74
75
|
X-Amz-Content-Sha256:
|
75
|
-
-
|
76
|
+
- 2fbf9fb79b236e4c2e9a9151b2960806f4b6841c9205fbe138b73cbd16ff4fee
|
76
77
|
Authorization:
|
77
|
-
- AWS4-HMAC-SHA256 Credential=key/
|
78
|
+
- AWS4-HMAC-SHA256 Credential=key/20240514/us-east-1/dynamodb/aws4_request,
|
78
79
|
SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date;x-amz-target,
|
79
|
-
Signature=
|
80
|
+
Signature=94c1464d7e64379e71d27c201909ebc469f3808a3f93578bdd2cdddb3c150c4c
|
80
81
|
Content-Length:
|
81
|
-
- '
|
82
|
+
- '211'
|
82
83
|
Accept:
|
83
84
|
- "*/*"
|
84
85
|
response:
|
@@ -87,9 +88,9 @@ http_interactions:
|
|
87
88
|
message: OK
|
88
89
|
headers:
|
89
90
|
Date:
|
90
|
-
-
|
91
|
+
- Tue, 14 May 2024 15:11:34 GMT
|
91
92
|
X-Amzn-Requestid:
|
92
|
-
-
|
93
|
+
- faa50e5f-7479-49e8-9b1c-e3c2225bc5da
|
93
94
|
Content-Type:
|
94
95
|
- application/x-amz-json-1.0
|
95
96
|
X-Amz-Crc32:
|
@@ -101,5 +102,5 @@ http_interactions:
|
|
101
102
|
body:
|
102
103
|
encoding: UTF-8
|
103
104
|
string: '{"Items":[{"name":{"S":"Colcerautos"},"car_id":{"S":"UVX455"},"id":{"S":"12345"}}],"Count":1,"ScannedCount":1}'
|
104
|
-
recorded_at:
|
105
|
+
recorded_at: Tue, 14 May 2024 15:11:34 GMT
|
105
106
|
recorded_with: VCR 6.2.0
|