toccatore 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -3
- data/lib/toccatore/queue.rb +1 -1
- data/lib/toccatore/usage_update.rb +9 -15
- data/lib/toccatore/version.rb +1 -1
- data/spec/cli_spec.rb +4 -4
- data/spec/datacite_related_spec.rb +1 -1
- data/spec/fixtures/usage_event_fail.json +1 -1
- data/spec/fixtures/usage_events.json +4 -4
- data/spec/fixtures/vcr_cassettes/Toccatore_CLI/datacite_related/should_query_by_related_identifier.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Toccatore_CLI/usage_update/no_reports_in_the_queue/should_succeed_with_no_works.yml +70 -116
- data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/get_data/when_there_are_messages/should_return_the_data_for_one_message.yml +4 -4
- data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/get_data/when_there_is_ONE_message/should_return_the_data_for_one_message.yml +4 -4
- data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/get_message/should_return_no_meessage_when_the_queue_is_empty.yml +23 -23
- data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/get_message/should_return_one_message_when_there_are_multiple_messages.yml +23 -23
- data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/get_total/when_is_working_with_AWS.yml +44 -44
- data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/push_data/should_fail_if_format_of_the_event_is_wrong.yml +27 -27
- data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/push_data/should_work_with_DataCite_Event_Data_2.yml +493 -0
- data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/queue_url/should_return_always_correct_queue_url.yml +11 -11
- data/spec/queque_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -1
- data/spec/usage_update_spec.rb +6 -24
- metadata +4 -4
- data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/queue_url/should_fail_if_the_queue_doesn_exist.yml +0 -49
@@ -17,7 +17,7 @@ http_interactions:
|
|
17
17
|
message: ''
|
18
18
|
headers:
|
19
19
|
Date:
|
20
|
-
-
|
20
|
+
- Mon, 21 May 2018 11:38:04 GMT
|
21
21
|
Content-Type:
|
22
22
|
- application/json; charset=utf-8
|
23
23
|
Connection:
|
@@ -33,9 +33,9 @@ http_interactions:
|
|
33
33
|
Etag:
|
34
34
|
- W/"4f2411eb13af4c17be452f00b66b9bc8"
|
35
35
|
X-Runtime:
|
36
|
-
- '0.
|
36
|
+
- '0.005822'
|
37
37
|
X-Request-Id:
|
38
|
-
-
|
38
|
+
- 70ce6a8b-4dde-4429-941f-1223c8fa02ba
|
39
39
|
X-Powered-By:
|
40
40
|
- Phusion Passenger 5.3.1
|
41
41
|
Server:
|
@@ -48,5 +48,5 @@ http_interactions:
|
|
48
48
|
Network","dataset-id":[{"type":"DOI","value":"10.6073/pasta/aec48ca27decb1fd2c2f454f1c5f88e4"}],"performance":[{"period":{"end-date":"2018-03-31","begin-date":"2018-03-01"},"instance":[{"count":7,"country":"US","metric-type":"Total-Dataset-Investigations","access-method":"Regular"}]}],"publisher-id":"urn:node:LTER","dataset-title":"Phenologies
|
49
49
|
of the Tabonuco Forest trees and shrubs.","publication-dates":"2010-03-22"}]}}'
|
50
50
|
http_version:
|
51
|
-
recorded_at:
|
51
|
+
recorded_at: Mon, 21 May 2018 11:38:04 GMT
|
52
52
|
recorded_with: VCR 3.0.3
|
@@ -17,7 +17,7 @@ http_interactions:
|
|
17
17
|
message: ''
|
18
18
|
headers:
|
19
19
|
Date:
|
20
|
-
-
|
20
|
+
- Mon, 21 May 2018 11:38:05 GMT
|
21
21
|
Content-Type:
|
22
22
|
- application/json; charset=utf-8
|
23
23
|
Connection:
|
@@ -33,9 +33,9 @@ http_interactions:
|
|
33
33
|
Etag:
|
34
34
|
- W/"4f2411eb13af4c17be452f00b66b9bc8"
|
35
35
|
X-Runtime:
|
36
|
-
- '0.
|
36
|
+
- '0.005291'
|
37
37
|
X-Request-Id:
|
38
|
-
-
|
38
|
+
- e9f9a6d3-4a80-4389-abfa-c3d8221b5573
|
39
39
|
X-Powered-By:
|
40
40
|
- Phusion Passenger 5.3.1
|
41
41
|
Server:
|
@@ -48,5 +48,5 @@ http_interactions:
|
|
48
48
|
Network","dataset-id":[{"type":"DOI","value":"10.6073/pasta/aec48ca27decb1fd2c2f454f1c5f88e4"}],"performance":[{"period":{"end-date":"2018-03-31","begin-date":"2018-03-01"},"instance":[{"count":7,"country":"US","metric-type":"Total-Dataset-Investigations","access-method":"Regular"}]}],"publisher-id":"urn:node:LTER","dataset-title":"Phenologies
|
49
49
|
of the Tabonuco Forest trees and shrubs.","publication-dates":"2010-03-22"}]}}'
|
50
50
|
http_version:
|
51
|
-
recorded_at:
|
51
|
+
recorded_at: Mon, 21 May 2018 11:38:05 GMT
|
52
52
|
recorded_with: VCR 3.0.3
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://sqs.eu-west-1.amazonaws.com/
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: Action=GetQueueUrl&QueueName=
|
8
|
+
string: Action=GetQueueUrl&QueueName=test_usage&Version=2012-11-05
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/x-www-form-urlencoded; charset=utf-8
|
@@ -14,14 +14,14 @@ http_interactions:
|
|
14
14
|
User-Agent:
|
15
15
|
- aws-sdk-ruby3/3.20.2 ruby/2.3.3 x86_64-darwin15 aws-sdk-sqs/1.3.0
|
16
16
|
X-Amz-Date:
|
17
|
-
-
|
17
|
+
- 20180521T113746Z
|
18
18
|
X-Amz-Content-Sha256:
|
19
|
-
-
|
19
|
+
- 5761efd13dd0ed81182207171d3660628968189941431d6044920ef8fe7b1160
|
20
20
|
Authorization:
|
21
|
-
- AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/
|
22
|
-
SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=
|
21
|
+
- AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/20180521/eu-west-1/sqs/aws4_request,
|
22
|
+
SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=d69543c72e1cf353287499a39c1c391a4d2a31b3c356448df6597820cb23549d
|
23
23
|
Content-Length:
|
24
|
-
- '
|
24
|
+
- '58'
|
25
25
|
Accept:
|
26
26
|
- "*/*"
|
27
27
|
response:
|
@@ -32,26 +32,26 @@ http_interactions:
|
|
32
32
|
Server:
|
33
33
|
- Server
|
34
34
|
Date:
|
35
|
-
-
|
35
|
+
- Mon, 21 May 2018 11:37:46 GMT
|
36
36
|
Content-Type:
|
37
37
|
- text/xml
|
38
38
|
Content-Length:
|
39
|
-
- '
|
39
|
+
- '330'
|
40
40
|
Connection:
|
41
41
|
- keep-alive
|
42
42
|
X-Amzn-Requestid:
|
43
|
-
-
|
43
|
+
- f8585bd5-70bc-51b1-8489-08a9c176d6ac
|
44
44
|
body:
|
45
45
|
encoding: UTF-8
|
46
|
-
string: <?xml version="1.0"?><GetQueueUrlResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><GetQueueUrlResult><QueueUrl>https://sqs.eu-west-1.amazonaws.com/404017989009/
|
46
|
+
string: <?xml version="1.0"?><GetQueueUrlResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><GetQueueUrlResult><QueueUrl>https://sqs.eu-west-1.amazonaws.com/404017989009/test_usage</QueueUrl></GetQueueUrlResult><ResponseMetadata><RequestId>f8585bd5-70bc-51b1-8489-08a9c176d6ac</RequestId></ResponseMetadata></GetQueueUrlResponse>
|
47
47
|
http_version:
|
48
|
-
recorded_at:
|
48
|
+
recorded_at: Mon, 21 May 2018 11:37:46 GMT
|
49
49
|
- request:
|
50
50
|
method: post
|
51
|
-
uri: https://sqs.eu-west-1.amazonaws.com/404017989009/
|
51
|
+
uri: https://sqs.eu-west-1.amazonaws.com/404017989009/test_usage
|
52
52
|
body:
|
53
53
|
encoding: UTF-8
|
54
|
-
string: Action=ReceiveMessage&MaxNumberOfMessages=1&QueueUrl=https%3A%2F%2Fsqs.eu-west-1.amazonaws.com%2F404017989009%
|
54
|
+
string: Action=ReceiveMessage&MaxNumberOfMessages=1&QueueUrl=https%3A%2F%2Fsqs.eu-west-1.amazonaws.com%2F404017989009%2Ftest_usage&Version=2012-11-05&WaitTimeSeconds=1
|
55
55
|
headers:
|
56
56
|
Content-Type:
|
57
57
|
- application/x-www-form-urlencoded; charset=utf-8
|
@@ -60,14 +60,14 @@ http_interactions:
|
|
60
60
|
User-Agent:
|
61
61
|
- aws-sdk-ruby3/3.20.2 ruby/2.3.3 x86_64-darwin15 aws-sdk-sqs/1.3.0
|
62
62
|
X-Amz-Date:
|
63
|
-
-
|
63
|
+
- 20180521T113746Z
|
64
64
|
X-Amz-Content-Sha256:
|
65
|
-
-
|
65
|
+
- b7f76556fe5b5efa85dad3a27ea532b3b8e01ad962d40f74c728489bf8a4b2f7
|
66
66
|
Authorization:
|
67
|
-
- AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/
|
68
|
-
SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=
|
67
|
+
- AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/20180521/eu-west-1/sqs/aws4_request,
|
68
|
+
SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=703ba593136ef78f5d4c16aaeab07bb19939b1f77653805e5658759347ef6559
|
69
69
|
Content-Length:
|
70
|
-
- '
|
70
|
+
- '159'
|
71
71
|
Accept:
|
72
72
|
- "*/*"
|
73
73
|
response:
|
@@ -78,18 +78,18 @@ http_interactions:
|
|
78
78
|
Server:
|
79
79
|
- Server
|
80
80
|
Date:
|
81
|
-
-
|
81
|
+
- Mon, 21 May 2018 11:37:47 GMT
|
82
82
|
Content-Type:
|
83
83
|
- text/xml
|
84
84
|
Content-Length:
|
85
|
-
- '
|
85
|
+
- '911'
|
86
86
|
Connection:
|
87
87
|
- keep-alive
|
88
88
|
X-Amzn-Requestid:
|
89
|
-
-
|
89
|
+
- 03a31193-d59b-5949-b990-42ef64506610
|
90
90
|
body:
|
91
91
|
encoding: UTF-8
|
92
|
-
string: <?xml version="1.0"?><ReceiveMessageResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><ReceiveMessageResult
|
92
|
+
string: <?xml version="1.0"?><ReceiveMessageResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><ReceiveMessageResult><Message><MessageId>50e97ed5-9e47-4851-847a-e61ce3c4caf5</MessageId><ReceiptHandle>AQEB7cu28B9RwEIe2mHMn/2Gy520BKEV4i1hm9zqHgpsjrffjYP+ccdfcwkkqsUOD4O26tIa2rRxXl3RwXorae8RWONCLmbPBNflgtn2J0OQBEWJL8rNH4oleq9bySb5j+OzNQy3P+LIOkTveQs1adhIY5X++aSEd9NQQHq3qDnp+XL1Lp1P915yE+OdISBmgaqaLktrS8Py29enbSq+MB2FYyp5ydtVUEwriCgLEM1cC96UtWEUvakiSIUpaNOpWX4YMpH6oVBULSQQ52qLTYvDela0M+0CXp/GmaD4vc5jPj6DqFdp9jqx250lTH9Ud48tf4v3omkkEI3bE9D4pjz+3oOnGw0xGSnNes0FJ4cMI5SCIr9tlSCs2RVNQYc3GMGj</ReceiptHandle><MD5OfBody>3edf62092579c1b249b5f43113fd1670</MD5OfBody><Body>{"report_id":"https://metrics.datacite.org/reports/2018-5-Dash"}</Body></Message></ReceiveMessageResult><ResponseMetadata><RequestId>03a31193-d59b-5949-b990-42ef64506610</RequestId></ResponseMetadata></ReceiveMessageResponse>
|
93
93
|
http_version:
|
94
|
-
recorded_at:
|
94
|
+
recorded_at: Mon, 21 May 2018 11:37:47 GMT
|
95
95
|
recorded_with: VCR 3.0.3
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://sqs.eu-west-1.amazonaws.com/
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: Action=GetQueueUrl&QueueName=
|
8
|
+
string: Action=GetQueueUrl&QueueName=test_usage&Version=2012-11-05
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/x-www-form-urlencoded; charset=utf-8
|
@@ -14,14 +14,14 @@ http_interactions:
|
|
14
14
|
User-Agent:
|
15
15
|
- aws-sdk-ruby3/3.20.2 ruby/2.3.3 x86_64-darwin15 aws-sdk-sqs/1.3.0
|
16
16
|
X-Amz-Date:
|
17
|
-
-
|
17
|
+
- 20180521T113746Z
|
18
18
|
X-Amz-Content-Sha256:
|
19
|
-
-
|
19
|
+
- 5761efd13dd0ed81182207171d3660628968189941431d6044920ef8fe7b1160
|
20
20
|
Authorization:
|
21
|
-
- AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/
|
22
|
-
SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=
|
21
|
+
- AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/20180521/eu-west-1/sqs/aws4_request,
|
22
|
+
SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=d69543c72e1cf353287499a39c1c391a4d2a31b3c356448df6597820cb23549d
|
23
23
|
Content-Length:
|
24
|
-
- '
|
24
|
+
- '58'
|
25
25
|
Accept:
|
26
26
|
- "*/*"
|
27
27
|
response:
|
@@ -32,26 +32,26 @@ http_interactions:
|
|
32
32
|
Server:
|
33
33
|
- Server
|
34
34
|
Date:
|
35
|
-
-
|
35
|
+
- Mon, 21 May 2018 11:37:46 GMT
|
36
36
|
Content-Type:
|
37
37
|
- text/xml
|
38
38
|
Content-Length:
|
39
|
-
- '
|
39
|
+
- '330'
|
40
40
|
Connection:
|
41
41
|
- keep-alive
|
42
42
|
X-Amzn-Requestid:
|
43
|
-
-
|
43
|
+
- 37d97f87-ae49-53aa-bf14-2cfb1f83978a
|
44
44
|
body:
|
45
45
|
encoding: UTF-8
|
46
|
-
string: <?xml version="1.0"?><GetQueueUrlResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><GetQueueUrlResult><QueueUrl>https://sqs.eu-west-1.amazonaws.com/404017989009/
|
46
|
+
string: <?xml version="1.0"?><GetQueueUrlResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><GetQueueUrlResult><QueueUrl>https://sqs.eu-west-1.amazonaws.com/404017989009/test_usage</QueueUrl></GetQueueUrlResult><ResponseMetadata><RequestId>37d97f87-ae49-53aa-bf14-2cfb1f83978a</RequestId></ResponseMetadata></GetQueueUrlResponse>
|
47
47
|
http_version:
|
48
|
-
recorded_at:
|
48
|
+
recorded_at: Mon, 21 May 2018 11:37:46 GMT
|
49
49
|
- request:
|
50
50
|
method: post
|
51
|
-
uri: https://sqs.eu-west-1.amazonaws.com/404017989009/
|
51
|
+
uri: https://sqs.eu-west-1.amazonaws.com/404017989009/test_usage
|
52
52
|
body:
|
53
53
|
encoding: UTF-8
|
54
|
-
string: Action=ReceiveMessage&MaxNumberOfMessages=1&QueueUrl=https%3A%2F%2Fsqs.eu-west-1.amazonaws.com%2F404017989009%
|
54
|
+
string: Action=ReceiveMessage&MaxNumberOfMessages=1&QueueUrl=https%3A%2F%2Fsqs.eu-west-1.amazonaws.com%2F404017989009%2Ftest_usage&Version=2012-11-05&WaitTimeSeconds=1
|
55
55
|
headers:
|
56
56
|
Content-Type:
|
57
57
|
- application/x-www-form-urlencoded; charset=utf-8
|
@@ -60,14 +60,14 @@ http_interactions:
|
|
60
60
|
User-Agent:
|
61
61
|
- aws-sdk-ruby3/3.20.2 ruby/2.3.3 x86_64-darwin15 aws-sdk-sqs/1.3.0
|
62
62
|
X-Amz-Date:
|
63
|
-
-
|
63
|
+
- 20180521T113746Z
|
64
64
|
X-Amz-Content-Sha256:
|
65
|
-
-
|
65
|
+
- b7f76556fe5b5efa85dad3a27ea532b3b8e01ad962d40f74c728489bf8a4b2f7
|
66
66
|
Authorization:
|
67
|
-
- AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/
|
68
|
-
SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=
|
67
|
+
- AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/20180521/eu-west-1/sqs/aws4_request,
|
68
|
+
SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=703ba593136ef78f5d4c16aaeab07bb19939b1f77653805e5658759347ef6559
|
69
69
|
Content-Length:
|
70
|
-
- '
|
70
|
+
- '159'
|
71
71
|
Accept:
|
72
72
|
- "*/*"
|
73
73
|
response:
|
@@ -78,18 +78,18 @@ http_interactions:
|
|
78
78
|
Server:
|
79
79
|
- Server
|
80
80
|
Date:
|
81
|
-
-
|
81
|
+
- Mon, 21 May 2018 11:37:46 GMT
|
82
82
|
Content-Type:
|
83
83
|
- text/xml
|
84
84
|
Content-Length:
|
85
|
-
- '
|
85
|
+
- '911'
|
86
86
|
Connection:
|
87
87
|
- keep-alive
|
88
88
|
X-Amzn-Requestid:
|
89
|
-
-
|
89
|
+
- e9a6ab48-5e5a-5724-b6ba-f834ef904fc4
|
90
90
|
body:
|
91
91
|
encoding: UTF-8
|
92
|
-
string: <?xml version="1.0"?><ReceiveMessageResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><ReceiveMessageResult
|
92
|
+
string: <?xml version="1.0"?><ReceiveMessageResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><ReceiveMessageResult><Message><MessageId>ab960426-b5b4-4d95-8dff-9460134bb4dc</MessageId><ReceiptHandle>AQEB1phyOLqGiMzwTw9TsZGEGIlm08w7LauNhSex1o1mPCge7WkspueKM+1h4ISOufekFAPXonJg1/K4vKpYjmamZWWQlD7MNE2zWMWsa4Ac1kndlHfOz3UmxDuzWOJARZV1+RBDiEr9QBTB9svKs94XnuwVX5MnRDWvFqRSl590Msczr1k+rfJC/HkGzdp/RD/jChtz3ljC+FWELKnbneXZD9HhdWhyV5QE+wRh4VxMEQh4z/l7LPd0EMsWE4tjenBzTqTzwSesLU1xxcddRhz9eBENvq7oSfwN7p81uvQCgZE+2poGN1R+cRHxVlNJ++86bnuBAh44I/E1rHS+LMvDu3fPZGJIkXZeBuLtVpO8CZtkFZL5fWJJy7fox2olHhZK</ReceiptHandle><MD5OfBody>3edf62092579c1b249b5f43113fd1670</MD5OfBody><Body>{"report_id":"https://metrics.datacite.org/reports/2018-5-Dash"}</Body></Message></ReceiveMessageResult><ResponseMetadata><RequestId>e9a6ab48-5e5a-5724-b6ba-f834ef904fc4</RequestId></ResponseMetadata></ReceiveMessageResponse>
|
93
93
|
http_version:
|
94
|
-
recorded_at:
|
94
|
+
recorded_at: Mon, 21 May 2018 11:37:46 GMT
|
95
95
|
recorded_with: VCR 3.0.3
|
data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/get_total/when_is_working_with_AWS.yml
CHANGED
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://sqs.eu-west-1.amazonaws.com/
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: Action=GetQueueUrl&QueueName=
|
8
|
+
string: Action=GetQueueUrl&QueueName=test_usage&Version=2012-11-05
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/x-www-form-urlencoded; charset=utf-8
|
@@ -14,14 +14,14 @@ http_interactions:
|
|
14
14
|
User-Agent:
|
15
15
|
- aws-sdk-ruby3/3.20.2 ruby/2.3.3 x86_64-darwin15 aws-sdk-sqs/1.3.0
|
16
16
|
X-Amz-Date:
|
17
|
-
-
|
17
|
+
- 20180521T113747Z
|
18
18
|
X-Amz-Content-Sha256:
|
19
|
-
-
|
19
|
+
- 5761efd13dd0ed81182207171d3660628968189941431d6044920ef8fe7b1160
|
20
20
|
Authorization:
|
21
|
-
- AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/
|
22
|
-
SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=
|
21
|
+
- AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/20180521/eu-west-1/sqs/aws4_request,
|
22
|
+
SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=15073cca6afc70617cf471227794867159a99f819c50f7fec1f3d4f9f41c7b0f
|
23
23
|
Content-Length:
|
24
|
-
- '
|
24
|
+
- '58'
|
25
25
|
Accept:
|
26
26
|
- "*/*"
|
27
27
|
response:
|
@@ -32,26 +32,26 @@ http_interactions:
|
|
32
32
|
Server:
|
33
33
|
- Server
|
34
34
|
Date:
|
35
|
-
-
|
35
|
+
- Mon, 21 May 2018 11:37:47 GMT
|
36
36
|
Content-Type:
|
37
37
|
- text/xml
|
38
38
|
Content-Length:
|
39
|
-
- '
|
39
|
+
- '330'
|
40
40
|
Connection:
|
41
41
|
- keep-alive
|
42
42
|
X-Amzn-Requestid:
|
43
|
-
-
|
43
|
+
- 81c54488-250f-5453-8112-17f494c4e929
|
44
44
|
body:
|
45
45
|
encoding: UTF-8
|
46
|
-
string: <?xml version="1.0"?><GetQueueUrlResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><GetQueueUrlResult><QueueUrl>https://sqs.eu-west-1.amazonaws.com/404017989009/
|
46
|
+
string: <?xml version="1.0"?><GetQueueUrlResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><GetQueueUrlResult><QueueUrl>https://sqs.eu-west-1.amazonaws.com/404017989009/test_usage</QueueUrl></GetQueueUrlResult><ResponseMetadata><RequestId>81c54488-250f-5453-8112-17f494c4e929</RequestId></ResponseMetadata></GetQueueUrlResponse>
|
47
47
|
http_version:
|
48
|
-
recorded_at:
|
48
|
+
recorded_at: Mon, 21 May 2018 11:37:47 GMT
|
49
49
|
- request:
|
50
50
|
method: post
|
51
|
-
uri: https://sqs.eu-west-1.amazonaws.com/404017989009/
|
51
|
+
uri: https://sqs.eu-west-1.amazonaws.com/404017989009/test_usage
|
52
52
|
body:
|
53
53
|
encoding: UTF-8
|
54
|
-
string: Action=GetQueueAttributes&AttributeName.1=ApproximateNumberOfMessages&AttributeName.2=ApproximateNumberOfMessagesNotVisible&QueueUrl=https%3A%2F%2Fsqs.eu-west-1.amazonaws.com%2F404017989009%
|
54
|
+
string: Action=GetQueueAttributes&AttributeName.1=ApproximateNumberOfMessages&AttributeName.2=ApproximateNumberOfMessagesNotVisible&QueueUrl=https%3A%2F%2Fsqs.eu-west-1.amazonaws.com%2F404017989009%2Ftest_usage&Version=2012-11-05
|
55
55
|
headers:
|
56
56
|
Content-Type:
|
57
57
|
- application/x-www-form-urlencoded; charset=utf-8
|
@@ -60,14 +60,14 @@ http_interactions:
|
|
60
60
|
User-Agent:
|
61
61
|
- aws-sdk-ruby3/3.20.2 ruby/2.3.3 x86_64-darwin15 aws-sdk-sqs/1.3.0
|
62
62
|
X-Amz-Date:
|
63
|
-
-
|
63
|
+
- 20180521T113747Z
|
64
64
|
X-Amz-Content-Sha256:
|
65
|
-
-
|
65
|
+
- 4fa1f9790ab8d8b778fc048ef890ef00e82c1fd4658cd21964eff9eb5dc9426d
|
66
66
|
Authorization:
|
67
|
-
- AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/
|
68
|
-
SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=
|
67
|
+
- AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/20180521/eu-west-1/sqs/aws4_request,
|
68
|
+
SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=7dd622d72718008057cd3ceabba8b6c038f23d239b778286e9874763be6c1e24
|
69
69
|
Content-Length:
|
70
|
-
- '
|
70
|
+
- '221'
|
71
71
|
Accept:
|
72
72
|
- "*/*"
|
73
73
|
response:
|
@@ -78,7 +78,7 @@ http_interactions:
|
|
78
78
|
Server:
|
79
79
|
- Server
|
80
80
|
Date:
|
81
|
-
-
|
81
|
+
- Mon, 21 May 2018 11:37:47 GMT
|
82
82
|
Content-Type:
|
83
83
|
- text/xml
|
84
84
|
Content-Length:
|
@@ -86,18 +86,18 @@ http_interactions:
|
|
86
86
|
Connection:
|
87
87
|
- keep-alive
|
88
88
|
X-Amzn-Requestid:
|
89
|
-
-
|
89
|
+
- f3a8ea70-ad36-5e14-aee6-b90c1cfdde68
|
90
90
|
body:
|
91
91
|
encoding: UTF-8
|
92
|
-
string: <?xml version="1.0"?><GetQueueAttributesResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><GetQueueAttributesResult><Attribute><Name>ApproximateNumberOfMessages</Name><Value>0</Value></Attribute><Attribute><Name>ApproximateNumberOfMessagesNotVisible</Name><Value>
|
92
|
+
string: <?xml version="1.0"?><GetQueueAttributesResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><GetQueueAttributesResult><Attribute><Name>ApproximateNumberOfMessages</Name><Value>0</Value></Attribute><Attribute><Name>ApproximateNumberOfMessagesNotVisible</Name><Value>2</Value></Attribute></GetQueueAttributesResult><ResponseMetadata><RequestId>f3a8ea70-ad36-5e14-aee6-b90c1cfdde68</RequestId></ResponseMetadata></GetQueueAttributesResponse>
|
93
93
|
http_version:
|
94
|
-
recorded_at:
|
94
|
+
recorded_at: Mon, 21 May 2018 11:37:47 GMT
|
95
95
|
- request:
|
96
96
|
method: post
|
97
97
|
uri: https://sqs.eu-west-1.amazonaws.com/
|
98
98
|
body:
|
99
99
|
encoding: UTF-8
|
100
|
-
string: Action=GetQueueUrl&QueueName=
|
100
|
+
string: Action=GetQueueUrl&QueueName=test_usage&Version=2012-11-05
|
101
101
|
headers:
|
102
102
|
Content-Type:
|
103
103
|
- application/x-www-form-urlencoded; charset=utf-8
|
@@ -106,14 +106,14 @@ http_interactions:
|
|
106
106
|
User-Agent:
|
107
107
|
- aws-sdk-ruby3/3.20.2 ruby/2.3.3 x86_64-darwin15 aws-sdk-sqs/1.3.0
|
108
108
|
X-Amz-Date:
|
109
|
-
-
|
109
|
+
- 20180521T113747Z
|
110
110
|
X-Amz-Content-Sha256:
|
111
|
-
-
|
111
|
+
- 5761efd13dd0ed81182207171d3660628968189941431d6044920ef8fe7b1160
|
112
112
|
Authorization:
|
113
|
-
- AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/
|
114
|
-
SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=
|
113
|
+
- AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/20180521/eu-west-1/sqs/aws4_request,
|
114
|
+
SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=15073cca6afc70617cf471227794867159a99f819c50f7fec1f3d4f9f41c7b0f
|
115
115
|
Content-Length:
|
116
|
-
- '
|
116
|
+
- '58'
|
117
117
|
Accept:
|
118
118
|
- "*/*"
|
119
119
|
response:
|
@@ -124,26 +124,26 @@ http_interactions:
|
|
124
124
|
Server:
|
125
125
|
- Server
|
126
126
|
Date:
|
127
|
-
-
|
127
|
+
- Mon, 21 May 2018 11:37:47 GMT
|
128
128
|
Content-Type:
|
129
129
|
- text/xml
|
130
130
|
Content-Length:
|
131
|
-
- '
|
131
|
+
- '330'
|
132
132
|
Connection:
|
133
133
|
- keep-alive
|
134
134
|
X-Amzn-Requestid:
|
135
|
-
-
|
135
|
+
- f44de799-9f58-5606-87cb-b4e52e93581d
|
136
136
|
body:
|
137
137
|
encoding: UTF-8
|
138
|
-
string: <?xml version="1.0"?><GetQueueUrlResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><GetQueueUrlResult><QueueUrl>https://sqs.eu-west-1.amazonaws.com/404017989009/
|
138
|
+
string: <?xml version="1.0"?><GetQueueUrlResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><GetQueueUrlResult><QueueUrl>https://sqs.eu-west-1.amazonaws.com/404017989009/test_usage</QueueUrl></GetQueueUrlResult><ResponseMetadata><RequestId>f44de799-9f58-5606-87cb-b4e52e93581d</RequestId></ResponseMetadata></GetQueueUrlResponse>
|
139
139
|
http_version:
|
140
|
-
recorded_at:
|
140
|
+
recorded_at: Mon, 21 May 2018 11:37:47 GMT
|
141
141
|
- request:
|
142
142
|
method: post
|
143
|
-
uri: https://sqs.eu-west-1.amazonaws.com/404017989009/
|
143
|
+
uri: https://sqs.eu-west-1.amazonaws.com/404017989009/test_usage
|
144
144
|
body:
|
145
145
|
encoding: UTF-8
|
146
|
-
string: Action=GetQueueAttributes&AttributeName.1=ApproximateNumberOfMessages&AttributeName.2=ApproximateNumberOfMessagesNotVisible&QueueUrl=https%3A%2F%2Fsqs.eu-west-1.amazonaws.com%2F404017989009%
|
146
|
+
string: Action=GetQueueAttributes&AttributeName.1=ApproximateNumberOfMessages&AttributeName.2=ApproximateNumberOfMessagesNotVisible&QueueUrl=https%3A%2F%2Fsqs.eu-west-1.amazonaws.com%2F404017989009%2Ftest_usage&Version=2012-11-05
|
147
147
|
headers:
|
148
148
|
Content-Type:
|
149
149
|
- application/x-www-form-urlencoded; charset=utf-8
|
@@ -152,14 +152,14 @@ http_interactions:
|
|
152
152
|
User-Agent:
|
153
153
|
- aws-sdk-ruby3/3.20.2 ruby/2.3.3 x86_64-darwin15 aws-sdk-sqs/1.3.0
|
154
154
|
X-Amz-Date:
|
155
|
-
-
|
155
|
+
- 20180521T113747Z
|
156
156
|
X-Amz-Content-Sha256:
|
157
|
-
-
|
157
|
+
- 4fa1f9790ab8d8b778fc048ef890ef00e82c1fd4658cd21964eff9eb5dc9426d
|
158
158
|
Authorization:
|
159
|
-
- AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/
|
160
|
-
SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=
|
159
|
+
- AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/20180521/eu-west-1/sqs/aws4_request,
|
160
|
+
SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=7dd622d72718008057cd3ceabba8b6c038f23d239b778286e9874763be6c1e24
|
161
161
|
Content-Length:
|
162
|
-
- '
|
162
|
+
- '221'
|
163
163
|
Accept:
|
164
164
|
- "*/*"
|
165
165
|
response:
|
@@ -170,7 +170,7 @@ http_interactions:
|
|
170
170
|
Server:
|
171
171
|
- Server
|
172
172
|
Date:
|
173
|
-
-
|
173
|
+
- Mon, 21 May 2018 11:37:47 GMT
|
174
174
|
Content-Type:
|
175
175
|
- text/xml
|
176
176
|
Content-Length:
|
@@ -178,10 +178,10 @@ http_interactions:
|
|
178
178
|
Connection:
|
179
179
|
- keep-alive
|
180
180
|
X-Amzn-Requestid:
|
181
|
-
-
|
181
|
+
- e64e0b2d-0ed7-5098-a3bf-5851bf1cc385
|
182
182
|
body:
|
183
183
|
encoding: UTF-8
|
184
|
-
string: <?xml version="1.0"?><GetQueueAttributesResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><GetQueueAttributesResult><Attribute><Name>ApproximateNumberOfMessages</Name><Value>0</Value></Attribute><Attribute><Name>ApproximateNumberOfMessagesNotVisible</Name><Value>
|
184
|
+
string: <?xml version="1.0"?><GetQueueAttributesResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><GetQueueAttributesResult><Attribute><Name>ApproximateNumberOfMessages</Name><Value>0</Value></Attribute><Attribute><Name>ApproximateNumberOfMessagesNotVisible</Name><Value>2</Value></Attribute></GetQueueAttributesResult><ResponseMetadata><RequestId>e64e0b2d-0ed7-5098-a3bf-5851bf1cc385</RequestId></ResponseMetadata></GetQueueAttributesResponse>
|
185
185
|
http_version:
|
186
|
-
recorded_at:
|
186
|
+
recorded_at: Mon, 21 May 2018 11:37:47 GMT
|
187
187
|
recorded_with: VCR 3.0.3
|