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
@@ -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":"not here"}}}'
8
+ string: '{"TableName":"fleteo-v2-users","Key":{"id":{"S":"not here"}}}'
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
- - 20240426T004553Z
22
+ - 20240514T151627Z
23
23
  X-Amz-Content-Sha256:
24
- - acbe242b07a1de9c8a8ac78119a8da7e4bf1d57c7d59ed18930d06ad600c9d6c
24
+ - 9896636d21f5592fa181e582b1efe26e6c786a766326d91603b6a97dbb773cf9
25
25
  Authorization:
26
- - AWS4-HMAC-SHA256 Credential=AKIAV3OBKSDM5UO5PK5A/20240426/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=44e65913fed63c074acdcbfc2abde8a46e8e3d838e429f74386763ac63f32a00
28
+ Signature=cc1c5012a4daa032226e3fd40ce152ee7d84e6d4bd0e5ae636ab32e625316f26
29
29
  Content-Length:
30
- - '51'
30
+ - '61'
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
- - Fri, 26 Apr 2024 00:45:53 GMT
39
+ - Tue, 14 May 2024 15:16:27 GMT
40
40
  X-Amzn-Requestid:
41
- - '091b1c6c-4b29-4901-9748-c865bae5affb'
41
+ - 46ab761f-2f9c-40e6-a439-99b14908373d
42
42
  Content-Type:
43
43
  - application/x-amz-json-1.0
44
44
  X-Amz-Crc32:
@@ -50,5 +50,5 @@ http_interactions:
50
50
  body:
51
51
  encoding: UTF-8
52
52
  string: "{}"
53
- recorded_at: Fri, 26 Apr 2024 00:45:53 GMT
53
+ recorded_at: Tue, 14 May 2024 15:16:27 GMT
54
54
  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":"users","Key":{"id":{"S":"hguzman10@gmail.com"}}}'
8
+ string: '{"TableName":"fleteo-v2-users","Key":{"id":{"S":"hguzman50@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
- - 20240502T003644Z
22
+ - 20240514T151950Z
23
23
  X-Amz-Content-Sha256:
24
- - 7e2248df156bd85d1c08add1aaa7b84ed6041fe96165fb6879ddbb1424663802
24
+ - 5b07a2ed9f61d6478feb52e761428fdcb93c27759f2c71d11f9eeaf0a7c6fd82
25
25
  Authorization:
26
- - AWS4-HMAC-SHA256 Credential=AKIAV3OBKSDM5UO5PK5A/20240502/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=94cc004156fe51a634d7bc47199d168f53887124cadf4eaf91af8970cd7e0751
28
+ Signature=bd941ea9696f34e4dcc1561fb86a14ba54e0c777d4f01b6e3fb207230d779a7b
29
29
  Content-Length:
30
- - '62'
30
+ - '72'
31
31
  Accept:
32
32
  - "*/*"
33
33
  response:
@@ -36,27 +36,27 @@ http_interactions:
36
36
  message: OK
37
37
  headers:
38
38
  Date:
39
- - Thu, 02 May 2024 00:36:44 GMT
39
+ - Tue, 14 May 2024 15:19:50 GMT
40
40
  X-Amzn-Requestid:
41
- - 7bae8e3b-f05f-4711-809b-13029004a792
41
+ - e0b872c3-3196-45c5-af09-f8d295d2d9e6
42
42
  Content-Type:
43
43
  - application/x-amz-json-1.0
44
44
  X-Amz-Crc32:
45
- - '3547979423'
45
+ - '3601362903'
46
46
  Content-Length:
47
- - '158'
47
+ - '157'
48
48
  Server:
49
49
  - Jetty(11.0.17)
50
50
  body:
51
51
  encoding: UTF-8
52
- string: '{"Item":{"created_at":{"S":"2024-05-01T19:36:43-05:00"},"id":{"S":"hguzman10@gmail.com"},"balance":{"N":"60"},"updated_at":{"S":"2024-05-01T19:36:43-05:00"}}}'
53
- recorded_at: Thu, 02 May 2024 00:36:44 GMT
52
+ string: '{"Item":{"created_at":{"S":"2024-05-14T10:08:57-05:00"},"id":{"S":"hguzman50@gmail.com"},"balance":{"N":"0"},"updated_at":{"S":"2024-05-14T10:08:57-05:00"}}}'
53
+ recorded_at: Tue, 14 May 2024 15:19:50 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":"users","Key":{"id":{"S":"hguzman10@gmail.com"}}}'
59
+ string: '{"TableName":"fleteo-v2-users","Key":{"id":{"S":"hguzman50@gmail.com"}}}'
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
- - 20240502T003644Z
73
+ - 20240514T151950Z
74
74
  X-Amz-Content-Sha256:
