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":"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
|
-
-
|
22
|
+
- 20240514T151627Z
|
23
23
|
X-Amz-Content-Sha256:
|
24
|
-
-
|
24
|
+
- 9896636d21f5592fa181e582b1efe26e6c786a766326d91603b6a97dbb773cf9
|
25
25
|
Authorization:
|
26
|
-
- AWS4-HMAC-SHA256 Credential=
|
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=cc1c5012a4daa032226e3fd40ce152ee7d84e6d4bd0e5ae636ab32e625316f26
|
29
29
|
Content-Length:
|
30
|
-
- '
|
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
|
-
-
|
39
|
+
- Tue, 14 May 2024 15:16:27 GMT
|
40
40
|
X-Amzn-Requestid:
|
41
|
-
-
|
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:
|
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":"
|
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
|
-
-
|
22
|
+
- 20240514T151950Z
|
23
23
|
X-Amz-Content-Sha256:
|
24
|
-
-
|
24
|
+
- 5b07a2ed9f61d6478feb52e761428fdcb93c27759f2c71d11f9eeaf0a7c6fd82
|
25
25
|
Authorization:
|
26
|
-
- AWS4-HMAC-SHA256 Credential=
|
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=bd941ea9696f34e4dcc1561fb86a14ba54e0c777d4f01b6e3fb207230d779a7b
|
29
29
|
Content-Length:
|
30
|
-
- '
|
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
|
-
-
|
39
|
+
- Tue, 14 May 2024 15:19:50 GMT
|
40
40
|
X-Amzn-Requestid:
|
41
|
-
-
|
41
|
+
- e0b872c3-3196-45c5-af09-f8d295d2d9e6
|
42
42
|
Content-Type:
|
43
43
|
- application/x-amz-json-1.0
|
44
44
|
X-Amz-Crc32:
|
45
|
-
- '
|
45
|
+
- '3601362903'
|
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-
|
53
|
-
recorded_at:
|
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":"
|
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
|
-
-
|
73
|
+
- 20240514T151950Z
|
74
74
|
X-Amz-Content-Sha256:
|
75
|
-
-
|
75
|
+
- 5b07a2ed9f61d6478feb52e761428fdcb93c27759f2c71d11f9eeaf0a7c6fd82
|
76
76
|
Authorization:
|
77
|
-
- AWS4-HMAC-SHA256 Credential=
|
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=7847b00fa848801fc0b8744022308336c5bab98056d42c7170798ce95ada30bc
|
80
80
|
Content-Length:
|
81
|
-
- '
|
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
|
-
-
|
90
|
+
- Tue, 14 May 2024 15:19:50 GMT
|
91
91
|
X-Amzn-Requestid:
|
92
|
-
-
|
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:
|
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":"
|
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
|
-
-
|
124
|
+
- 20240514T151950Z
|
125
125
|
X-Amz-Content-Sha256:
|
126
|
-
-
|
126
|
+
- 5b07a2ed9f61d6478feb52e761428fdcb93c27759f2c71d11f9eeaf0a7c6fd82
|
127
127
|
Authorization:
|
128
|
-
- AWS4-HMAC-SHA256 Credential=
|
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=
|
130
|
+
Signature=bd941ea9696f34e4dcc1561fb86a14ba54e0c777d4f01b6e3fb207230d779a7b
|
131
131
|
Content-Length:
|
132
|
-
- '
|
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
|
-
-
|
141
|
+
- Tue, 14 May 2024 15:19:50 GMT
|
142
142
|
X-Amzn-Requestid:
|
143
|
-
-
|
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:
|
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
|
-
-
|
22
|
+
- 20240514T151950Z
|
23
23
|
X-Amz-Content-Sha256:
|
24
|
-
-
|
24
|
+
- eb02c1b9362e33fb4b2a1792fabf4bfd6df3d9807a178acb0f0b46d62510cf6a
|
25
25
|
Authorization:
|
26
|
-
- AWS4-HMAC-SHA256 Credential=
|
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=709a8a42ae4700c3d15488d086eacab8e45982a78e2e71b0693f9b1a709e7009
|
29
29
|
Content-Length:
|
30
|
-
- '
|
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
|
-
-
|
39
|
+
- Tue, 14 May 2024 15:19:50 GMT
|
40
40
|
X-Amzn-Requestid:
|
41
|
-
-
|
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:
|
53
|
+
recorded_at: Tue, 14 May 2024 15:19:50 GMT
|
156
54
|
recorded_with: VCR 6.2.0
|
data/spec/fixtures/vcr_cassettes/DynamodbRecord_Persistence/does_not_overwrite_existing_record.yml
CHANGED
@@ -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-
|
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
|
-
-
|
22
|
+
- 20240514T151645Z
|
23
23
|
X-Amz-Content-Sha256:
|
24
|
-
-
|
24
|
+
- 795a27c3c4e9ccf78d246e539a6546fe0b844861e4a39d50626e56cd06ccbfdf
|
25
25
|
Authorization:
|
26
|
-
- AWS4-HMAC-SHA256 Credential=
|
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=9c84ae81f973c49da0a7da4371c78182198f6d28ce08db82a445e5741660335f
|
29
29
|
Content-Length:
|
30
|
-
- '
|
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
|
-
-
|
39
|
+
- Tue, 14 May 2024 15:16:45 GMT
|
40
40
|
X-Amzn-Requestid:
|
41
|
-
-
|
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:
|
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
|
-
-
|
72
|
+
- 20240514T151645Z
|
73
73
|
X-Amz-Content-Sha256:
|
74
|
-
-
|
74
|
+
- ab20f394f9f17ab85359c8cef098ff2e93991ca4f4f9402376eaa33ea97d5545
|
75
75
|
Authorization:
|
76
|
-
- AWS4-HMAC-SHA256 Credential=
|
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=
|
78
|
+
Signature=f0ce0db1c2ef36c04fe6d6448411151455a679f4d02b44c8aec0bfe5cff7c216
|
79
79
|
Content-Length:
|
80
|
-
- '
|
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
|
-
-
|
89
|
+
- Tue, 14 May 2024 15:16:45 GMT
|
90
90
|
X-Amzn-Requestid:
|
91
|
-
-
|
91
|
+
- f49573ff-c158-438e-a210-52ac8bd50f4f
|
92
92
|
Content-Type:
|
93
93
|
- application/x-amz-json-1.0
|
94
94
|
X-Amz-Crc32:
|
95
|
-
- '
|
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-
|
103
|
-
recorded_at:
|
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":"
|
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
|
-
-
|
22
|
+
- 20240514T151809Z
|
23
23
|
X-Amz-Content-Sha256:
|
24
|
-
-
|
24
|
+
- c8532d0cba700fe300f94896fa7a2d11f20c2523a88a2be0c5f814f80b5943b2
|
25
25
|
Authorization:
|
26
|
-
- AWS4-HMAC-SHA256 Credential=
|
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=46898352f8a1cf36f91cd9ea16227c6f899803b4be824c316f2d2b98b69fa82c
|
29
29
|
Content-Length:
|
30
|
-
- '
|
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
|
-
-
|
39
|
+
- Tue, 14 May 2024 15:18:09 GMT
|
40
40
|
X-Amzn-Requestid:
|
41
|
-
-
|
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:
|
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
|
-
-
|
22
|
+
- 20240514T151645Z
|
23
23
|
X-Amz-Content-Sha256:
|
24
|
-
-
|
24
|
+
- ab20f394f9f17ab85359c8cef098ff2e93991ca4f4f9402376eaa33ea97d5545
|
25
25
|
Authorization:
|
26
|
-
- AWS4-HMAC-SHA256 Credential=
|
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=f0ce0db1c2ef36c04fe6d6448411151455a679f4d02b44c8aec0bfe5cff7c216
|
29
29
|
Content-Length:
|
30
|
-
- '
|
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
|
-
-
|
39
|
+
- Tue, 14 May 2024 15:16:45 GMT
|
40
40
|
X-Amzn-Requestid:
|
41
|
-
-
|
41
|
+
- 1c34bae5-946e-4e5b-a61f-206c059e5921
|
42
42
|
Content-Type:
|
43
43
|
- application/x-amz-json-1.0
|
44
44
|
X-Amz-Crc32:
|
45
|
-
- '
|
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-
|
53
|
-
recorded_at:
|
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-
|
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
|
-
-
|
73
|
+
- 20240514T151645Z
|
74
74
|
X-Amz-Content-Sha256:
|
75
|
-
-
|
75
|
+
- 820ef9f67a71387dbf612569c2c7fd30e8ce9b7de5db49536fb89c0b8cb1cca7
|
76
76
|
Authorization:
|
77
|
-
- AWS4-HMAC-SHA256 Credential=
|
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=3bbd605cd4ddb6c135fa728b372a2bc8156ee557331948a1ea1a4196bb6c0538
|
80
80
|
Content-Length:
|
81
|
-
- '
|
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
|
-
-
|
90
|
+
- Tue, 14 May 2024 15:16:45 GMT
|
91
91
|
X-Amzn-Requestid:
|
92
|
-
-
|
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:
|
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
|
-
-
|
124
|
+
- 20240514T151645Z
|
125
125
|
X-Amz-Content-Sha256:
|
126
|
-
-
|
126
|
+
- ab20f394f9f17ab85359c8cef098ff2e93991ca4f4f9402376eaa33ea97d5545
|
127
127
|
Authorization:
|
128
|
-
- AWS4-HMAC-SHA256 Credential=
|
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=
|
130
|
+
Signature=f0ce0db1c2ef36c04fe6d6448411151455a679f4d02b44c8aec0bfe5cff7c216
|
131
131
|
Content-Length:
|
132
|
-
- '
|
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
|
-
-
|
141
|
+
- Tue, 14 May 2024 15:16:45 GMT
|
142
142
|
X-Amzn-Requestid:
|
143
|
-
-
|
143
|
+
- 21faa3c5-9847-40b2-a07c-efad2fc8d280
|
144
144
|
Content-Type:
|
145
145
|
- application/x-amz-json-1.0
|
146
146
|
X-Amz-Crc32:
|
147
|
-
- '
|
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-
|
155
|
-
recorded_at:
|
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
|