toccatore 0.3.9 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile.lock +31 -18
  3. data/README.md +1 -1
  4. data/lib/toccatore.rb +2 -0
  5. data/lib/toccatore/cli.rb +12 -0
  6. data/lib/toccatore/queue.rb +50 -0
  7. data/lib/toccatore/usage_update.rb +170 -0
  8. data/lib/toccatore/version.rb +1 -1
  9. data/spec/cli_spec.rb +34 -1
  10. data/spec/fixtures/event_data_resp_1 +2 -0
  11. data/spec/fixtures/event_data_resp_2 +4 -0
  12. data/spec/fixtures/usage_event.json +1 -0
  13. data/spec/fixtures/usage_event_fail.json +17 -0
  14. data/spec/fixtures/usage_events.json +63 -0
  15. data/spec/fixtures/usage_update.json +101 -0
  16. data/spec/fixtures/usage_update_1.json +36738 -0
  17. data/spec/fixtures/usage_update_2.json +171 -0
  18. data/spec/fixtures/usage_update_3.json +176 -0
  19. data/spec/fixtures/usage_update_4.json +101 -0
  20. data/spec/fixtures/usage_update_nil.json +6 -0
  21. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/usage_update/no_reports_in_the_queue/should_succeed_with_no_works.yml +150 -0
  22. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/usage_update/should_fail.yml +150 -0
  23. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/usage_update/should_succeed_with_no_works.yml +150 -0
  24. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/get_data/when_there_are_messages/should_return_the_data_for_one_message.yml +52 -0
  25. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/get_data/when_there_is_ONE_message/should_return_the_data_for_one_message.yml +52 -0
  26. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/push_data/should_fail_if_format_of_the_event_is_wrong.yml +199 -0
  27. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/push_data/should_work_with_DataCite_Event_Data.yml +199 -0
  28. data/spec/queque_spec.rb +61 -0
  29. data/spec/spec_helper.rb +14 -0
  30. data/spec/usage_update_spec.rb +156 -0
  31. data/toccatore.gemspec +3 -1
  32. metadata +43 -7