75
- - 7e2248df156bd85d1c08add1aaa7b84ed6041fe96165fb6879ddbb1424663802
75
+ - 5b07a2ed9f61d6478feb52e761428fdcb93c27759f2c71d11f9eeaf0a7c6fd82
76
76
  Authorization:
77
- - AWS4-HMAC-SHA256 Credential=AKIAV3OBKSDM5UO5PK5A/20240502/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=961736055c2544461f423b2aeebefa85e0c7c0f3e5cbf1f6a3734be3c29ad1c2
79
+ Signature=7847b00fa848801fc0b8744022308336c5bab98056d42c7170798ce95ada30bc
80
80
  Content-Length:
81
- - '62'
81
+ - '72'
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
- - Thu, 02 May 2024 00:36:44 GMT
90
+ - Tue, 14 May 2024 15:19:50 GMT
91
91
  X-Amzn-Requestid:
92
- - d9042a14-8c30-46a1-9ae1-3f352dff03ab
92
+ - 0d0fe41c-dbb1-4786-a051-b933e601c1ec
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: "{}"
104
- recorded_at: Thu, 02 May 2024 00:36:44 GMT
104
+ recorded_at: Tue, 14 May 2024 15:19:50 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":"users","Key":{"id":{"S":"hguzman10@gmail.com"}}}'
110
+ string: '{"TableName":"fleteo-v2-users","Key":{"id":{"S":"hguzman50@gmail.com"}}}'
111
111
  headers:
112
112
  Accept-Encoding:
113
113
  - ''
@@ -121,15 +121,15 @@ http_interactions:
121
121
  Host:
122
122
  - localhost:8000
123
123
  X-Amz-Date:
124
- - 20240502T003644Z
124
+ - 20240514T151950Z
125
125
  X-Amz-Content-Sha256:
126
- - 7e2248df156bd85d1c08add1aaa7b84ed6041fe96165fb6879ddbb1424663802
126
+ - 5b07a2ed9f61d6478feb52e761428fdcb93c27759f2c71d11f9eeaf0a7c6fd82
127
127
  Authorization:
128
- - AWS4-HMAC-SHA256 Credential=AKIAV3OBKSDM5UO5PK5A/20240502/us-east-1/dynamodb/aws4_request,
128
+ - AWS4-HMAC-SHA256 Credential=key/20240514/us-east-1/dynamodb/aws4_request,
129
129
  SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date;x-amz-target,
130
- Signature=94cc004156fe51a634d7bc47199d168f53887124cadf4eaf91af8970cd7e0751
130
+ Signature=bd941ea9696f34e4dcc1561fb86a14ba54e0c777d4f01b6e3fb207230d779a7b
131
131
  Content-Length:
132
- - '62'
132
+ - '72'
133
133
  Accept:
134
134
  - "*/*"
135
135
  response:
@@ -138,9 +138,9 @@ http_interactions:
138
138
  message: OK
139
139
  headers:
140
140
  Date:
141
- - Thu, 02 May 2024 00:36:44 GMT
141
+ - Tue, 14 May 2024 15:19:50 GMT
142
142
  X-Amzn-Requestid:
143
- - d8e23373-1aee-4727-839e-fed721efdc77
143
+ - '09bba7b8-9c57-43ef-8cb4-47e355d4deca'
144
144
  Content-Type:
145
145
  - application/x-amz-json-1.0
146
146
  X-Amz-Crc32:
@@ -152,5 +152,5 @@ http_interactions:
152
152
  body:
153
153
  encoding: UTF-8
154
154
  string: "{}"
155
- recorded_at: Thu, 02 May 2024 00:36:44 GMT
155
+ recorded_at: Tue, 14 May 2024 15:19:50 GMT
156
156
  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":"authorizations","Key":{"user_id":{"S":"hguzman10@gmail.com"},"service_id":{"S":"1"}}}'
