dynamodb_record 0.3.0 → 0.3.2

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.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dynamodb_record/associations.rb +30 -31
  3. data/lib/dynamodb_record/finders.rb +0 -1
  4. data/lib/dynamodb_record/has_and_belongs_to_many_collection.rb +9 -0
  5. data/lib/dynamodb_record/query.rb +1 -0
  6. data/lib/dynamodb_record/version.rb +1 -1
  7. data/spec/dynamodb_record/association_spec.rb +7 -0
  8. data/spec/dynamodb_record/config_spec.rb +28 -0
  9. data/spec/dynamodb_record/document_spec.rb +4 -4
  10. data/spec/dynamodb_record/finders_spec.rb +7 -7
  11. data/spec/dynamodb_record/persistence_spec.rb +12 -12
  12. data/spec/dynamodb_record/query_spec.rb +2 -2
  13. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Associations/_belongs_to/get_object.yml +18 -18
  14. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Associations/_has_many/add_list.yml +362 -0
  15. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Associations/_has_many/create_item.yml +28 -27
  16. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Associations/_has_many/get_collection.yml +19 -18
  17. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Associations/has_and_belongs_to_many.yml +31 -31
  18. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Associations/has_and_belongs_to_many_create.yml +91 -39
  19. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Associations/has_many_through.yml +30 -27
  20. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Document/initializes_from_database.yml +11 -11
  21. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Fields/_find/finds_record.yml +12 -12
  22. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Fields/_find/when_record_doesn_t_exists/returns_empty_object.yml +9 -9
  23. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Persistence/_destroy/when_no_range_key/destroys_record.yml +30 -30
  24. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Persistence/_destroy/when_there_is_range_key/destroys_record.yml +9 -111
  25. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Persistence/does_not_overwrite_existing_record.yml +20 -20
  26. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Persistence/saves_record.yml +9 -9
  27. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Persistence/updates_record.yml +31 -31
  28. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Query/_all/find_all_records.yml +12 -12
  29. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Query/querying/_where/returns_records_by_limit.yml +12 -12
  30. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Query/querying/_where/returns_records_where_user_balance_0.yml +12 -12
  31. data/spec/spec_helper.rb +7 -6
  32. metadata +4 -2
