toccatore 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +5 -3
  3. data/lib/toccatore/queue.rb +1 -1
  4. data/lib/toccatore/usage_update.rb +9 -15
  5. data/lib/toccatore/version.rb +1 -1
  6. data/spec/cli_spec.rb +4 -4
  7. data/spec/datacite_related_spec.rb +1 -1
  8. data/spec/fixtures/usage_event_fail.json +1 -1
  9. data/spec/fixtures/usage_events.json +4 -4
  10. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/datacite_related/should_query_by_related_identifier.yml +1 -1
  11. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/usage_update/no_reports_in_the_queue/should_succeed_with_no_works.yml +70 -116
  12. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/get_data/when_there_are_messages/should_return_the_data_for_one_message.yml +4 -4
  13. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/get_data/when_there_is_ONE_message/should_return_the_data_for_one_message.yml +4 -4
  14. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/get_message/should_return_no_meessage_when_the_queue_is_empty.yml +23 -23
  15. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/get_message/should_return_one_message_when_there_are_multiple_messages.yml +23 -23
  16. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/get_total/when_is_working_with_AWS.yml +44 -44
  17. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/push_data/should_fail_if_format_of_the_event_is_wrong.yml +27 -27
  18. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/push_data/should_work_with_DataCite_Event_Data_2.yml +493 -0
  19. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/queue_url/should_return_always_correct_queue_url.yml +11 -11
  20. data/spec/queque_spec.rb +2 -2
  21. data/spec/spec_helper.rb +2 -1
  22. data/spec/usage_update_spec.rb +6 -24
  23. metadata +4 -4
  24. 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
- - Thu, 17 May 2018 13:47:04 GMT
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.004982'
36
+ - '0.005822'
37
37
  X-Request-Id:
38
- - f515a931-11b8-4939-a817-56cadd41a731
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: Thu, 17 May 2018 13:47:04 GMT
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
- - Thu, 17 May 2018 13:47:04 GMT
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.004410'
36
+ - '0.005291'
37
37
  X-Request-Id:
38
- - bd33f3a9-72d0-40d4-915c-00da76bef9ec
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: Thu, 17 May 2018 13:47:04 GMT
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=stage_usage&Version=2012-11-05
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
- - 20180517T135217Z
17
+ - 20180521T113746Z
18
18
  X-Amz-Content-Sha256:
19
- - 5034a1b0b889e68da64b7a052e782d357595681cff3bfea21cac68581dec9836
19
+ - 5761efd13dd0ed81182207171d3660628968189941431d6044920ef8fe7b1160
20
20
  Authorization:
21
- - AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/20180517/eu-west-1/sqs/aws4_request,
22
- SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=aa6c9dc744236239212beb6b7ff9535ada28fbb96cf188246aa3a27f20d0aa7d
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
- - '59'
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
- - Thu, 17 May 2018 13:52:17 GMT
35
+ - Mon, 21 May 2018 11:37:46 GMT
36
36
  Content-Type:
37
37
  - text/xml
38
38
  Content-Length:
39
- - '331'
39
+ - '330'
40
40
  Connection:
41
41
  - keep-alive
42
42
  X-Amzn-Requestid:
43
- - 6ce7015c-e4b9-5aad-9199-522b6fe8fa57
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/stage_usage</QueueUrl></GetQueueUrlResult><ResponseMetadata><RequestId>6ce7015c-e4b9-5aad-9199-522b6fe8fa57</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>f8585bd5-70bc-51b1-8489-08a9c176d6ac</RequestId></ResponseMetadata></GetQueueUrlResponse>
47
47
  http_version:
48
- recorded_at: Thu, 17 May 2018 13:52:17 GMT
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/stage_usage
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%2Fstage_usage&Version=2012-11-05&WaitTimeSeconds=1
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
- - 20180517T135217Z
63
+ - 20180521T113746Z
64
64
  X-Amz-Content-Sha256:
65
- - ecd9b7f04d6c20c2cc914ea59c9a1bebc41ac0351bdb4aabcde0c43a91351fb0
65
+ - b7f76556fe5b5efa85dad3a27ea532b3b8e01ad962d40f74c728489bf8a4b2f7
66
66
  Authorization:
67
- - AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/20180517/eu-west-1/sqs/aws4_request,
68
- SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=7373c6fb311441b0e4aa4dc101fe48dd4d04bfe6bfbd59bb727919deb750e174
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
- - '160'
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
- - Thu, 17 May 2018 13:52:18 GMT
81
+ - Mon, 21 May 2018 11:37:47 GMT
82
82
  Content-Type:
83
83
  - text/xml
84
84
  Content-Length:
85
- - '240'
85
+ - '911'
86
86
  Connection:
87
87
  - keep-alive
88
88
  X-Amzn-Requestid:
89
- - 68b37c3f-2c33-5d0b-ab2f-2f48a762e555
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/><ResponseMetadata><RequestId>68b37c3f-2c33-5d0b-ab2f-2f48a762e555</RequestId></ResponseMetadata></ReceiveMessageResponse>
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>{&quot;report_id&quot;:&quot;https://metrics.datacite.org/reports/2018-5-Dash&quot;}</Body></Message></ReceiveMessageResult><ResponseMetadata><RequestId>03a31193-d59b-5949-b990-42ef64506610</RequestId></ResponseMetadata></ReceiveMessageResponse>
93
93
  http_version:
94
- recorded_at: Thu, 17 May 2018 13:52:18 GMT
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=stage_usage&Version=2012-11-05
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
- - 20180517T135218Z
17
+ - 20180521T113746Z
18
18
  X-Amz-Content-Sha256:
19
- - 5034a1b0b889e68da64b7a052e782d357595681cff3bfea21cac68581dec9836
19
+ - 5761efd13dd0ed81182207171d3660628968189941431d6044920ef8fe7b1160
20
20
  Authorization:
21
- - AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/20180517/eu-west-1/sqs/aws4_request,
22
- SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=b760ab42761ddfbb54725b5a719734027aa4568f4cf0077fd2a700299f363068
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
- - '59'
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
- - Thu, 17 May 2018 13:52:18 GMT
35
+ - Mon, 21 May 2018 11:37:46 GMT
36
36
  Content-Type:
37
37
  - text/xml
38
38
  Content-Length:
39
- - '331'
39
+ - '330'
40
40
  Connection:
41
41
  - keep-alive
42
42
  X-Amzn-Requestid:
43
- - 1b9027aa-e1a1-5d38-9937-74dd6af33e01
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/stage_usage</QueueUrl></GetQueueUrlResult><ResponseMetadata><RequestId>1b9027aa-e1a1-5d38-9937-74dd6af33e01</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>37d97f87-ae49-53aa-bf14-2cfb1f83978a</RequestId></ResponseMetadata></GetQueueUrlResponse>
47
47
  http_version:
48
- recorded_at: Thu, 17 May 2018 13:52:18 GMT
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/stage_usage
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%2Fstage_usage&Version=2012-11-05&WaitTimeSeconds=1
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
- - 20180517T135218Z
63
+ - 20180521T113746Z
64
64
  X-Amz-Content-Sha256:
65
- - ecd9b7f04d6c20c2cc914ea59c9a1bebc41ac0351bdb4aabcde0c43a91351fb0
65
+ - b7f76556fe5b5efa85dad3a27ea532b3b8e01ad962d40f74c728489bf8a4b2f7
66
66
  Authorization:
67
- - AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/20180517/eu-west-1/sqs/aws4_request,
68
- SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=16a0f51c75a855f25ee6b61e35e1eb501e38a000991e102afcf7baf9aa13c89f
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
- - '160'
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
- - Thu, 17 May 2018 13:52:20 GMT
81
+ - Mon, 21 May 2018 11:37:46 GMT
82
82
  Content-Type:
83
83
  - text/xml
84
84
  Content-Length:
85
- - '240'
85
+ - '911'
86
86
  Connection:
87
87
  - keep-alive
88
88
  X-Amzn-Requestid:
89
- - e76eb1a9-d3b3-5de9-abca-e2de58e13db3
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/><ResponseMetadata><RequestId>e76eb1a9-d3b3-5de9-abca-e2de58e13db3</RequestId></ResponseMetadata></ReceiveMessageResponse>
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>{&quot;report_id&quot;:&quot;https://metrics.datacite.org/reports/2018-5-Dash&quot;}</Body></Message></ReceiveMessageResult><ResponseMetadata><RequestId>e9a6ab48-5e5a-5724-b6ba-f834ef904fc4</RequestId></ResponseMetadata></ReceiveMessageResponse>
93
93
  http_version:
94
- recorded_at: Thu, 17 May 2018 13:52:20 GMT
94
+ recorded_at: Mon, 21 May 2018 11:37:46 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=stage_usage&Version=2012-11-05
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
- - 20180517T135220Z
17
+ - 20180521T113747Z
18
18
  X-Amz-Content-Sha256:
19
- - 5034a1b0b889e68da64b7a052e782d357595681cff3bfea21cac68581dec9836
19
+ - 5761efd13dd0ed81182207171d3660628968189941431d6044920ef8fe7b1160
20
20
  Authorization:
21
- - AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/20180517/eu-west-1/sqs/aws4_request,
22
- SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=53c832e348ee6b898f9749e14152b8ba815b69503256addbe25417603d4480f3
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
- - '59'
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
- - Thu, 17 May 2018 13:52:20 GMT
35
+ - Mon, 21 May 2018 11:37:47 GMT
36
36
  Content-Type:
37
37
  - text/xml
38
38
  Content-Length:
39
- - '331'
39
+ - '330'
40
40
  Connection:
41
41
  - keep-alive
42
42
  X-Amzn-Requestid:
43
- - e829c128-451a-51ea-8fa0-925fce4eec96
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/stage_usage</QueueUrl></GetQueueUrlResult><ResponseMetadata><RequestId>e829c128-451a-51ea-8fa0-925fce4eec96</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>81c54488-250f-5453-8112-17f494c4e929</RequestId></ResponseMetadata></GetQueueUrlResponse>
47
47
  http_version:
48
- recorded_at: Thu, 17 May 2018 13:52:20 GMT
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/stage_usage
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%2Fstage_usage&Version=2012-11-05
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
- - 20180517T135220Z
63
+ - 20180521T113747Z
64
64
  X-Amz-Content-Sha256:
65
- - 96a6d2cb54f526d279e954a56182b68f10b0ee5e7a64bc951623176e816b2435
65
+ - 4fa1f9790ab8d8b778fc048ef890ef00e82c1fd4658cd21964eff9eb5dc9426d
66
66
  Authorization:
67
- - AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/20180517/eu-west-1/sqs/aws4_request,
68
- SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=01a0e808b53e75cac7724de2bd4383f82732eadd556d7d501c3e4b85ee14c5c5
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
- - '222'
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
- - Thu, 17 May 2018 13:52:20 GMT
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
- - fd273556-a753-5eb3-99bc-66212c070f0b
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>0</Value></Attribute></GetQueueAttributesResult><ResponseMetadata><RequestId>fd273556-a753-5eb3-99bc-66212c070f0b</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>2</Value></Attribute></GetQueueAttributesResult><ResponseMetadata><RequestId>f3a8ea70-ad36-5e14-aee6-b90c1cfdde68</RequestId></ResponseMetadata></GetQueueAttributesResponse>
93
93
  http_version:
94
- recorded_at: Thu, 17 May 2018 13:52:20 GMT
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=stage_usage&Version=2012-11-05
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
- - 20180517T135220Z
109
+ - 20180521T113747Z
110
110
  X-Amz-Content-Sha256:
111
- - 5034a1b0b889e68da64b7a052e782d357595681cff3bfea21cac68581dec9836
111
+ - 5761efd13dd0ed81182207171d3660628968189941431d6044920ef8fe7b1160
112
112
  Authorization:
113
- - AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/20180517/eu-west-1/sqs/aws4_request,
114
- SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=53c832e348ee6b898f9749e14152b8ba815b69503256addbe25417603d4480f3
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
- - '59'
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
- - Thu, 17 May 2018 13:52:20 GMT
127
+ - Mon, 21 May 2018 11:37:47 GMT
128
128
  Content-Type:
129
129
  - text/xml
130
130
  Content-Length:
131
- - '331'
131
+ - '330'
132
132
  Connection:
133
133
  - keep-alive
134
134
  X-Amzn-Requestid:
135
- - 2ba161a3-25d0-53b3-ad3d-32d4ae84220f
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/stage_usage</QueueUrl></GetQueueUrlResult><ResponseMetadata><RequestId>2ba161a3-25d0-53b3-ad3d-32d4ae84220f</RequestId></ResponseMetadata></GetQueueUrlResponse>
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: Thu, 17 May 2018 13:52:20 GMT
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/stage_usage
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%2Fstage_usage&Version=2012-11-05
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
- - 20180517T135220Z
155
+ - 20180521T113747Z
156
156
  X-Amz-Content-Sha256:
157
- - 96a6d2cb54f526d279e954a56182b68f10b0ee5e7a64bc951623176e816b2435
157
+ - 4fa1f9790ab8d8b778fc048ef890ef00e82c1fd4658cd21964eff9eb5dc9426d
158
158
  Authorization:
159
- - AWS4-HMAC-SHA256 Credential=AKIAIXLDUBIDM74CC6KQ/20180517/eu-west-1/sqs/aws4_request,
160
- SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=01a0e808b53e75cac7724de2bd4383f82732eadd556d7d501c3e4b85ee14c5c5
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
- - '222'
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
- - Thu, 17 May 2018 13:52:20 GMT
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
- - 12b931c1-0194-5f79-bc95-62b68ac0062f
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>0</Value></Attribute></GetQueueAttributesResult><ResponseMetadata><RequestId>12b931c1-0194-5f79-bc95-62b68ac0062f</RequestId></ResponseMetadata></GetQueueAttributesResponse>
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: Thu, 17 May 2018 13:52:20 GMT
186
+ recorded_at: Mon, 21 May 2018 11:37:47 GMT
187
187
  recorded_with: VCR 3.0.3