8
+ string: '{"TableName":"fleteo-v2-authorizations","Key":{"user_id":{"S":"hguzman10@gmail.com"},"service_id":{"S":"1"}}}'
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
- - 20240502T001527Z
22
+ - 20240514T151950Z
23
23
  X-Amz-Content-Sha256:
24
- - 904e20d3b7d573308942eb45e345aed8a0d28331d9087eb40a19412554c62258
24
+ - eb02c1b9362e33fb4b2a1792fabf4bfd6df3d9807a178acb0f0b46d62510cf6a
25
25
  Authorization:
26
- - AWS4-HMAC-SHA256 Credential=AKIAV3OBKSDM5UO5PK5A/20240502/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=a27d2463aed9f0c4f86c0db83f3d99d3e15b3482533e4d3c4430fda0de0e1312
28
+ Signature=709a8a42ae4700c3d15488d086eacab8e45982a78e2e71b0693f9b1a709e7009
29
29
  Content-Length:
30
- - '99'
30
+ - '109'
31
31
  Accept:
32
32
  - "*/*"
33
33
  response:
@@ -36,111 +36,9 @@ http_interactions:
36
36
  message: OK
37
37
  headers:
38
38
  Date:
39
- - Thu, 02 May 2024 00:15:27 GMT
39
+ - Tue, 14 May 2024 15:19:50 GMT
40
40
  X-Amzn-Requestid:
41
- - b0ad8800-588e-433b-b314-539bd7598d91
42
- Content-Type:
43
- - application/x-amz-json-1.0
44
- X-Amz-Crc32:
45
- - '2017503589'
46
- Content-Length:
47
- - '71'
48
- Server:
49
- - Jetty(11.0.17)
50
- body:
51
- encoding: UTF-8
52
- string: '{"Item":{"user_id":{"S":"hguzman10@gmail.com"},"service_id":{"S":"1"}}}'
53
- recorded_at: Thu, 02 May 2024 00:15:27 GMT
54
- - request:
55
- method: post
56
- uri: http://localhost:8000/
57
- body:
58
- encoding: UTF-8
59
- string: '{"TableName":"authorizations","Key":{"user_id":{"S":"hguzman10@gmail.com"},"service_id":{"S":"1"}}}'
60
- headers:
61
- Accept-Encoding:
62
- - ''
63
- Content-Type:
64
- - application/x-amz-json-1.0
65
- X-Amz-Target:
66
- - DynamoDB_20120810.DeleteItem
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
- - 20240502T001527Z
74
- X-Amz-Content-Sha256:
75
- - 904e20d3b7d573308942eb45e345aed8a0d28331d9087eb40a19412554c62258
76
- Authorization:
77
- - AWS4-HMAC-SHA256 Credential=AKIAV3OBKSDM5UO5PK5A/20240502/us-east-1/dynamodb/aws4_request,
78
- SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date;x-amz-target,
79
- Signature=8b44cb46b1680b538fe9455591b2a9cc8d28fd93ac35a154afed681e468130fd
80
- Content-Length:
81
- - '99'
82
- Accept:
83
- - "*/*"
84
- response:
85
- status:
86
- code: 200
87
- message: OK
88
- headers:
89
- Date:
90
- - Thu, 02 May 2024 00:15:27 GMT
91
- X-Amzn-Requestid:
92
- - '016797fb-ab5f-4574-88f3-7e826cac42df'
93
- Content-Type:
94
- - application/x-amz-json-1.0
95
- X-Amz-Crc32:
96
- - '2745614147'
97
- Content-Length:
98
- - '2'
99
- Server:
100
- - Jetty(11.0.17)
101
- body:
102
- encoding: UTF-8
103
- string: "{}"
104
- recorded_at: Thu, 02 May 2024 00:15:27 GMT
105
- - request:
106
- method: post
107
- uri: http://localhost:8000/
108
- body:
109
- encoding: UTF-8
110
- string: '{"TableName":"authorizations","Key":{"user_id":{"S":"hguzman10@gmail.com"},"service_id":{"S":"1"}}}'
111
- headers:
112
- Accept-Encoding:
113
- - ''
114
- Content-Type:
115
- - application/x-amz-json-1.0
116
- X-Amz-Target:
117
- - DynamoDB_20120810.GetItem
118
- User-Agent:
119
- - 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
120
- md/3.2.3 cfg/retry-mode#legacy
121
- Host:
122
- - localhost:8000
123
- X-Amz-Date:
124
- - 20240502T001527Z
125
- X-Amz-Content-Sha256:
126
- - 904e20d3b7d573308942eb45e345aed8a0d28331d9087eb40a19412554c62258
127
- Authorization:
128
- - AWS4-HMAC-SHA256 Credential=AKIAV3OBKSDM5UO5PK5A/20240502/us-east-1/dynamodb/aws4_request,
129
- SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date;x-amz-target,
130
- Signature=a27d2463aed9f0c4f86c0db83f3d99d3e15b3482533e4d3c4430fda0de0e1312
131
- Content-Length:
132
- - '99'
133
- Accept:
134
- - "*/*"
135
- response:
136
- status:
137
- code: 200
138
- message: OK
139
- headers:
140
- Date:
141
- - Thu, 02 May 2024 00:15:27 GMT
142
- X-Amzn-Requestid:
143
- - f7ad1c7f-8266-4da1-8355-7200d06d4f97
41
+ - a9e207d6-730e-4905-9683-f5ad89b1afec
144
42
  Content-Type:
145
43
  - application/x-amz-json-1.0
146
44
  X-Amz-Crc32:
@@ -152,5 +50,5 @@ http_interactions:
152
50
  body:
153
51
  encoding: UTF-8
154
52
  string: "{}"
155
- recorded_at: Thu, 02 May 2024 00:15:27 GMT
53
+ recorded_at: Tue, 14 May 2024 15:19:50 GMT
156
54
  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":"users","ConditionExpression":"id <> :s","ExpressionAttributeValues":{":s":{"S":"hguzman10@gmail.com"}},"Item":{"balance":{"N":"100"},"id":{"S":"hguzman10@gmail.com"},"created_at":{"S":"2024-05-01T19:36:43-05:00"},"updated_at":{"S":"2024-05-01T19:36:43-05:00"}}}'
8
+ string: '{"TableName":"fleteo-v2-users","ConditionExpression":"id <> :s","ExpressionAttributeValues":{":s":{"S":"hguzman10@gmail.com"}},"Item":{"balance":{"N":"100"},"id":{"S":"hguzman10@gmail.com"},"created_at":{"S":"2024-05-14T10:16:45-05:00"},"updated_at":{"S":"2024-05-14T10:16:45-05:00"}}}'
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
- - 20240502T003643Z
22
+ - 20240514T151645Z
23
23
  X-Amz-Content-Sha256:
24
- - 6ba894a3f3d7e47c03481928aa642e796e2e8b11c8f7a85324b66918fabe67fb
24
+ - 795a27c3c4e9ccf78d246e539a6546fe0b844861e4a39d50626e56cd06ccbfdf
25
25
  Authorization:
26
- - AWS4-HMAC-SHA256 Credential=AKIAV3OBKSDM5UO5PK5A/20240502/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=ecc9987a544fe53aa846cf53473b4438e6c7ca89b3db1d77cc163d28965c0d34
28
+ Signature=9c84ae81f973c49da0a7da4371c78182198f6d28ce08db82a445e5741660335f
29
29
  Content-Length:
30
- - '275'
30
+ - '285'
31
31
  Accept:
32
32
  - "*/*"
33
33
  response:
@@ -36,9 +36,9 @@ http_interactions:
36
36
  message: Bad Request
37
37
  headers:
38
38
  Date:
39
- - Thu, 02 May 2024 00:36:43 GMT
39
+ - Tue, 14 May 2024 15:16:45 GMT
40
40
  X-Amzn-Requestid:
41
- - abb2b185-4ffa-4b9e-b7b9-73a56fe18b8f
41
+ - d52cb16d-cc7d-4e3b-9f91-dd27850653ff
42
42
  Content-Type:
43
43
  - application/x-amz-json-1.0
44
44
  Content-Length:
@@ -49,13 +49,13 @@ http_interactions:
49
49
  encoding: UTF-8
50
50
  string: '{"__type":"com.amazonaws.dynamodb.v20120810#ConditionalCheckFailedException","Message":"The
51
51
  conditional request failed"}'
