toccatore 0.4.0 → 0.4.9

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 (33) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +12 -3
  3. data/lib/toccatore/cli.rb +1 -1
  4. data/lib/toccatore/queue.rb +8 -2
  5. data/lib/toccatore/usage_update.rb +64 -52
  6. data/lib/toccatore/version.rb +1 -1
  7. data/spec/cli_spec.rb +4 -4
  8. data/spec/datacite_related_spec.rb +1 -1
  9. data/spec/factories/default.rb +22 -0
  10. data/spec/fixtures/event_data_resp_2 +4 -4
  11. data/spec/fixtures/events_empty.json +33 -0
  12. data/spec/fixtures/usage_event.json +1 -1
  13. data/spec/fixtures/usage_event_fail.json +1 -1
  14. data/spec/fixtures/usage_events.json +8 -8
  15. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/datacite_related/should_query_by_related_identifier.yml +1 -1
  16. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/usage_update/no_reports_in_the_queue/should_succeed_with_no_works.yml +66 -20
  17. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/get_data/when_there_are_messages/should_return_the_data_for_one_message.yml +13 -13
  18. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/get_data/when_there_is_ONE_message/should_return_the_data_for_one_message.yml +13 -13
  19. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/get_message/should_return_no_meessage_when_the_queue_is_empty.yml +95 -0
  20. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/get_message/should_return_one_message_when_there_are_multiple_messages.yml +95 -0
  21. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/get_total/when_is_working_with_AWS.yml +187 -0
  22. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/push_data/should_fail_if_format_of_the_event_is_empty.yml +52 -0
  23. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/push_data/should_fail_if_format_of_the_event_is_wrong.yml +1039 -80
  24. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/push_data/should_work_with_a_single_item.yml +289 -0
  25. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/queue_url/should_return_always_correct_queue_url.yml +49 -0
  26. data/spec/queque_spec.rb +44 -58
  27. data/spec/spec_helper.rb +9 -1
  28. data/spec/usage_update_spec.rb +50 -60
  29. data/toccatore.gemspec +4 -0
  30. metadata +53 -6
  31. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/usage_update/should_fail.yml +0 -150
  32. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/usage_update/should_succeed_with_no_works.yml +0 -150
  33. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/push_data/should_work_with_DataCite_Event_Data.yml +0 -199
@@ -14,12 +14,12 @@ 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
- - 20180508T103005Z
17
+ - 20180521T110327Z
18
18
  X-Amz-Content-Sha256:
19
19
  - 5761efd13dd0ed81182207171d3660628968189941431d6044920ef8fe7b1160
20
20
  Authorization:
21
- - AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/20180508/eu-west-1/sqs/aws4_request,
22
- SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=64ba16e1f33bae2a1571ef2dfde579e6970cfa8693ecca0126e825b4870e9e8c
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=5414e1c758e4fd14204c1cd2c287210cf4b59642434b472cce1046ad83549bb7
23
23
  Content-Length:
24
24
  - '58'
25
25
  Accept:
@@ -32,7 +32,7 @@ http_interactions:
32
32
  Server:
33
33
  - Server
34
34
  Date:
35
- - Tue, 08 May 2018 10:30:06 GMT
35
+ - Mon, 21 May 2018 11:03:28 GMT
36
36
  Content-Type:
37
37
  - text/xml
38
38
  Content-Length:
@@ -40,12 +40,12 @@ http_interactions:
40
40
  Connection:
41
41
  - keep-alive
42
42
  X-Amzn-Requestid:
43
- - 41e1b46e-d509-52d1-8d62-e705ab67c01a
43
+ - 88c27720-9253-5ee8-96f3-245c3b934d65
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/test_usage</QueueUrl></GetQueueUrlResult><ResponseMetadata><RequestId>41e1b46e-d509-52d1-8d62-e705ab67c01a</RequestId></ResponseMetadata></GetQueueUrlResponse>
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>88c27720-9253-5ee8-96f3-245c3b934d65</RequestId></ResponseMetadata></GetQueueUrlResponse>
47
47
  http_version:
48
- recorded_at: Tue, 08 May 2018 10:30:06 GMT
48
+ recorded_at: Mon, 21 May 2018 11:03:28 GMT
49
49
  - request:
50
50
  method: post
51
51
  uri: https://sqs.eu-west-1.amazonaws.com/404017989009/test_usage
@@ -60,12 +60,12 @@ 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
- - 20180508T103006Z
63
+ - 20180521T110328Z
64
64
  X-Amz-Content-Sha256:
65
65
  - 4fa1f9790ab8d8b778fc048ef890ef00e82c1fd4658cd21964eff9eb5dc9426d
66
66
  Authorization:
67
- - AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/20180508/eu-west-1/sqs/aws4_request,
68
- SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=1150f8f5456b041990e00a58f96be8ff5fc1cad94a21d75ffd45901d4062360d
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=c718cb55335a28510e0e321979a6ec45773b2e3fda7573324db765637f3b2147
69
69
  Content-Length:
70
70
  - '221'
71
71
  Accept:
@@ -78,7 +78,7 @@ http_interactions:
78
78
  Server:
79
79
  - Server
80
80
  Date:
81
- - Tue, 08 May 2018 10:30:06 GMT
81
+ - Mon, 21 May 2018 11:03:28 GMT
82
82
  Content-Type:
83
83
  - text/xml
84
84
  Content-Length:
@@ -86,18 +86,64 @@ http_interactions:
86
86
  Connection:
87
87
  - keep-alive
88
88
  X-Amzn-Requestid:
89
- - 20a02d4c-100d-55c7-bbe9-7e276e6354cc
89
+ - 512d1c94-dc6a-568c-b788-4fe875aa65a6
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>0</Value></Attribute></GetQueueAttributesResult><ResponseMetadata><RequestId>20a02d4c-100d-55c7-bbe9-7e276e6354cc</RequestId></ResponseMetadata></GetQueueAttributesResponse>
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>1</Value></Attribute></GetQueueAttributesResult><ResponseMetadata><RequestId>512d1c94-dc6a-568c-b788-4fe875aa65a6</RequestId></ResponseMetadata></GetQueueAttributesResponse>
93
93
  http_version:
94
- recorded_at: Tue, 08 May 2018 10:30:06 GMT
94
+ recorded_at: Mon, 21 May 2018 11:03:28 GMT
95
+ - request:
96
+ method: post
97
+ uri: https://sqs.eu-west-1.amazonaws.com/
98
+ body:
99
+ encoding: UTF-8
100
+ string: Action=GetQueueUrl&QueueName=test_usage&Version=2012-11-05
101
+ headers:
102
+ Content-Type:
103
+ - application/x-www-form-urlencoded; charset=utf-8
104
+ Accept-Encoding:
105
+ - ''
106
+ User-Agent:
107
+ - aws-sdk-ruby3/3.20.2 ruby/2.3.3 x86_64-darwin15 aws-sdk-sqs/1.3.0
108
+ X-Amz-Date:
109
+ - 20180521T110328Z
110
+ X-Amz-Content-Sha256:
111
+ - 5761efd13dd0ed81182207171d3660628968189941431d6044920ef8fe7b1160
112
+ Authorization:
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=4771cd5c30016ac15fcf8100ecae01d583788bc44a3e947ae91a5a3cb4ceb2c3
115
+ Content-Length:
116
+ - '58'
117
+ Accept:
118
+ - "*/*"
119
+ response:
120
+ status:
121
+ code: 200
122
+ message: OK
123
+ headers:
124
+ Server:
125
+ - Server
126
+ Date:
127
+ - Mon, 21 May 2018 11:03:28 GMT
128
+ Content-Type:
129
+ - text/xml
130
+ Content-Length:
131
+ - '330'
132
+ Connection:
133
+ - keep-alive
134
+ X-Amzn-Requestid:
135
+ - 812a66e7-e4a7-5781-98e3-359b4d679550
136
+ body:
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/test_usage</QueueUrl></GetQueueUrlResult><ResponseMetadata><RequestId>812a66e7-e4a7-5781-98e3-359b4d679550</RequestId></ResponseMetadata></GetQueueUrlResponse>
139
+ http_version:
140
+ recorded_at: Mon, 21 May 2018 11:03:28 GMT
95
141
  - request:
96
142
  method: post
97
143
  uri: "<SLACK_WEBHOOK_URL>"
98
144
  body:
99
145
  encoding: US-ASCII
100
- string: payload=%7B%22username%22%3A%22Event+Data+Agent%22%2C%22icon_url%22%3A%22https%3A%2F%2Fraw.githubusercontent.com%2Fdatacite%2Ftoccatore%2Fmaster%2Flib%2Ftoccatore%2Fimages%2Ftoccatore.png%22%2C%22attachments%22%3A%5B%7B%22title%22%3A%22Report+for+usage_update%22%2C%22text%22%3A%22No+works+found+for+in+the+Usage+Reports+Queue.%22%2C%22color%22%3A%22warning%22%7D%5D%7D
146
+ string: payload=%7B%22username%22%3A%22Event+Data+Agent%22%2C%22icon_url%22%3A%22https%3A%2F%2Fraw.githubusercontent.com%2Fdatacite%2Ftoccatore%2Fmaster%2Flib%2Ftoccatore%2Fimages%2Ftoccatore.png%22%2C%22attachments%22%3A%5B%7B%22title%22%3A%22Report+for+usage_update%22%2C%22text%22%3A%220+works+processed+with+0+errors+for+Usage+Reports+Queue+https%3A%2F%2Fsqs.eu-west-1.amazonaws.com%2F404017989009%2Ftest_usage%22%2C%22color%22%3A%22warning%22%7D%5D%7D
101
147
  headers:
102
148
  Accept-Encoding:
103
149
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
@@ -119,7 +165,7 @@ http_interactions:
119
165
  Connection:
120
166
  - keep-alive
121
167
  Date:
122
- - Tue, 08 May 2018 10:30:06 GMT
168
+ - Mon, 21 May 2018 11:03:29 GMT
123
169
  Server:
124
170
  - Apache
125
171
  X-Slack-Backend:
@@ -135,16 +181,16 @@ http_interactions:
135
181
  Access-Control-Allow-Origin:
136
182
  - "*"
137
183
  X-Via:
138
- - haproxy-www-ti0y
184
+ - haproxy-www-n712
139
185
  X-Cache:
140
186
  - Miss from cloudfront
141
187
  Via:
142
- - 1.1 8e7b38fb8c27e98caec113dfa99daa1a.cloudfront.net (CloudFront)
188
+ - 1.1 77bf0d58790cfb484da5202fe124c53f.cloudfront.net (CloudFront)
143
189
  X-Amz-Cf-Id:
144
- - mbliRIKKiAQjGo9tR4VjqK8IZTKtq0EK3p7-D2JxFlYWtziVB5gJfw==
190
+ - DwT_7NcPg4LrvuropK2xun2b3PLF2ZSBnH-A7YjkYQLHn5PSwPTZLQ==
145
191
  body:
146
192
  encoding: ASCII-8BIT
147
193
  string: ok
148
194
  http_version:
149
- recorded_at: Tue, 08 May 2018 10:30:06 GMT
195
+ recorded_at: Mon, 21 May 2018 11:03:29 GMT
150
196
  recorded_with: VCR 3.0.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://metrics.test.datacite.org/reports/2018-3-DataONE
5
+ uri: https://metrics.test.datacite.org/reports/5cac6ca0-9391-4e1d-95cf-ba2f475cbfad
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -17,7 +17,7 @@ http_interactions:
17
17
  message: ''
18
18
  headers:
19
19
  Date:
20
- - Mon, 07 May 2018 15:07:45 GMT
20
+ - Sat, 26 May 2018 08:28:16 GMT
21
21
  Content-Type:
22
22
  - application/json; charset=utf-8
23
23
  Connection:
@@ -31,22 +31,22 @@ http_interactions:
31
31
  Vary:
32
32
  - Accept-Encoding, Origin
33
33
  Etag:
34
- - W/"4f2411eb13af4c17be452f00b66b9bc8"
34
+ - W/"a2af7c772d0e1af937e036db75f8bbb1"
35
35
  X-Runtime:
36
- - '0.004929'
36
+ - '0.005244'
37
37
  X-Request-Id:
38
- - 88da99f7-e209-4ede-8adf-7954ff834a5b
38
+ - 49b975fd-986d-4e8c-bc91-ba2f06830408
39
39
  X-Powered-By:
40
- - Phusion Passenger 5.2.3
40
+ - Phusion Passenger 5.3.1
41
41
  Server:
42
- - nginx/1.12.2 + Phusion Passenger 5.2.3
42
+ - nginx/1.14.0 + Phusion Passenger 5.3.1
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"report":{"id":"2018-3-DataONE","report-header":{"report-name":"Dataset
46
- Master Report","report-id":"DSR","created-by":"DataONE","created":"2018-03-16"},"report-datasets":[{"uri":"https://search.DataONE.org/index.html#view/https://pasta.lternet.edu/package/metadata/eml/knb-lter-luq/88/559501","yop":2010,"creators":[{"type":"Name","value":"Jess
47
- Zimmerman"}],"platform":"DataONE","data-type":"Dataset","publisher":"LTER
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
- of the Tabonuco Forest trees and shrubs.","publication-dates":"2010-03-22"}]}}'
45
+ string: '{"report":{"id":"5cac6ca0-9391-4e1d-95cf-ba2f475cbfad","report-header":{"report-name":"Dataset
46
+ Master Report","report-id":"SDR","release":"RD1","created-by":"test9","created":"2018-05-22","reporting-period":{"end-date":"2063-02-30T00:00:00","begin-date":"2063-02-01T00:00:00"},"report-filters":[],"report-attributes":[]},"report-datasets":[{"uri":"https://search.DataONE.org/index.html#view/https://pasta.lternet.edu/package/metadata/eml/knb-lter-luq/88/559501","yop":"2010","platform":"DataONE","data-type":"dataset","publisher":"LTER
47
+ Network","dataset-id":[{"type":"DOI","value":"10.6073/pasta/aec48ca27decb1fd2c2f454f1c5f88e4"}],"performance":[{"period":{"end-date":"2018-03-31","begin-date":"2018-03-01"},"instance":[{"count":349,"metric-type":"total-dataset-requests","access-method":"regular","country-counts":{"au":9,"ca":4,"de":4,"dk":2,"ie":2,"ru":2,"us":9}},{"count":27,"metric-type":"unique-dataset-requests","access-method":"regular","country-counts":{"au":9,"ca":4,"de":4,"dk":2,"ie":2,"ru":2,"us":9}},{"count":8,"metric-type":"total-dataset-investigations","access-method":"regular","country-counts":{"de":4,"ie":2,"ru":2}},{"count":8,"metric-type":"unique-dataset-investigations","access-method":"regular","country-counts":{"de":4,"ie":2,"ru":2}}]}],"publisher-id":[{"type":"orcid","value":"205975.c"}],"dataset-title":"Phenologies
48
+ of the Tabonuco Forest trees and shrubs.","dataset-contributors":[{"type":"name","value":"Jess
49
+ Zimmerman"}]}]}}'
50
50
  http_version:
51
- recorded_at: Mon, 07 May 2018 15:07:45 GMT
51
+ recorded_at: Sat, 26 May 2018 08:28:16 GMT
52
52
  recorded_with: VCR 3.0.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://metrics.test.datacite.org/reports/2018-3-DataONE
5
+ uri: https://metrics.test.datacite.org/reports/5cac6ca0-9391-4e1d-95cf-ba2f475cbfad
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -17,7 +17,7 @@ http_interactions:
17
17
  message: ''
18
18
  headers:
19
19
  Date:
20
- - Mon, 07 May 2018 15:07:45 GMT
20
+ - Sat, 26 May 2018 08:28:16 GMT
21
21
  Content-Type:
22
22
  - application/json; charset=utf-8
23
23
  Connection:
@@ -31,22 +31,22 @@ http_interactions:
31
31
  Vary:
32
32
  - Accept-Encoding, Origin
33
33
  Etag:
34
- - W/"4f2411eb13af4c17be452f00b66b9bc8"
34
+ - W/"a2af7c772d0e1af937e036db75f8bbb1"
35
35
  X-Runtime:
36
- - '0.005172'
36
+ - '0.005629'
37
37
  X-Request-Id:
38
- - b27d35ff-3942-4c94-8d28-0b5595d18096
38
+ - 0e117b0d-5067-4dc4-bede-a2b20c4cc5a6
39
39
  X-Powered-By:
40
- - Phusion Passenger 5.2.3
40
+ - Phusion Passenger 5.3.1
41
41
  Server:
42
- - nginx/1.12.2 + Phusion Passenger 5.2.3
42
+ - nginx/1.14.0 + Phusion Passenger 5.3.1
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"report":{"id":"2018-3-DataONE","report-header":{"report-name":"Dataset
46
- Master Report","report-id":"DSR","created-by":"DataONE","created":"2018-03-16"},"report-datasets":[{"uri":"https://search.DataONE.org/index.html#view/https://pasta.lternet.edu/package/metadata/eml/knb-lter-luq/88/559501","yop":2010,"creators":[{"type":"Name","value":"Jess
47
- Zimmerman"}],"platform":"DataONE","data-type":"Dataset","publisher":"LTER
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
- of the Tabonuco Forest trees and shrubs.","publication-dates":"2010-03-22"}]}}'
45
+ string: '{"report":{"id":"5cac6ca0-9391-4e1d-95cf-ba2f475cbfad","report-header":{"report-name":"Dataset
46
+ Master Report","report-id":"SDR","release":"RD1","created-by":"test9","created":"2018-05-22","reporting-period":{"end-date":"2063-02-30T00:00:00","begin-date":"2063-02-01T00:00:00"},"report-filters":[],"report-attributes":[]},"report-datasets":[{"uri":"https://search.DataONE.org/index.html#view/https://pasta.lternet.edu/package/metadata/eml/knb-lter-luq/88/559501","yop":"2010","platform":"DataONE","data-type":"dataset","publisher":"LTER
47
+ Network","dataset-id":[{"type":"DOI","value":"10.6073/pasta/aec48ca27decb1fd2c2f454f1c5f88e4"}],"performance":[{"period":{"end-date":"2018-03-31","begin-date":"2018-03-01"},"instance":[{"count":349,"metric-type":"total-dataset-requests","access-method":"regular","country-counts":{"au":9,"ca":4,"de":4,"dk":2,"ie":2,"ru":2,"us":9}},{"count":27,"metric-type":"unique-dataset-requests","access-method":"regular","country-counts":{"au":9,"ca":4,"de":4,"dk":2,"ie":2,"ru":2,"us":9}},{"count":8,"metric-type":"total-dataset-investigations","access-method":"regular","country-counts":{"de":4,"ie":2,"ru":2}},{"count":8,"metric-type":"unique-dataset-investigations","access-method":"regular","country-counts":{"de":4,"ie":2,"ru":2}}]}],"publisher-id":[{"type":"orcid","value":"205975.c"}],"dataset-title":"Phenologies
48
+ of the Tabonuco Forest trees and shrubs.","dataset-contributors":[{"type":"name","value":"Jess
49
+ Zimmerman"}]}]}}'
50
50
  http_version:
51
- recorded_at: Mon, 07 May 2018 15:07:45 GMT
51
+ recorded_at: Sat, 26 May 2018 08:28:16 GMT
52
52
  recorded_with: VCR 3.0.3
@@ -0,0 +1,95 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://sqs.eu-west-1.amazonaws.com/
6
+ body:
7
+ encoding: UTF-8
8
+ string: Action=GetQueueUrl&QueueName=test_usage&Version=2012-11-05
9
+ headers:
10
+ Content-Type:
11
+ - application/x-www-form-urlencoded; charset=utf-8
12
+ Accept-Encoding:
13
+ - ''
14
+ User-Agent:
15
+ - aws-sdk-ruby3/3.21.2 ruby/2.3.3 x86_64-darwin15 aws-sdk-sqs/1.3.0
16
+ X-Amz-Date:
17
+ - 20180526T082819Z
18
+ X-Amz-Content-Sha256:
19
+ - 5761efd13dd0ed81182207171d3660628968189941431d6044920ef8fe7b1160
20
+ Authorization:
21
+ - AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/20180526/eu-west-1/sqs/aws4_request,
22
+ SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=2ab509ced23271346a50f94e2becd6dbe3fcf46ad5660e57200c4f763e6d3cdb
23
+ Content-Length:
24
+ - '58'
25
+ Accept:
26
+ - "*/*"
27
+ response:
28
+ status:
29
+ code: 200
30
+ message: OK
31
+ headers:
32
+ Server:
33
+ - Server
34
+ Date:
35
+ - Sat, 26 May 2018 08:28:19 GMT
36
+ Content-Type:
37
+ - text/xml
38
+ Content-Length:
39
+ - '330'
40
+ Connection:
41
+ - keep-alive
42
+ X-Amzn-Requestid:
43
+ - 8464fe80-c51a-567c-9796-ad03d9f9af81
44
+ body:
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/test_usage</QueueUrl></GetQueueUrlResult><ResponseMetadata><RequestId>8464fe80-c51a-567c-9796-ad03d9f9af81</RequestId></ResponseMetadata></GetQueueUrlResponse>
47
+ http_version:
48
+ recorded_at: Sat, 26 May 2018 08:28:19 GMT
49
+ - request:
50
+ method: post
51
+ uri: https://sqs.eu-west-1.amazonaws.com/404017989009/test_usage
52
+ body:
53
+ encoding: UTF-8
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
+ headers:
56
+ Content-Type:
57
+ - application/x-www-form-urlencoded; charset=utf-8
58
+ Accept-Encoding:
59
+ - ''
60
+ User-Agent:
61
+ - aws-sdk-ruby3/3.21.2 ruby/2.3.3 x86_64-darwin15 aws-sdk-sqs/1.3.0
62
+ X-Amz-Date:
63
+ - 20180526T082819Z
64
+ X-Amz-Content-Sha256:
65
+ - b7f76556fe5b5efa85dad3a27ea532b3b8e01ad962d40f74c728489bf8a4b2f7
66
+ Authorization:
67
+ - AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/20180526/eu-west-1/sqs/aws4_request,
68
+ SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=066d2e8334a849df5f2dde8e8f3b1d463540db4b2c6d6643a059f3d95358a96e
69
+ Content-Length:
70
+ - '159'
71
+ Accept:
72
+ - "*/*"
73
+ response:
74
+ status:
75
+ code: 200
76
+ message: OK
77
+ headers:
78
+ Server:
79
+ - Server
80
+ Date:
81
+ - Sat, 26 May 2018 08:28:19 GMT
82
+ Content-Type:
83
+ - text/xml
84
+ Content-Length:
85
+ - '965'
86
+ Connection:
87
+ - keep-alive
88
+ X-Amzn-Requestid:
89
+ - 23c3491f-383b-5099-ab15-1a9c24d8e3e4
90
+ body:
91
+ encoding: UTF-8
92
+ string: <?xml version="1.0"?><ReceiveMessageResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><ReceiveMessageResult><Message><MessageId>c9476d03-e892-4291-a612-483d220a207e</MessageId><ReceiptHandle>AQEBMqZycZ1NEXt/x/e2WRD1uXXQtjB/NqwmEYVeoSq61IMo0gLSgRCFOS0iqM1aFQOW5fAY2k8KWEZf0QIJ3sOTQJ5s7fuBpEGHcOvDHZcEu6zwbtuv+wv3xrsq7UzsOmGZ60F4Kw9MCvNOtha7Nt36NgGpcU4Bsf4yp2z+ABbKFYliT8iWzh7NjGsg/6Q2DVxrK+AG3xOADojs6iFEqxyhYVV0zNxkxfZ7O8q/ROH2qOFwd4Bp81pKPxpLY2g3SQrPabmq3Yskh6UApQdW9Shvkr68GNHnnk6x90YIZVpWFxSRHg/Pdw+RzHrDO1YoINRc6itth87j4aKeD79hvuVVeBFSVDK+TIVu7mwUup2bCaWLSJ02iroUFrk5N/oy8qVn3ATSmMcLYF1ux9CaNHswvg==</ReceiptHandle><MD5OfBody>bbac5118a088ff64cfde70bb7f0d219b</MD5OfBody><Body>{&quot;report_id&quot;:&quot;https://metrics.test.datacite.org/reports/1ff910bc-fe6b-4410-a727-c9ec39990215&quot;}</Body></Message></ReceiveMessageResult><ResponseMetadata><RequestId>23c3491f-383b-5099-ab15-1a9c24d8e3e4</RequestId></ResponseMetadata></ReceiveMessageResponse>
93
+ http_version:
94
+ recorded_at: Sat, 26 May 2018 08:28:19 GMT
95
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,95 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://sqs.eu-west-1.amazonaws.com/
6
+ body:
7
+ encoding: UTF-8
8
+ string: Action=GetQueueUrl&QueueName=test_usage&Version=2012-11-05
9
+ headers:
10
+ Content-Type:
11
+ - application/x-www-form-urlencoded; charset=utf-8
12
+ Accept-Encoding:
13
+ - ''
14
+ User-Agent:
15
+ - aws-sdk-ruby3/3.21.2 ruby/2.3.3 x86_64-darwin15 aws-sdk-sqs/1.3.0
16
+ X-Amz-Date:
17
+ - 20180526T082819Z
18
+ X-Amz-Content-Sha256:
19
+ - 5761efd13dd0ed81182207171d3660628968189941431d6044920ef8fe7b1160
20
+ Authorization:
21
+ - AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/20180526/eu-west-1/sqs/aws4_request,
22
+ SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=2ab509ced23271346a50f94e2becd6dbe3fcf46ad5660e57200c4f763e6d3cdb
23
+ Content-Length:
24
+ - '58'
25
+ Accept:
26
+ - "*/*"
27
+ response:
28
+ status:
29
+ code: 200
30
+ message: OK
31
+ headers:
32
+ Server:
33
+ - Server
34
+ Date:
35
+ - Sat, 26 May 2018 08:28:19 GMT
36
+ Content-Type:
37
+ - text/xml
38
+ Content-Length:
39
+ - '330'
40
+ Connection:
41
+ - keep-alive
42
+ X-Amzn-Requestid:
43
+ - '078a681d-f277-5266-bd07-3b9eee94ac10'
44
+ body:
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/test_usage</QueueUrl></GetQueueUrlResult><ResponseMetadata><RequestId>078a681d-f277-5266-bd07-3b9eee94ac10</RequestId></ResponseMetadata></GetQueueUrlResponse>
47
+ http_version:
48
+ recorded_at: Sat, 26 May 2018 08:28:19 GMT
49
+ - request:
50
+ method: post
51
+ uri: https://sqs.eu-west-1.amazonaws.com/404017989009/test_usage
52
+ body:
53
+ encoding: UTF-8
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
+ headers:
56
+ Content-Type:
57
+ - application/x-www-form-urlencoded; charset=utf-8
58
+ Accept-Encoding:
59
+ - ''
60
+ User-Agent:
61
+ - aws-sdk-ruby3/3.21.2 ruby/2.3.3 x86_64-darwin15 aws-sdk-sqs/1.3.0
62
+ X-Amz-Date:
63
+ - 20180526T082819Z
64
+ X-Amz-Content-Sha256:
65
+ - b7f76556fe5b5efa85dad3a27ea532b3b8e01ad962d40f74c728489bf8a4b2f7
66
+ Authorization:
67
+ - AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/20180526/eu-west-1/sqs/aws4_request,
68
+ SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=066d2e8334a849df5f2dde8e8f3b1d463540db4b2c6d6643a059f3d95358a96e
69
+ Content-Length:
70
+ - '159'
71
+ Accept:
72
+ - "*/*"
73
+ response:
74
+ status:
75
+ code: 200
76
+ message: OK
77
+ headers:
78
+ Server:
79
+ - Server
80
+ Date:
81
+ - Sat, 26 May 2018 08:28:20 GMT
82
+ Content-Type:
83
+ - text/xml
84
+ Content-Length:
85
+ - '965'
86
+ Connection:
87
+ - keep-alive
88
+ X-Amzn-Requestid:
89
+ - ab49b777-b5be-5d7a-913d-e4f4a95a8283
90
+ body:
91
+ encoding: UTF-8
92
+ string: <?xml version="1.0"?><ReceiveMessageResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><ReceiveMessageResult><Message><MessageId>d45856d0-1e94-4643-badb-95a9825edc58</MessageId><ReceiptHandle>AQEBF+kOidg1tQ7fPE9PEu58JGZto2NVi5V8D3pD2L1hYU+B5070akaQGIMZz8N/0XmmQm7btKkcRCcZB+a9netKvfH/LMiXCdaFryPt7ZWRndr5PyNBbd4JTBORFGHEvx5wSyaRoaS8RVZDOpEz7BTytEhCsHMWD3RxejDNXCnZGcHKLMYaIWcE1LSeHk/8dq6efk7rQEIqmhSIVl/3NGCrWfKkZRfdaPjehns95FX4t9Bvrg4wKws+b90hzidQKGfrfaivu5cuY4BEbnqx1omQANM+nrlGpxy01byjeYQUx6mEnhErTP56RIEeexZXm4HgJIdBAhBsFq5XnW8i8iPQdEMCTiGjS2y/kt7B9F+f4W5a+G1ex6dOxbahCSnNKAu+3UDPwzqIL47vF9mJEbM1Xw==</ReceiptHandle><MD5OfBody>c43cd6b5169cc0d0abf08439bee45031</MD5OfBody><Body>{&quot;report_id&quot;:&quot;https://metrics.test.datacite.org/reports/22b67b62-186e-4c38-bafa-e217c503cc71&quot;}</Body></Message></ReceiveMessageResult><ResponseMetadata><RequestId>ab49b777-b5be-5d7a-913d-e4f4a95a8283</RequestId></ResponseMetadata></ReceiveMessageResponse>
93
+ http_version:
94
+ recorded_at: Sat, 26 May 2018 08:28:20 GMT
95
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,187 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://sqs.eu-west-1.amazonaws.com/
6
+ body:
7
+ encoding: UTF-8
8
+ string: Action=GetQueueUrl&QueueName=test_usage&Version=2012-11-05
9
+ headers:
10
+ Content-Type:
11
+ - application/x-www-form-urlencoded; charset=utf-8
12
+ Accept-Encoding:
13
+ - ''
14
+ User-Agent:
15
+ - aws-sdk-ruby3/3.21.2 ruby/2.3.3 x86_64-darwin15 aws-sdk-sqs/1.3.0
16
+ X-Amz-Date:
17
+ - 20180526T082818Z
18
+ X-Amz-Content-Sha256:
19
+ - 5761efd13dd0ed81182207171d3660628968189941431d6044920ef8fe7b1160
20
+ Authorization:
21
+ - AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/20180526/eu-west-1/sqs/aws4_request,
22
+ SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=fb9969df4a8fe01e1205b909a4c96db4afab8b34317aa9d46aa0ca28242fbb91
23
+ Content-Length:
24
+ - '58'
25
+ Accept:
26
+ - "*/*"
27
+ response:
28
+ status:
29
+ code: 200
30
+ message: OK
31
+ headers:
32
+ Server:
33
+ - Server
34
+ Date:
35
+ - Sat, 26 May 2018 08:28:18 GMT
36
+ Content-Type:
37
+ - text/xml
38
+ Content-Length:
39
+ - '330'
40
+ Connection:
41
+ - keep-alive
42
+ X-Amzn-Requestid:
43
+ - 9c22d060-a576-5dea-a486-83e3b9941e91
44
+ body:
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/test_usage</QueueUrl></GetQueueUrlResult><ResponseMetadata><RequestId>9c22d060-a576-5dea-a486-83e3b9941e91</RequestId></ResponseMetadata></GetQueueUrlResponse>
47
+ http_version:
48
+ recorded_at: Sat, 26 May 2018 08:28:18 GMT
49
+ - request:
50
+ method: post
51
+ uri: https://sqs.eu-west-1.amazonaws.com/404017989009/test_usage
52
+ body:
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%2Ftest_usage&Version=2012-11-05
55
+ headers:
56
+ Content-Type:
57
+ - application/x-www-form-urlencoded; charset=utf-8
58
+ Accept-Encoding:
59
+ - ''
60
+ User-Agent:
61
+ - aws-sdk-ruby3/3.21.2 ruby/2.3.3 x86_64-darwin15 aws-sdk-sqs/1.3.0
62
+ X-Amz-Date:
63
+ - 20180526T082818Z
64
+ X-Amz-Content-Sha256:
65
+ - 4fa1f9790ab8d8b778fc048ef890ef00e82c1fd4658cd21964eff9eb5dc9426d
66
+ Authorization:
67
+ - AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/20180526/eu-west-1/sqs/aws4_request,
68
+ SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=dbfdd84ccd65c6ef60e9ecb3a10abf61f14811689d557ec5e2df0516ab8dbd1d
69
+ Content-Length:
70
+ - '221'
71
+ Accept:
72
+ - "*/*"
73
+ response:
74
+ status:
75
+ code: 200
76
+ message: OK
77
+ headers:
78
+ Server:
79
+ - Server
80
+ Date:
81
+ - Sat, 26 May 2018 08:28:19 GMT
82
+ Content-Type:
83
+ - text/xml
84
+ Content-Length:
85
+ - '446'
86
+ Connection:
87
+ - keep-alive
88
+ X-Amzn-Requestid:
89
+ - 48022634-be35-5467-8784-75b7a2d6bcc7
90
+ body:
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>3</Value></Attribute><Attribute><Name>ApproximateNumberOfMessagesNotVisible</Name><Value>0</Value></Attribute></GetQueueAttributesResult><ResponseMetadata><RequestId>48022634-be35-5467-8784-75b7a2d6bcc7</RequestId></ResponseMetadata></GetQueueAttributesResponse>
93
+ http_version:
94
+ recorded_at: Sat, 26 May 2018 08:28:19 GMT
95
+ - request:
96
+ method: post
97
+ uri: https://sqs.eu-west-1.amazonaws.com/
98
+ body:
99
+ encoding: UTF-8
100
+ string: Action=GetQueueUrl&QueueName=test_usage&Version=2012-11-05
101
+ headers:
102
+ Content-Type:
103
+ - application/x-www-form-urlencoded; charset=utf-8
104
+ Accept-Encoding:
105
+ - ''
106
+ User-Agent:
107
+ - aws-sdk-ruby3/3.21.2 ruby/2.3.3 x86_64-darwin15 aws-sdk-sqs/1.3.0
108
+ X-Amz-Date:
109
+ - 20180526T082819Z
110
+ X-Amz-Content-Sha256:
111
+ - 5761efd13dd0ed81182207171d3660628968189941431d6044920ef8fe7b1160
112
+ Authorization:
113
+ - AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/20180526/eu-west-1/sqs/aws4_request,
114
+ SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=2ab509ced23271346a50f94e2becd6dbe3fcf46ad5660e57200c4f763e6d3cdb
115
+ Content-Length:
116
+ - '58'
117
+ Accept:
118
+ - "*/*"
119
+ response:
120
+ status:
121
+ code: 200
122
+ message: OK
123
+ headers:
124
+ Server:
125
+ - Server
126
+ Date:
127
+ - Sat, 26 May 2018 08:28:19 GMT
128
+ Content-Type:
129
+ - text/xml
130
+ Content-Length:
131
+ - '330'
132
+ Connection:
133
+ - keep-alive
134
+ X-Amzn-Requestid:
135
+ - 284a8374-00e3-5931-9a71-d0f71c007b30
136
+ body:
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/test_usage</QueueUrl></GetQueueUrlResult><ResponseMetadata><RequestId>284a8374-00e3-5931-9a71-d0f71c007b30</RequestId></ResponseMetadata></GetQueueUrlResponse>
139
+ http_version:
140
+ recorded_at: Sat, 26 May 2018 08:28:19 GMT
141
+ - request:
142
+ method: post
143
+ uri: https://sqs.eu-west-1.amazonaws.com/404017989009/test_usage
144
+ body:
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%2Ftest_usage&Version=2012-11-05
147
+ headers:
148
+ Content-Type:
149
+ - application/x-www-form-urlencoded; charset=utf-8
150
+ Accept-Encoding:
151
+ - ''
152
+ User-Agent:
153
+ - aws-sdk-ruby3/3.21.2 ruby/2.3.3 x86_64-darwin15 aws-sdk-sqs/1.3.0
154
+ X-Amz-Date:
155
+ - 20180526T082819Z
156
+ X-Amz-Content-Sha256:
157
+ - 4fa1f9790ab8d8b778fc048ef890ef00e82c1fd4658cd21964eff9eb5dc9426d
158
+ Authorization:
159
+ - AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/20180526/eu-west-1/sqs/aws4_request,
160
+ SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=3db436e1ed6d3f901ff8f7481a66b7ab2bbdc6c8a08532173ec8ee9601d3c1a4
161
+ Content-Length:
162
+ - '221'
163
+ Accept:
164
+ - "*/*"
165
+ response:
166
+ status:
167
+ code: 200
168
+ message: OK
169
+ headers:
170
+ Server:
171
+ - Server
172
+ Date:
173
+ - Sat, 26 May 2018 08:28:19 GMT
174
+ Content-Type:
175
+ - text/xml
176
+ Content-Length:
177
+ - '446'
178
+ Connection:
179
+ - keep-alive
180
+ X-Amzn-Requestid:
181
+ - fbcc461e-f63d-5200-82d1-159deade341a
182
+ body:
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>3</Value></Attribute><Attribute><Name>ApproximateNumberOfMessagesNotVisible</Name><Value>0</Value></Attribute></GetQueueAttributesResult><ResponseMetadata><RequestId>fbcc461e-f63d-5200-82d1-159deade341a</RequestId></ResponseMetadata></GetQueueAttributesResponse>
185
+ http_version:
186
+ recorded_at: Sat, 26 May 2018 08:28:19 GMT
187
+ recorded_with: VCR 3.0.3