@@ -0,0 +1,362 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:8000/
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"TableName":"fleteo-v2-users","Key":{"id":{"S":"hguzman10@gmail.com"}}}'
9
+ headers:
10
+ Accept-Encoding:
11
+ - ''
12
+ Content-Type:
13
+ - application/x-amz-json-1.0
14
+ X-Amz-Target:
15
+ - DynamoDB_20120810.GetItem
16
+ User-Agent:
17
+ - 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
18
+ md/3.2.3 cfg/retry-mode#legacy
19
+ Host:
20
+ - localhost:8000
21
+ X-Amz-Date:
22
+ - 20240514T144620Z
23
+ X-Amz-Content-Sha256:
24
+ - ab20f394f9f17ab85359c8cef098ff2e93991ca4f4f9402376eaa33ea97d5545
25
+ Authorization:
26
+ - AWS4-HMAC-SHA256 Credential=key/20240514/us-east-1/dynamodb/aws4_request,
27
+ SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date;x-amz-target,
28
+ Signature=7f40d5a6191a9532b51042f9e25b6d95ab08b5a9525610a8d4261cfcdaa3cf25
29
+ Content-Length:
30
+ - '72'
31
+ Accept:
32
+ - "*/*"
33
+ response:
34
+ status:
35
+ code: 200
36
+ message: OK
37
+ headers:
38
+ Date:
39
+ - Tue, 14 May 2024 14:46:20 GMT
40
+ X-Amzn-Requestid:
41
+ - 84007b4f-a47b-45c9-a341-a84c275c0031
42
+ Content-Type:
43
+ - application/x-amz-json-1.0
44
+ X-Amz-Crc32:
45
+ - '3262869781'
46
+ Content-Length:
47
+ - '157'
48
+ Server:
49
+ - Jetty(11.0.17)
50
+ body:
51
+ encoding: UTF-8
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: Tue, 14 May 2024 14:46:20 GMT
54
+ - request:
55
+ method: post
56
+ uri: http://localhost:8000/
57
+ body:
58
+ encoding: UTF-8
59
+ string: '{"TableName":"fleteo-v2-cars","Key":{"id":{"S":"UVX455"}}}'
60
+ headers:
61
+ Accept-Encoding:
62
+ - ''
63
+ Content-Type:
64
+ - application/x-amz-json-1.0
65
+ X-Amz-Target:
66
+ - DynamoDB_20120810.GetItem
67
+ User-Agent:
68
+ - 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
69
+ md/3.2.3 cfg/retry-mode#legacy
70
+ Host:
71
+ - localhost:8000
72
+ X-Amz-Date:
73
+ - 20240514T144620Z
74
+ X-Amz-Content-Sha256:
75
+ - 3f40080fdb7ac1732232c14b86645a9ffbd3f94cf8ecda6b3c584d105288bb8d
76
+ Authorization:
77
+ - AWS4-HMAC-SHA256 Credential=key/20240514/us-east-1/dynamodb/aws4_request,
78
+ SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date;x-amz-target,
79
+ Signature=a7aa82df282063303cea5d1f31b73ba19956d24c980a68b21e8e421d3d26e5b9
80
+ Content-Length:
81
+ - '58'
82
+ Accept:
83
+ - "*/*"
84
+ response:
85
+ status:
86
+ code: 200
87
+ message: OK
88
+ headers:
89
+ Date:
90
+ - Tue, 14 May 2024 14:46:20 GMT
91
+ X-Amzn-Requestid:
92
+ - ed4c55df-a4e8-4ba8-8a30-45ecd389362e
93
+ Content-Type:
94
+ - application/x-amz-json-1.0
95
+ X-Amz-Crc32:
96
+ - '590923779'
97
+ Content-Length:
98
+ - '149'
99
+ Server:
100
+ - Jetty(11.0.17)
101
+ body:
102
+ encoding: UTF-8
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: Tue, 14 May 2024 14:46:20 GMT
105
+ - request:
106
+ method: post
107
+ uri: http://localhost:8000/
108
+ body:
109
+ encoding: UTF-8
110
+ string: '{"TableName":"fleteo-v2-cars-users","IndexName":"fleteo-v2-cars-users-index","KeyConditionExpression":"#user_id
111
+ = :user_id","ExpressionAttributeNames":{"#user_id":"user_id"},"ExpressionAttributeValues":{":user_id":{"S":"hguzman10@gmail.com"}}}'
112
+ headers:
113
+ Accept-Encoding:
114
+ - ''
115
+ Content-Type:
116
+ - application/x-amz-json-1.0
117
+ X-Amz-Target:
118
+ - DynamoDB_20120810.Query
119
+ User-Agent:
120
+ - 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
121
+ md/3.2.3 cfg/retry-mode#legacy
122
+ Host:
123
+ - localhost:8000
124
+ X-Amz-Date:
125
+ - 20240514T144620Z
126
+ X-Amz-Content-Sha256:
127
+ - 0175d24f36fe98a611d5abdc67ddc83bb5d7192f7b6330d0014ace2323300f43
128
+ Authorization:
129
+ - AWS4-HMAC-SHA256 Credential=key/20240514/us-east-1/dynamodb/aws4_request,
130
+ SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date;x-amz-target,
131
+ Signature=37002d3bf5b8fefae8dd5333571d23b019cb94b2f4e2dc447a0724e126016367
132
+ Content-Length:
133
+ - '243'
134
+ Accept:
135
+ - "*/*"
136
+ response:
137
+ status:
138
+ code: 200
139
+ message: OK
140
+ headers:
141
+ Date:
142
+ - Tue, 14 May 2024 14:46:20 GMT
143
+ X-Amzn-Requestid:
144
+ - 643c1716-5124-400a-8cc9-a841255b8b37
145
+ Content-Type:
146
+ - application/x-amz-json-1.0
147
+ X-Amz-Crc32:
148
+ - '1919856377'
149
+ Content-Length:
150
+ - '102'
151
+ Server:
152
+ - Jetty(11.0.17)
153
+ body:
154
+ encoding: UTF-8
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
208
+ - request:
209
+ method: post
210
+ uri: http://localhost:8000/
211
+ body:
212
+ encoding: UTF-8
213
+ string: '{"TableName":"fleteo-v2-cars-users","Item":{"user_id":{"S":"hguzman10@gmail.com"},"car_id":{"S":"UVX455"}}}'
214
+ headers:
215
+ Accept-Encoding:
216
+ - ''
217
+ Content-Type:
218
+ - application/x-amz-json-1.0
219
+ X-Amz-Target:
220
+ - DynamoDB_20120810.PutItem
221
+ User-Agent:
222
+ - 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
223
+ md/3.2.3 cfg/retry-mode#legacy
224
+ Host:
225
+ - localhost:8000
226
+ X-Amz-Date:
227
+ - 20240514T144620Z
228
+ X-Amz-Content-Sha256:
229
+ - 5520b7b4378bf3798b15afc5abcf3f33002f11b3a1880135a946e306c3c73862
230
+ Authorization:
231
+ - AWS4-HMAC-SHA256 Credential=key/20240514/us-east-1/dynamodb/aws4_request,
232
+ SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date;x-amz-target,
233
+ Signature=a4887dad7be1e8f960cd0b14a963349dbc3ced008165315a4d16492595a3cafd
234
+ Content-Length:
235
+ - '107'
236
+ Accept:
237
+ - "*/*"
238
+ response:
239
+ status:
240
+ code: 200
241
+ message: OK
242
+ headers:
243
+ Date:
244
+ - Tue, 14 May 2024 14:46:20 GMT
245
+ X-Amzn-Requestid:
246
+ - '0985eed6-1e8b-477f-b222-2f308ce4d6a4'
247
+ Content-Type:
248
+ - application/x-amz-json-1.0
249
+ X-Amz-Crc32:
250
+ - '2745614147'
251
+ Content-Length:
252
+ - '2'
253
+ Server:
254
+ - Jetty(11.0.17)
255
+ body:
256
+ encoding: UTF-8
257
+ string: "{}"
258
+ recorded_at: Tue, 14 May 2024 14:46:20 GMT
259
+ - request:
260
+ method: post
261
+ uri: http://localhost:8000/
262
+ body:
263
+ encoding: UTF-8
264
+ string: '{"TableName":"fleteo-v2-cars-users","IndexName":"fleteo-v2-cars-users-index","KeyConditionExpression":"#user_id
265
+ = :user_id","ExpressionAttributeNames":{"#user_id":"user_id"},"ExpressionAttributeValues":{":user_id":{"S":"hguzman10@gmail.com"}}}'
266
+ headers:
267
+ Accept-Encoding:
268
+ - ''
269
+ Content-Type:
270
+ - application/x-amz-json-1.0
271
+ X-Amz-Target:
272
+ - DynamoDB_20120810.Query
273
+ User-Agent:
274
+ - 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
275
+ md/3.2.3 cfg/retry-mode#legacy
276
+ Host:
277
+ - localhost:8000
278
+ X-Amz-Date:
279
+ - 20240514T144620Z
280
+ X-Amz-Content-Sha256:
281
+ - 0175d24f36fe98a611d5abdc67ddc83bb5d7192f7b6330d0014ace2323300f43
282
+ Authorization:
283
+ - AWS4-HMAC-SHA256 Credential=key/20240514/us-east-1/dynamodb/aws4_request,
284
+ SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date;x-amz-target,
285
+ Signature=37002d3bf5b8fefae8dd5333571d23b019cb94b2f4e2dc447a0724e126016367
286
+ Content-Length:
287
+ - '243'
288
+ Accept:
289
+ - "*/*"
290
+ response:
291
+ status:
292
+ code: 200
293
+ message: OK
294
+ headers:
295
+ Date:
296
+ - Tue, 14 May 2024 14:46:20 GMT
297
+ X-Amzn-Requestid:
298
+ - 84268b0a-f0a9-41d6-bb0c-8fad9b03f224
299
+ Content-Type:
300
+ - application/x-amz-json-1.0
301
+ X-Amz-Crc32:
302
+ - '1919856377'
303
+ Content-Length:
304
+ - '102'
305
+ Server:
306
+ - Jetty(11.0.17)
307
+ body:
308
+ encoding: UTF-8
309
+ string: '{"Items":[{"user_id":{"S":"hguzman10@gmail.com"},"car_id":{"S":"UVX455"}}],"Count":1,"ScannedCount":1}'
310
+ recorded_at: Tue, 14 May 2024 14:46:20 GMT
311
+ - request:
312
+ method: post
313
+ uri: http://localhost:8000/
314
+ body:
315
+ encoding: UTF-8
316
+ string: '{"TableName":"fleteo-v2-cars","Key":{"id":{"S":"UVX455"}}}'
317
+ headers:
318
+ Accept-Encoding:
319
+ - ''
320
+ Content-Type:
321
+ - application/x-amz-json-1.0
322
+ X-Amz-Target:
323
+ - DynamoDB_20120810.GetItem
324
+ User-Agent:
325
+ - 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
326
+ md/3.2.3 cfg/retry-mode#legacy
327
+ Host:
328
+ - localhost:8000
329
+ X-Amz-Date:
330
+ - 20240514T144620Z
331
+ X-Amz-Content-Sha256:
332
+ - 3f40080fdb7ac1732232c14b86645a9ffbd3f94cf8ecda6b3c584d105288bb8d
333
+ Authorization:
334
+ - AWS4-HMAC-SHA256 Credential=key/20240514/us-east-1/dynamodb/aws4_request,
335
+ SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date;x-amz-target,
336
+ Signature=a7aa82df282063303cea5d1f31b73ba19956d24c980a68b21e8e421d3d26e5b9
337
+ Content-Length:
338
+ - '58'
339
+ Accept:
340
+ - "*/*"
341
+ response:
342
+ status:
343
+ code: 200
344
+ message: OK
345
+ headers:
346
+ Date:
347
+ - Tue, 14 May 2024 14:46:20 GMT
348
+ X-Amzn-Requestid:
349
+ - 68b8bc16-fa54-4518-9038-0a755be7960d
350
+ Content-Type:
351
+ - application/x-amz-json-1.0
352
+ X-Amz-Crc32:
353
+ - '590923779'
354
+ Content-Length:
355
+ - '149'
356
+ Server:
357
+ - Jetty(11.0.17)
358
+ body:
359
+ encoding: UTF-8
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"}}}'
361
+ recorded_at: Tue, 14 May 2024 14:46:20 GMT
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
- - 20240512T011502Z
22
+ - 20240514T151144Z
23
23
  X-Amz-Content-Sha256:
24
- - 53644a2bbab903704867eb87df0fdfe6dd8cb8ac9e1dae5715033d0f636fd592
24
+ - 3f40080fdb7ac1732232c14b86645a9ffbd3f94cf8ecda6b3c584d105288bb8d
25
25
  Authorization:
26
- - AWS4-HMAC-SHA256 Credential=key/20240512/us-east-1/dynamodb/aws4_request,
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=22c32bafc8b7e925c8e531160020d4bd9246b0add5aac561884d4868a45967c6
28
+ Signature=8e245aec41f92b1942bbf4d9ec906de0590d4e7f7eee680746fcd7e81ec05eaa
29
29
  Content-Length:
30
- - '48'
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
- - Sun, 12 May 2024 01:15:02 GMT
39
+ - Tue, 14 May 2024 15:11:44 GMT
40
40
  X-Amzn-Requestid:
41
- - fb6cd7bb-8417-40b9-803c-6d2b4935d19d
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: Sun, 12 May 2024 01:15:02 GMT
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 = :car_id","ExpressionAttributeNames":{"#car_id":"car_id"},"IndexName":"car_id_index","ExpressionAttributeValues":{":car_id":{"S":"UVX455"}}}'
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
- - 20240512T011502Z
74
+ - 20240514T151144Z
74
75
  X-Amz-Content-Sha256:
75
- - fac478ef4d5e254f316f0e0816ee2d7598517ef6a29e429ca939dcd7c4d3f78b
76
+ - 2fbf9fb79b236e4c2e9a9151b2960806f4b6841c9205fbe138b73cbd16ff4fee
76
77
  Authorization:
77
- - AWS4-HMAC-SHA256 Credential=key/20240512/us-east-1/dynamodb/aws4_request,
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=c4472ed1a979116134d818aa3ae37edc69eda0ebab8e6acad784dc5c22b169df
80
+ Signature=e0b0fd07be7e97250fd0a75fd9b2f5a3b5c0e1863896f781a5a0f37d734a7b4f
80
81
  Content-Length:
81
- - '201'
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
- - Sun, 12 May 2024 01:15:02 GMT
91
+ - Tue, 14 May 2024 15:11:44 GMT
91
92
  X-Amzn-Requestid:
92
- - dd77fd3a-5472-4e46-9afb-f1ee622a9349
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: Sun, 12 May 2024 01:15:02 GMT
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":"9dad2f9c-5351-4205-87a4-afacc5a3216a"},"created_at":{"S":"2024-05-11T20:15:02-05:00"},"updated_at":{"S":"2024-05-11T20:15:02-05:00"}}}'
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
- - 20240512T011502Z
125
+ - 20240514T151144Z
125
126
  X-Amz-Content-Sha256:
126
- - 512e130948e11b8ca0fa5135e9b657889bb3dc6442626447583c4ea913c0417d
127
+ - d97b204ea6a569b77657b1943aa4690d66fd97fd36006efb278c3c3fa4836a65
127
128
  Authorization:
128
- - AWS4-HMAC-SHA256 Credential=key/20240512/us-east-1/dynamodb/aws4_request,
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=b4d7ede66c516d2304128b0323180b040265c3c57dedafceab5de37d8aaef83c
131
+ Signature=71125988ecc8a3b21fb7bbcef4a5eaa408027f7b7cb7144f59b90c46c515f7da
131
132
  Content-Length:
132
- - '228'
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
- - Sun, 12 May 2024 01:15:02 GMT
142
+ - Tue, 14 May 2024 15:11:44 GMT
142
143
  X-Amzn-Requestid:
143
- - b754c058-4015-474b-8756-475edec657ac
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: Sun, 12 May 2024 01:15:02 GMT
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
- - 20240512T004358Z
22
+ - 20240514T151134Z
23
23
  X-Amz-Content-Sha256:
24
- - 53644a2bbab903704867eb87df0fdfe6dd8cb8ac9e1dae5715033d0f636fd592
24
+ - 3f40080fdb7ac1732232c14b86645a9ffbd3f94cf8ecda6b3c584d105288bb8d
25
25
  Authorization:
26
- - AWS4-HMAC-SHA256 Credential=key/20240512/us-east-1/dynamodb/aws4_request,
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=e4513e23bf93211ab065a785f50374cbff2f6c9577bf2e11243f94aacc525c43
28
+ Signature=6cccb1afecbb66dcb85e14eb44c76944e95b7fd912961a9925abef3d73dc5fd9
29
29
  Content-Length:
30
- - '48'
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
- - Sun, 12 May 2024 00:43:58 GMT
39
+ - Tue, 14 May 2024 15:11:34 GMT
40
40
  X-Amzn-Requestid:
41
- - 4d01cd81-bd7e-4ece-882e-eb02e18115d6
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: Sun, 12 May 2024 00:43:58 GMT
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 = :car_id","ExpressionAttributeNames":{"#car_id":"car_id"},"IndexName":"car_id_index","ExpressionAttributeValues":{":car_id":{"S":"UVX455"}}}'
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
- - 20240512T004358Z
74
+ - 20240514T151134Z
74
75
  X-Amz-Content-Sha256:
75
- - fac478ef4d5e254f316f0e0816ee2d7598517ef6a29e429ca939dcd7c4d3f78b
76
+ - 2fbf9fb79b236e4c2e9a9151b2960806f4b6841c9205fbe138b73cbd16ff4fee
76
77
  Authorization:
77
- - AWS4-HMAC-SHA256 Credential=key/20240512/us-east-1/dynamodb/aws4_request,
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=5e3fd77ef50b4a48f37c0f2cd6c0f0f34dc4072193bca4773a45d1520e7646c1
80
+ Signature=94c1464d7e64379e71d27c201909ebc469f3808a3f93578bdd2cdddb3c150c4c
80
81
  Content-Length:
81
- - '201'
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
- - Sun, 12 May 2024 00:43:58 GMT
91
+ - Tue, 14 May 2024 15:11:34 GMT
91
92
  X-Amzn-Requestid:
92
- - d7d20e79-f124-424b-b7cb-18741588e97f
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: Sun, 12 May 2024 00:43:58 GMT
105
+ recorded_at: Tue, 14 May 2024 15:11:34 GMT
105
106
  recorded_with: VCR 6.2.0