52
- recorded_at: Thu, 02 May 2024 00:36:43 GMT
52
+ recorded_at: Tue, 14 May 2024 15:16:45 GMT
53
53
  - request:
54
54
  method: post
55
55
  uri: http://localhost:8000/
56
56
  body:
57
57
  encoding: UTF-8
58
- string: '{"TableName":"users","Key":{"id":{"S":"hguzman10@gmail.com"}}}'
58
+ string: '{"TableName":"fleteo-v2-users","Key":{"id":{"S":"hguzman10@gmail.com"}}}'
59
59
  headers:
60
60
  Accept-Encoding:
61
61
  - ''
@@ -69,15 +69,15 @@ http_interactions:
69
69
  Host:
70
70
  - localhost:8000
71
71
  X-Amz-Date:
72
- - 20240502T003643Z
72
+ - 20240514T151645Z
73
73
  X-Amz-Content-Sha256:
74
- - 7e2248df156bd85d1c08add1aaa7b84ed6041fe96165fb6879ddbb1424663802
74
+ - ab20f394f9f17ab85359c8cef098ff2e93991ca4f4f9402376eaa33ea97d5545
75
75
  Authorization:
76
- - AWS4-HMAC-SHA256 Credential=AKIAV3OBKSDM5UO5PK5A/20240502/us-east-1/dynamodb/aws4_request,
76
+ - AWS4-HMAC-SHA256 Credential=key/20240514/us-east-1/dynamodb/aws4_request,
77
77
  SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date;x-amz-target,
78
- Signature=e61f5c53269131bf5f985bfbe1385615456dcedad7ae5fce0fe1ce0a4e854705
78
+ Signature=f0ce0db1c2ef36c04fe6d6448411151455a679f4d02b44c8aec0bfe5cff7c216
79
79
  Content-Length:
80
- - '62'
80
+ - '72'
81
81
  Accept:
82
82
  - "*/*"
83
83
  response:
@@ -86,19 +86,19 @@ http_interactions:
86
86
  message: OK
87
87
  headers:
88
88
  Date:
89
- - Thu, 02 May 2024 00:36:43 GMT
89
+ - Tue, 14 May 2024 15:16:45 GMT
90
90
  X-Amzn-Requestid:
91
- - 05b8fc5c-d523-4191-bac0-d31621e3857c
91
+ - f49573ff-c158-438e-a210-52ac8bd50f4f
92
92
  Content-Type:
93
93
  - application/x-amz-json-1.0
94
94
  X-Amz-Crc32:
95
- - '1030740054'
95
+ - '3262869781'
96
96
  Content-Length:
97
97
  - '157'
98
98
  Server:
99
99
  - Jetty(11.0.17)
100
100
  body:
101
101
  encoding: UTF-8
102
- string: '{"Item":{"created_at":{"S":"2024-05-01T19:36:43-05:00"},"id":{"S":"hguzman10@gmail.com"},"balance":{"N":"0"},"updated_at":{"S":"2024-05-01T19:36:43-05:00"}}}'
103
- recorded_at: Thu, 02 May 2024 00:36:43 GMT
102
+ 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"}}}'
103
+ recorded_at: Tue, 14 May 2024 15:16:45 GMT
104
104
  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":"users","ConditionExpression":"id <> :s","ExpressionAttributeValues":{":s":{"S":"hguzman10@gmail.com"}},"Item":{"balance":{"N":"0"},"id":{"S":"hguzman10@gmail.com"},"created_at":{"S":"2024-05-01T19:36:43-05:00"},"updated_at":{"S":"2024-05-01T19:36:43-05:00"}}}'
8
+ string: '{"TableName":"fleteo-v2-users","ConditionExpression":"id <> :s","ExpressionAttributeValues":{":s":{"S":"hguzman60@gmail.com"}},"Item":{"balance":{"N":"0"},"id":{"S":"hguzman60@gmail.com"},"created_at":{"S":"2024-05-14T10:18:09-05:00"},"updated_at":{"S":"2024-05-14T10:18:09-05:00"}}}'
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
- - 20240502T003643Z
22
+ - 20240514T151809Z
23
23
  X-Amz-Content-Sha256:
24
- - a6814143d7653f7f2d9abb6d2cf7c7b12ba0b621092b359971c44569d1bc2778
24
+ - c8532d0cba700fe300f94896fa7a2d11f20c2523a88a2be0c5f814f80b5943b2
25
25
  Authorization:
26
- - AWS4-HMAC-SHA256 Credential=AKIAV3OBKSDM5UO5PK5A/20240502/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=28275abed7119af00065965863f46b56a8f8db07e4ac789d86411f1f2c44155c
28
+ Signature=46898352f8a1cf36f91cd9ea16227c6f899803b4be824c316f2d2b98b69fa82c
29
29
  Content-Length:
30
- - '273'
30
+ - '283'
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
- - Thu, 02 May 2024 00:36:43 GMT
39
+ - Tue, 14 May 2024 15:18:09 GMT
40
40
  X-Amzn-Requestid:
41
- - c07e3cbf-e2be-4eb3-afb6-dad85bcdbe3f
41
+ - da9a8a2e-edd9-4fad-9511-97b8c989c11e
42
42
  Content-Type:
43
43
  - application/x-amz-json-1.0
44
44
  X-Amz-Crc32:
@@ -50,5 +50,5 @@ http_interactions:
50
50
  body:
51
51
  encoding: UTF-8
52
52
  string: "{}"
53
- recorded_at: Thu, 02 May 2024 00:36:43 GMT
53
+ recorded_at: Tue, 14 May 2024 15:18:09 GMT
54
54
  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":"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
- - 20240502T003643Z
22
+ - 20240514T151645Z
23
23
  X-Amz-Content-Sha256:
24
- - 7e2248df156bd85d1c08add1aaa7b84ed6041fe96165fb6879ddbb1424663802
24
+ - ab20f394f9f17ab85359c8cef098ff2e93991ca4f4f9402376eaa33ea97d5545
25
25
  Authorization:
26
- - AWS4-HMAC-SHA256 Credential=AKIAV3OBKSDM5UO5PK5A/20240502/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=e61f5c53269131bf5f985bfbe1385615456dcedad7ae5fce0fe1ce0a4e854705
28
+ Signature=f0ce0db1c2ef36c04fe6d6448411151455a679f4d02b44c8aec0bfe5cff7c216
29
29
  Content-Length:
30
- - '62'
30
+ - '72'
31
31
  Accept:
32
32
  - "*/*"
33
33
  response:
@@ -36,27 +36,27 @@ http_interactions:
36
36
  message: OK
37
37
  headers:
38
38
  Date:
39
- - Thu, 02 May 2024 00:36:43 GMT
39
+ - Tue, 14 May 2024 15:16:45 GMT
40
40
  X-Amzn-Requestid:
41
- - ecb90d9f-4d44-400e-82f0-20214b690e4c
41
+ - 1c34bae5-946e-4e5b-a61f-206c059e5921
42
42
  Content-Type:
43
43
  - application/x-amz-json-1.0
44
44
  X-Amz-Crc32:
45
- - '1030740054'
45
+ - '3262869781'
46
46
  Content-Length:
47
47
  - '157'
48
48
  Server:
49
49
  - Jetty(11.0.17)
50
50
  body:
51
51
  encoding: UTF-8
52
- string: '{"Item":{"created_at":{"S":"2024-05-01T19:36:43-05:00"},"id":{"S":"hguzman10@gmail.com"},"balance":{"N":"0"},"updated_at":{"S":"2024-05-01T19:36:43-05:00"}}}'
53
- recorded_at: Thu, 02 May 2024 00:36:43 GMT
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 15:16:45 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":"users","Item":{"balance":{"N":"60"},"created_at":{"S":"2024-05-01T19:36:43-05:00"},"id":{"S":"hguzman10@gmail.com"},"updated_at":{"S":"2024-05-01T19:36:43-05:00"}}}'
59
+ string: '{"TableName":"fleteo-v2-users","Item":{"balance":{"N":"60"},"created_at":{"S":"2024-05-07T14:10:09-05:00"},"id":{"S":"hguzman10@gmail.com"},"updated_at":{"S":"2024-05-14T10:16:45-05:00"}}}'
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
- - 20240502T003643Z
73
+ - 20240514T151645Z
74
74
  X-Amz-Content-Sha256:
75
- - bce2e7f8fe409b9ee303c60086f066bdcd1046f72262b55b295dec463d74e106
75
+ - 820ef9f67a71387dbf612569c2c7fd30e8ce9b7de5db49536fb89c0b8cb1cca7
76
76
  Authorization:
77
- - AWS4-HMAC-SHA256 Credential=AKIAV3OBKSDM5UO5PK5A/20240502/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=66196ff2d65820f4c27935312b8b6a4cbe87288ffceb59025123e77b342f37cf
79
+ Signature=3bbd605cd4ddb6c135fa728b372a2bc8156ee557331948a1ea1a4196bb6c0538
80
80
  Content-Length:
81
- - '178'
81
+ - '188'
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
- - Thu, 02 May 2024 00:36:43 GMT
90
+ - Tue, 14 May 2024 15:16:45 GMT
91
91
  X-Amzn-Requestid:
92
- - 56298a7a-ad76-45f8-855f-883653ec8f06
92
+ - fa1bb818-7866-4953-98e6-b09d4d911f05
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: "{}"
104
- recorded_at: Thu, 02 May 2024 00:36:43 GMT
104
+ recorded_at: Tue, 14 May 2024 15:16:45 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":"users","Key":{"id":{"S":"hguzman10@gmail.com"}}}'
110
+ string: '{"TableName":"fleteo-v2-users","Key":{"id":{"S":"hguzman10@gmail.com"}}}'
111
111
  headers:
112
112
  Accept-Encoding:
113
113
  - ''
@@ -121,15 +121,15 @@ http_interactions:
121
121
  Host:
122
122
  - localhost:8000
123
123
  X-Amz-Date:
124
- - 20240502T003643Z
124
+ - 20240514T151645Z
125
125
  X-Amz-Content-Sha256:
126
- - 7e2248df156bd85d1c08add1aaa7b84ed6041fe96165fb6879ddbb1424663802
126
+ - ab20f394f9f17ab85359c8cef098ff2e93991ca4f4f9402376eaa33ea97d5545
127
127
  Authorization:
128
- - AWS4-HMAC-SHA256 Credential=AKIAV3OBKSDM5UO5PK5A/20240502/us-east-1/dynamodb/aws4_request,
128
+ - AWS4-HMAC-SHA256 Credential=key/20240514/us-east-1/dynamodb/aws4_request,
129
129
  SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date;x-amz-target,
130
- Signature=e61f5c53269131bf5f985bfbe1385615456dcedad7ae5fce0fe1ce0a4e854705
130
+ Signature=f0ce0db1c2ef36c04fe6d6448411151455a679f4d02b44c8aec0bfe5cff7c216
131
131
  Content-Length:
132
- - '62'
132
+ - '72'
133
133
  Accept:
134
134
  - "*/*"
135
135
  response:
@@ -138,19 +138,19 @@ http_interactions:
138
138
  message: OK
139
139
  headers:
140
140
  Date:
141
- - Thu, 02 May 2024 00:36:43 GMT
141
+ - Tue, 14 May 2024 15:16:45 GMT
142
142
  X-Amzn-Requestid:
143
- - 8ca63cc3-80f7-4e9e-9fa1-f891ed851802
143
+ - 21faa3c5-9847-40b2-a07c-efad2fc8d280
144
144
  Content-Type:
145
145
  - application/x-amz-json-1.0
146
146
  X-Amz-Crc32:
147
- - '3547979423'
147
+ - '600100825'
148
148
  Content-Length:
149
149
  - '158'
150
150
  Server:
151
151
  - Jetty(11.0.17)
152
152
  body:
153
153
  encoding: UTF-8
154
- string: '{"Item":{"created_at":{"S":"2024-05-01T19:36:43-05:00"},"id":{"S":"hguzman10@gmail.com"},"balance":{"N":"60"},"updated_at":{"S":"2024-05-01T19:36:43-05:00"}}}'
155
- recorded_at: Thu, 02 May 2024 00:36:43 GMT
154
+ string: '{"Item":{"created_at":{"S":"2024-05-07T14:10:09-05:00"},"id":{"S":"hguzman10@gmail.com"},"balance":{"N":"60"},"updated_at":{"S":"2024-05-14T10:16:45-05:00"}}}'
155
+ recorded_at: Tue, 14 May 2024 15:16:45 GMT
156
156
  recorded_with: VCR 6.2.0