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.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dynamodb_record/associations.rb +33 -33
  3. data/lib/dynamodb_record/finders.rb +0 -1
  4. data/lib/dynamodb_record/query.rb +1 -0
  5. data/lib/dynamodb_record/version.rb +1 -1
  6. data/lib/dynamodb_record.rb +1 -0
  7. data/spec/dynamodb_record/config_spec.rb +28 -0
  8. data/spec/dynamodb_record/document_spec.rb +4 -4
  9. data/spec/dynamodb_record/finders_spec.rb +7 -7
  10. data/spec/dynamodb_record/persistence_spec.rb +12 -12
  11. data/spec/dynamodb_record/query_spec.rb +2 -2
  12. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Associations/_belongs_to/get_object.yml +18 -18
  13. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Associations/_has_many/add_list.yml +108 -57
  14. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Associations/_has_many/create_item.yml +28 -27
  15. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Associations/_has_many/get_collection.yml +19 -18
  16. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Associations/has_and_belongs_to_many.yml +31 -31
  17. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Associations/has_and_belongs_to_many_create.yml +91 -39
  18. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Associations/has_many_through.yml +30 -27
  19. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Document/initializes_from_database.yml +11 -11
  20. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Fields/_find/finds_record.yml +12 -12
  21. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Fields/_find/when_record_doesn_t_exists/returns_empty_object.yml +9 -9
  22. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Persistence/_destroy/when_no_range_key/destroys_record.yml +30 -30
  23. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Persistence/_destroy/when_there_is_range_key/destroys_record.yml +9 -111
  24. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Persistence/does_not_overwrite_existing_record.yml +20 -20
  25. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Persistence/saves_record.yml +9 -9
  26. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Persistence/updates_record.yml +31 -31
  27. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Query/_all/find_all_records.yml +12 -12
  28. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Query/querying/_where/returns_records_by_limit.yml +12 -12
  29. data/spec/fixtures/vcr_cassettes/DynamodbRecord_Query/querying/_where/returns_records_where_user_balance_0.yml +12 -12
  30. data/spec/spec_helper.rb +7 -6
  31. 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
- - 20240513T221654Z
22
+ - 20240514T144620Z
23
23
  X-Amz-Content-Sha256:
24
- - 7e2248df156bd85d1c08add1aaa7b84ed6041fe96165fb6879ddbb1424663802
24
+ - ab20f394f9f17ab85359c8cef098ff2e93991ca4f4f9402376eaa33ea97d5545
25
25
  Authorization:
26
- - AWS4-HMAC-SHA256 Credential=key/20240513/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=5d36d58a7b9e3a813cb337310b4e9d00c02289f75c535f244cedfb44fa11eb7a
28
+ Signature=7f40d5a6191a9532b51042f9e25b6d95ab08b5a9525610a8d4261cfcdaa3cf25
29
29
  Content-Length:
30
- - '62'
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
- - Mon, 13 May 2024 22:16:54 GMT
39
+ - Tue, 14 May 2024 14:46:20 GMT
40
40
  X-Amzn-Requestid:
41
- - 711a1017-0f68-4957-9676-646de4682adb
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: Mon, 13 May 2024 22:16:54 GMT
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
- - 20240513T221654Z
73
+ - 20240514T144620Z
74
74
  X-Amz-Content-Sha256:
75
- - 53644a2bbab903704867eb87df0fdfe6dd8cb8ac9e1dae5715033d0f636fd592
75
+ - 3f40080fdb7ac1732232c14b86645a9ffbd3f94cf8ecda6b3c584d105288bb8d
76
76
  Authorization:
77
- - AWS4-HMAC-SHA256 Credential=key/20240513/us-east-1/dynamodb/aws4_request,
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=1a726edf9229b92796291ec3955d631f15042e898d2cdd1af503eb97c941d9fe
79
+ Signature=a7aa82df282063303cea5d1f31b73ba19956d24c980a68b21e8e421d3d26e5b9
80
80
  Content-Length:
81
- - '48'
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
- - Mon, 13 May 2024 22:16:54 GMT
90
+ - Tue, 14 May 2024 14:46:20 GMT
91
91
  X-Amzn-Requestid:
92
- - dc46ebd9-194b-4de1-8a2e-7a5dff2694c0
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: Mon, 13 May 2024 22:16:54 GMT
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
- - 20240513T221654Z
125
+ - 20240514T144620Z
126
126
  X-Amz-Content-Sha256:
127
- - 861742c900d1730c7df19f7946fa6aac3875ce336013c8c99084372c1dab4405
127
+ - 0175d24f36fe98a611d5abdc67ddc83bb5d7192f7b6330d0014ace2323300f43
128
128
  Authorization:
129
- - AWS4-HMAC-SHA256 Credential=key/20240513/us-east-1/dynamodb/aws4_request,
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=ef7169d848223d72e60f810eab3ed7d6bb1ae25372b898fd796ff3a26c4dd70e
131
+ Signature=37002d3bf5b8fefae8dd5333571d23b019cb94b2f4e2dc447a0724e126016367
132
132
  Content-Length:
133
- - '223'
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
- - Mon, 13 May 2024 22:16:54 GMT
142
+ - Tue, 14 May 2024 14:46:20 GMT
143
143
  X-Amzn-Requestid:
144
- - 86006016-6670-4107-8ad7-696d8fef517d
144
+ - 643c1716-5124-400a-8cc9-a841255b8b37
145
145
  Content-Type:
146
146
  - application/x-amz-json-1.0
147
147
  X-Amz-Crc32:
148
- - '583912891'
148
+ - '1919856377'
149
149
  Content-Length:
150
- - '39'
150
+ - '102'
151
151
  Server:
152
152
  - Jetty(11.0.17)
153
153
  body:
154
154
  encoding: UTF-8
155
- string: '{"Items":[],"Count":0,"ScannedCount":0}'
156
- recorded_at: Mon, 13 May 2024 22:16:54 GMT
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
- - 20240513T221654Z
227
+ - 20240514T144620Z
177
228
  X-Amz-Content-Sha256:
178
- - e587d0399718d407bf4455227d39690706f3801ff9426a66599b446990bab89c
229
+ - 5520b7b4378bf3798b15afc5abcf3f33002f11b3a1880135a946e306c3c73862
179
230
  Authorization:
180
- - AWS4-HMAC-SHA256 Credential=key/20240513/us-east-1/dynamodb/aws4_request,
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=8369b75f615867caf534d5f75461ab3d3fc42580bcf244dbef28607ec667bf89
233
+ Signature=a4887dad7be1e8f960cd0b14a963349dbc3ced008165315a4d16492595a3cafd
183
234
  Content-Length:
184
- - '97'
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
- - Mon, 13 May 2024 22:16:54 GMT
244
+ - Tue, 14 May 2024 14:46:20 GMT
194
245
  X-Amzn-Requestid:
195
- - 864c54ef-15c9-4b63-be26-77cdb6c952b6
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: Mon, 13 May 2024 22:16:54 GMT
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
- - 20240513T221654Z
279
+ - 20240514T144620Z
229
280
  X-Amz-Content-Sha256:
230
- - 861742c900d1730c7df19f7946fa6aac3875ce336013c8c99084372c1dab4405
281
+ - 0175d24f36fe98a611d5abdc67ddc83bb5d7192f7b6330d0014ace2323300f43
231
282
  Authorization:
232
- - AWS4-HMAC-SHA256 Credential=key/20240513/us-east-1/dynamodb/aws4_request,
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=ef7169d848223d72e60f810eab3ed7d6bb1ae25372b898fd796ff3a26c4dd70e
285
+ Signature=37002d3bf5b8fefae8dd5333571d23b019cb94b2f4e2dc447a0724e126016367
235
286
  Content-Length:
236
- - '223'
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
- - Mon, 13 May 2024 22:16:54 GMT
296
+ - Tue, 14 May 2024 14:46:20 GMT
246
297
  X-Amzn-Requestid:
247
- - 451f0c47-2990-42e2-a056-09def02719c8
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: Mon, 13 May 2024 22:16:54 GMT
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
- - 20240513T221654Z
330
+ - 20240514T144620Z
280
331
  X-Amz-Content-Sha256:
281
- - 53644a2bbab903704867eb87df0fdfe6dd8cb8ac9e1dae5715033d0f636fd592
332
+ - 3f40080fdb7ac1732232c14b86645a9ffbd3f94cf8ecda6b3c584d105288bb8d
282
333
  Authorization:
283
- - AWS4-HMAC-SHA256 Credential=key/20240513/us-east-1/dynamodb/aws4_request,
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=1a726edf9229b92796291ec3955d631f15042e898d2cdd1af503eb97c941d9fe
336
+ Signature=a7aa82df282063303cea5d1f31b73ba19956d24c980a68b21e8e421d3d26e5b9
286
337
  Content-Length:
287
- - '48'
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
- - Mon, 13 May 2024 22:16:54 GMT
347
+ - Tue, 14 May 2024 14:46:20 GMT
297
348
  X-Amzn-Requestid:
298
- - 9d01d52e-6a41-48a4-99ed-fda216f6dd30
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: Mon, 13 May 2024 22:16:54 GMT
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
- - 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