@@ -0,0 +1,6 @@
1
+ {
2
+ "errors": [{
3
+ "status": "404",
4
+ "title": "The resource you are looking for doesn't exist."
5
+ }]
6
+ }
@@ -0,0 +1,150 @@
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.20.2 ruby/2.3.3 x86_64-darwin15 aws-sdk-sqs/1.3.0
16
+ X-Amz-Date:
17
+ - 20180508T103005Z
18
+ X-Amz-Content-Sha256:
19
+ - 5761efd13dd0ed81182207171d3660628968189941431d6044920ef8fe7b1160
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
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
+ - Tue, 08 May 2018 10:30:06 GMT
36
+ Content-Type:
37
+ - text/xml
38
+ Content-Length:
39
+ - '330'
40
+ Connection:
41
+ - keep-alive
42
+ X-Amzn-Requestid:
43
+ - 41e1b46e-d509-52d1-8d62-e705ab67c01a
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>41e1b46e-d509-52d1-8d62-e705ab67c01a</RequestId></ResponseMetadata></GetQueueUrlResponse>
47
+ http_version:
48
+ recorded_at: Tue, 08 May 2018 10:30:06 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.20.2 ruby/2.3.3 x86_64-darwin15 aws-sdk-sqs/1.3.0
62
+ X-Amz-Date:
63
+ - 20180508T103006Z
64
+ X-Amz-Content-Sha256:
65
+ - 4fa1f9790ab8d8b778fc048ef890ef00e82c1fd4658cd21964eff9eb5dc9426d
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
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
+ - Tue, 08 May 2018 10:30:06 GMT
82
+ Content-Type:
83
+ - text/xml
84
+ Content-Length:
85
+ - '446'
86
+ Connection:
87
+ - keep-alive
88
+ X-Amzn-Requestid:
89
+ - 20a02d4c-100d-55c7-bbe9-7e276e6354cc
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>0</Value></Attribute><Attribute><Name>ApproximateNumberOfMessagesNotVisible</Name><Value>0</Value></Attribute></GetQueueAttributesResult><ResponseMetadata><RequestId>20a02d4c-100d-55c7-bbe9-7e276e6354cc</RequestId></ResponseMetadata></GetQueueAttributesResponse>
93
+ http_version:
94
+ recorded_at: Tue, 08 May 2018 10:30:06 GMT
95
+ - request:
96
+ method: post
97
+ uri: "<SLACK_WEBHOOK_URL>"
98
+ body:
99
+ 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
101
+ headers:
102
+ Accept-Encoding:
103
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
104
+ Accept:
105
+ - "*/*"
106
+ User-Agent:
107
+ - Ruby
108
+ Content-Type:
109
+ - application/x-www-form-urlencoded
110
+ response:
111
+ status:
112
+ code: 200
113
+ message: OK
114
+ headers:
115
+ Content-Type:
116
+ - text/html
117
+ Content-Length:
118
+ - '22'
119
+ Connection:
120
+ - keep-alive
121
+ Date:
122
+ - Tue, 08 May 2018 10:30:06 GMT
123
+ Server:
124
+ - Apache
125
+ X-Slack-Backend:
126
+ - h
127
+ Referrer-Policy:
128
+ - no-referrer
129
+ Strict-Transport-Security:
130
+ - max-age=31536000; includeSubDomains; preload
131
+ X-Frame-Options:
132
+ - SAMEORIGIN
133
+ Vary:
134
+ - Accept-Encoding
135
+ Access-Control-Allow-Origin:
136
+ - "*"
137
+ X-Via:
138
+ - haproxy-www-ti0y
139
+ X-Cache:
140
+ - Miss from cloudfront
141
+ Via:
142
+ - 1.1 8e7b38fb8c27e98caec113dfa99daa1a.cloudfront.net (CloudFront)
143
+ X-Amz-Cf-Id:
144
+ - mbliRIKKiAQjGo9tR4VjqK8IZTKtq0EK3p7-D2JxFlYWtziVB5gJfw==
145
+ body:
146
+ encoding: ASCII-8BIT
147
+ string: ok
148
+ http_version:
149
+ recorded_at: Tue, 08 May 2018 10:30:06 GMT
150
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,150 @@
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.20.2 ruby/2.3.3 x86_64-darwin15 aws-sdk-sqs/1.3.0
16
+ X-Amz-Date:
17
+ - 20180508T094700Z
18
+ X-Amz-Content-Sha256:
19
+ - 5761efd13dd0ed81182207171d3660628968189941431d6044920ef8fe7b1160
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=320fd5e4a16dbf0f04c65595516867443637c8f7278349c0870209eeee57cd96
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
+ - Tue, 08 May 2018 09:47:00 GMT
36
+ Content-Type:
37
+ - text/xml
38
+ Content-Length:
39
+ - '330'
40
+ Connection:
41
+ - keep-alive
42
+ X-Amzn-Requestid:
43
+ - 90d1e902-eb78-56b1-8e31-ba699f2cbc88
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>90d1e902-eb78-56b1-8e31-ba699f2cbc88</RequestId></ResponseMetadata></GetQueueUrlResponse>
47
+ http_version:
48
+ recorded_at: Tue, 08 May 2018 09:47:00 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.20.2 ruby/2.3.3 x86_64-darwin15 aws-sdk-sqs/1.3.0
62
+ X-Amz-Date:
63
+ - 20180508T094700Z
64
+ X-Amz-Content-Sha256:
65
+ - 4fa1f9790ab8d8b778fc048ef890ef00e82c1fd4658cd21964eff9eb5dc9426d
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=9bf193363d0e9d47c2286f4ca182057152c791e99f73160ff7b17f8362f5fa88
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
+ - Tue, 08 May 2018 09:47:00 GMT
82
+ Content-Type:
83
+ - text/xml
84
+ Content-Length:
85
+ - '446'
86
+ Connection:
87
+ - keep-alive
88
+ X-Amzn-Requestid:
89
+ - be0ad828-d22d-5165-88d7-8b43a67987ba
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>0</Value></Attribute><Attribute><Name>ApproximateNumberOfMessagesNotVisible</Name><Value>0</Value></Attribute></GetQueueAttributesResult><ResponseMetadata><RequestId>be0ad828-d22d-5165-88d7-8b43a67987ba</RequestId></ResponseMetadata></GetQueueAttributesResponse>
93
+ http_version:
94
+ recorded_at: Tue, 08 May 2018 09:47:00 GMT
95
+ - request:
96
+ method: post
97
+ uri: "<SLACK_WEBHOOK_URL>"
98
+ body:
99
+ 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%3Anull%2C%22color%22%3A%22warning%22%7D%5D%7D
101
+ headers:
102
+ Accept-Encoding:
103
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
104
+ Accept:
105
+ - "*/*"
106
+ User-Agent:
107
+ - Ruby
108
+ Content-Type:
109
+ - application/x-www-form-urlencoded
110
+ response:
111
+ status:
112
+ code: 200
113
+ message: OK
114
+ headers:
115
+ Content-Type:
116
+ - text/html
117
+ Content-Length:
118
+ - '22'
119
+ Connection:
120
+ - keep-alive
121
+ Date:
122
+ - Tue, 08 May 2018 09:47:00 GMT
123
+ Server:
124
+ - Apache
125
+ X-Slack-Backend:
126
+ - h
127
+ Referrer-Policy:
128
+ - no-referrer
129
+ Strict-Transport-Security:
130
+ - max-age=31536000; includeSubDomains; preload
131
+ X-Frame-Options:
132
+ - SAMEORIGIN
133
+ Vary:
134
+ - Accept-Encoding
135
+ Access-Control-Allow-Origin:
136
+ - "*"
137
+ X-Via:
138
+ - haproxy-www-cvx8
139
+ X-Cache:
140
+ - Miss from cloudfront
141
+ Via:
142
+ - 1.1 f794b89ac7b5d3a7a6b25a236579db6c.cloudfront.net (CloudFront)
143
+ X-Amz-Cf-Id:
144
+ - bkYNFP6Gnanq0lrZLB3V4BwXtCqIGV0KyyQdx_n8Qcl7CyyD0_n1wQ==
145
+ body:
146
+ encoding: ASCII-8BIT
147
+ string: ok
148
+ http_version:
149
+ recorded_at: Tue, 08 May 2018 09:47:00 GMT
150
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,150 @@
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.20.2 ruby/2.3.3 x86_64-darwin15 aws-sdk-sqs/1.3.0
16
+ X-Amz-Date:
17
+ - 20180508T094659Z
18
+ X-Amz-Content-Sha256:
19
+ - 5761efd13dd0ed81182207171d3660628968189941431d6044920ef8fe7b1160
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=5f7473224d2f7dd464748f27ffc30935f69eed31ab6b5b5ed0728fd40fce2ba2
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
+ - Tue, 08 May 2018 09:46:59 GMT
36
+ Content-Type:
37
+ - text/xml
38
+ Content-Length:
39
+ - '330'
40
+ Connection:
41
+ - keep-alive
42
+ X-Amzn-Requestid:
43
+ - f1a53869-39b4-551b-8328-6b024de7ba2f
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>f1a53869-39b4-551b-8328-6b024de7ba2f</RequestId></ResponseMetadata></GetQueueUrlResponse>
47
+ http_version:
48
+ recorded_at: Tue, 08 May 2018 09:46:59 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.20.2 ruby/2.3.3 x86_64-darwin15 aws-sdk-sqs/1.3.0
62
+ X-Amz-Date:
63
+ - 20180508T094659Z
64
+ X-Amz-Content-Sha256:
65
+ - 4fa1f9790ab8d8b778fc048ef890ef00e82c1fd4658cd21964eff9eb5dc9426d
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=cf3ef581236b7ee88540338aa3bc6cdd604b7d9b368c5c94eed20a75184acf01
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
+ - Tue, 08 May 2018 09:46:59 GMT
82
+ Content-Type:
83
+ - text/xml
84
+ Content-Length:
85
+ - '446'
86
+ Connection:
87
+ - keep-alive
88
+ X-Amzn-Requestid:
89
+ - dad63327-bcc0-5db4-9612-604cc8936f6b
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>0</Value></Attribute><Attribute><Name>ApproximateNumberOfMessagesNotVisible</Name><Value>0</Value></Attribute></GetQueueAttributesResult><ResponseMetadata><RequestId>dad63327-bcc0-5db4-9612-604cc8936f6b</RequestId></ResponseMetadata></GetQueueAttributesResponse>
93
+ http_version:
94
+ recorded_at: Tue, 08 May 2018 09:46:59 GMT
95
+ - request:
96
+ method: post
97
+ uri: "<SLACK_WEBHOOK_URL>"
98
+ body:
99
+ 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%3Anull%2C%22color%22%3A%22warning%22%7D%5D%7D
101
+ headers:
102
+ Accept-Encoding:
103
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
104
+ Accept:
105
+ - "*/*"
106
+ User-Agent:
107
+ - Ruby
108
+ Content-Type:
109
+ - application/x-www-form-urlencoded
110
+ response:
111
+ status:
112
+ code: 200
113
+ message: OK
114
+ headers:
115
+ Content-Type:
116
+ - text/html
117
+ Content-Length:
118
+ - '22'
119
+ Connection:
120
+ - keep-alive
121
+ Date:
122
+ - Tue, 08 May 2018 09:47:00 GMT
123
+ Server:
124
+ - Apache
125
+ X-Slack-Backend:
126
+ - h
127
+ Referrer-Policy:
128
+ - no-referrer
129
+ Strict-Transport-Security:
130
+ - max-age=31536000; includeSubDomains; preload
131
+ X-Frame-Options:
132
+ - SAMEORIGIN
133
+ Vary:
134
+ - Accept-Encoding
135
+ Access-Control-Allow-Origin:
136
+ - "*"
137
+ X-Via:
138
+ - haproxy-www-v2r6
139
+ X-Cache:
140
+ - Miss from cloudfront
141
+ Via:
142
+ - 1.1 e98abde3c6a5bc27d4bdd4168baa587d.cloudfront.net (CloudFront)
143
+ X-Amz-Cf-Id:
144
+ - EOPeYSPwRDDHg0efem27-fUe1khpvI0655b_TRJMzl55N7m609xePw==
145
+ body:
146
+ encoding: ASCII-8BIT
147
+ string: ok
148
+ http_version:
149
+ recorded_at: Tue, 08 May 2018 09:47:00 GMT
150
+ recorded_with: VCR 3.0.3