right_support 2.11.3 → 2.12.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +4 -0
  3. data/VERSION +1 -1
  4. data/lib/right_support/notifiers/airbrake.rb +194 -0
  5. data/lib/right_support/notifiers/base.rb +73 -0
  6. data/lib/right_support/notifiers/blacklisters/base.rb +48 -0
  7. data/lib/right_support/notifiers/blacklisters/canonical.rb +60 -0
  8. data/lib/right_support/notifiers/blacklisters/regular_expression.rb +86 -0
  9. data/{features/support/file_utils_bundler_mixin.rb → lib/right_support/notifiers/blacklisters/simple.rb} +21 -20
  10. data/lib/right_support/notifiers/blacklisters/snake_case.rb +60 -0
  11. data/lib/right_support/notifiers/blacklisters/wildcard.rb +65 -0
  12. data/lib/right_support/notifiers/blacklisters.rb +34 -0
  13. data/lib/right_support/notifiers/logger.rb +94 -0
  14. data/lib/right_support/notifiers/notification.rb +57 -0
  15. data/lib/right_support/notifiers/utilities/backtrace_decoder.rb +234 -0
  16. data/lib/right_support/notifiers/utilities.rb +29 -0
  17. data/lib/right_support/notifiers.rb +32 -0
  18. data/lib/right_support/rack/request_logger.rb +13 -9
  19. data/lib/right_support.rb +1 -0
  20. data/right_support.gemspec +19 -70
  21. metadata +17 -69
  22. data/.coveralls.yml +0 -2
  23. data/.rspec +0 -3
  24. data/.simplecov +0 -6
  25. data/.travis.yml +0 -13
  26. data/Gemfile +0 -51
  27. data/Gemfile.lock +0 -153
  28. data/features/balancer_error_handling.feature +0 -34
  29. data/features/balancer_health_check.feature +0 -33
  30. data/features/hash_tools.feature +0 -27
  31. data/features/http_client_timeout.feature +0 -19
  32. data/features/serialization.feature +0 -113
  33. data/features/step_definitions/hash_tools_steps.rb +0 -41
  34. data/features/step_definitions/http_client_steps.rb +0 -27
  35. data/features/step_definitions/request_balancer_steps.rb +0 -93
  36. data/features/step_definitions/ruby_steps.rb +0 -176
  37. data/features/step_definitions/serialization_steps.rb +0 -133
  38. data/features/step_definitions/server_steps.rb +0 -134
  39. data/features/support/env.rb +0 -148
  40. data/right_support.rconf +0 -9
  41. data/spec/config/feature_set_spec.rb +0 -83
  42. data/spec/crypto/signed_hash_spec.rb +0 -73
  43. data/spec/data/hash_tools_spec.rb +0 -602
  44. data/spec/data/mash_spec.rb +0 -313
  45. data/spec/data/token_spec.rb +0 -21
  46. data/spec/data/uuid_spec.rb +0 -45
  47. data/spec/db/cassandra_model_part1_spec.rb +0 -84
  48. data/spec/db/cassandra_model_part2_spec.rb +0 -73
  49. data/spec/db/cassandra_model_spec.rb +0 -375
  50. data/spec/fixtures/encrypted_priv_rsa.pem +0 -30
  51. data/spec/fixtures/good_priv_dsa.pem +0 -12
  52. data/spec/fixtures/good_priv_rsa.pem +0 -15
  53. data/spec/fixtures/good_pub_dsa.ssh +0 -1
  54. data/spec/fixtures/good_pub_rsa.pem +0 -5
  55. data/spec/fixtures/good_pub_rsa.ssh +0 -1
  56. data/spec/log/exception_logger_spec.rb +0 -76
  57. data/spec/log/filter_logger_spec.rb +0 -66
  58. data/spec/log/mixin_spec.rb +0 -141
  59. data/spec/log/multiplexer_spec.rb +0 -54
  60. data/spec/log/null_logger_spec.rb +0 -36
  61. data/spec/log/step_level_logger_spec.rb +0 -49
  62. data/spec/log/system_logger_spec.rb +0 -172
  63. data/spec/net/address_helper_spec.rb +0 -57
  64. data/spec/net/dns_spec.rb +0 -187
  65. data/spec/net/http_client_spec.rb +0 -181
  66. data/spec/net/lb/health_check_spec.rb +0 -417
  67. data/spec/net/lb/round_robin_spec.rb +0 -15
  68. data/spec/net/lb/sticky_spec.rb +0 -92
  69. data/spec/net/request_balancer_spec.rb +0 -690
  70. data/spec/net/s3_helper_spec.rb +0 -160
  71. data/spec/net/ssl_spec.rb +0 -42
  72. data/spec/net/string_encoder_spec.rb +0 -58
  73. data/spec/rack/log_setter_spec.rb +0 -5
  74. data/spec/rack/request_logger_spec.rb +0 -225
  75. data/spec/rack/request_tracker_spec.rb +0 -115
  76. data/spec/rack/runtime_spec.rb +0 -49
  77. data/spec/ruby/easy_singleton_spec.rb +0 -72
  78. data/spec/ruby/object_extensions_spec.rb +0 -27
  79. data/spec/ruby/string_extensions_spec.rb +0 -98
  80. data/spec/spec_helper.rb +0 -188
  81. data/spec/stats/activity_spec.rb +0 -425
  82. data/spec/stats/exceptions_spec.rb +0 -247
  83. data/spec/stats/helpers_spec.rb +0 -685
  84. data/spec/validation/openssl_spec.rb +0 -37
  85. data/spec/validation/ssh_spec.rb +0 -39
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: right_support 2.11.3 ruby lib
5
+ # stub: right_support 2.12.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "right_support"
9
- s.version = "2.11.3"
9
+ s.version = "2.12.1"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Tony Spataro", "Sergey Sergyenko", "Ryan Williamson", "Lee Kirchhoff", "Alexey Karpik", "Scott Messier"]
14
- s.date = "2016-07-20"
14
+ s.date = "2016-08-04"
15
15
  s.description = "A toolkit of useful, reusable foundation code created by RightScale."
16
16
  s.email = "support@rightscale.com"
17
17
  s.extra_rdoc_files = [
@@ -19,30 +19,11 @@ Gem::Specification.new do |s|
19
19
  "README.md"
20
20
  ]
21
21
  s.files = [
22
- ".coveralls.yml",
23
- ".rspec",
24
- ".simplecov",
25
- ".travis.yml",
26
22
  "CHANGELOG.rdoc",
27
- "Gemfile",
28
- "Gemfile.lock",
29
23
  "LICENSE",
30
24
  "README.md",
31
25
  "Rakefile",
32
26
  "VERSION",
33
- "features/balancer_error_handling.feature",
34
- "features/balancer_health_check.feature",
35
- "features/hash_tools.feature",
36
- "features/http_client_timeout.feature",
37
- "features/serialization.feature",
38
- "features/step_definitions/hash_tools_steps.rb",
39
- "features/step_definitions/http_client_steps.rb",
40
- "features/step_definitions/request_balancer_steps.rb",
41
- "features/step_definitions/ruby_steps.rb",
42
- "features/step_definitions/serialization_steps.rb",
43
- "features/step_definitions/server_steps.rb",
44
- "features/support/env.rb",
45
- "features/support/file_utils_bundler_mixin.rb",
46
27
  "lib/right_support.rb",
47
28
  "lib/right_support/ci.rb",
48
29
  "lib/right_support/ci/java_cucumber_formatter.rb",
@@ -88,6 +69,20 @@ Gem::Specification.new do |s|
88
69
  "lib/right_support/net/ssl.rb",
89
70
  "lib/right_support/net/ssl/open_ssl_patch.rb",
90
71
  "lib/right_support/net/string_encoder.rb",
72
+ "lib/right_support/notifiers.rb",
73
+ "lib/right_support/notifiers/airbrake.rb",
74
+ "lib/right_support/notifiers/base.rb",
75
+ "lib/right_support/notifiers/blacklisters.rb",
76
+ "lib/right_support/notifiers/blacklisters/base.rb",
77
+ "lib/right_support/notifiers/blacklisters/canonical.rb",
78
+ "lib/right_support/notifiers/blacklisters/regular_expression.rb",
79
+ "lib/right_support/notifiers/blacklisters/simple.rb",
80
+ "lib/right_support/notifiers/blacklisters/snake_case.rb",
81
+ "lib/right_support/notifiers/blacklisters/wildcard.rb",
82
+ "lib/right_support/notifiers/logger.rb",
83
+ "lib/right_support/notifiers/notification.rb",
84
+ "lib/right_support/notifiers/utilities.rb",
85
+ "lib/right_support/notifiers/utilities/backtrace_decoder.rb",
91
86
  "lib/right_support/rack.rb",
92
87
  "lib/right_support/rack/log_setter.rb",
93
88
  "lib/right_support/rack/request_logger.rb",
@@ -104,57 +99,11 @@ Gem::Specification.new do |s|
104
99
  "lib/right_support/validation.rb",
105
100
  "lib/right_support/validation/openssl.rb",
106
101
  "lib/right_support/validation/ssh.rb",
107
- "right_support.gemspec",
108
- "right_support.rconf",
109
- "spec/config/feature_set_spec.rb",
110
- "spec/crypto/signed_hash_spec.rb",
111
- "spec/data/hash_tools_spec.rb",
112
- "spec/data/mash_spec.rb",
113
- "spec/data/token_spec.rb",
114
- "spec/data/uuid_spec.rb",
115
- "spec/db/cassandra_model_part1_spec.rb",
116
- "spec/db/cassandra_model_part2_spec.rb",
117
- "spec/db/cassandra_model_spec.rb",
118
- "spec/fixtures/encrypted_priv_rsa.pem",
119
- "spec/fixtures/good_priv_dsa.pem",
120
- "spec/fixtures/good_priv_rsa.pem",
121
- "spec/fixtures/good_pub_dsa.ssh",
122
- "spec/fixtures/good_pub_rsa.pem",
123
- "spec/fixtures/good_pub_rsa.ssh",
124
- "spec/log/exception_logger_spec.rb",
125
- "spec/log/filter_logger_spec.rb",
126
- "spec/log/mixin_spec.rb",
127
- "spec/log/multiplexer_spec.rb",
128
- "spec/log/null_logger_spec.rb",
129
- "spec/log/step_level_logger_spec.rb",
130
- "spec/log/system_logger_spec.rb",
131
- "spec/net/address_helper_spec.rb",
132
- "spec/net/dns_spec.rb",
133
- "spec/net/http_client_spec.rb",
134
- "spec/net/lb/health_check_spec.rb",
135
- "spec/net/lb/round_robin_spec.rb",
136
- "spec/net/lb/sticky_spec.rb",
137
- "spec/net/request_balancer_spec.rb",
138
- "spec/net/s3_helper_spec.rb",
139
- "spec/net/ssl_spec.rb",
140
- "spec/net/string_encoder_spec.rb",
141
- "spec/rack/log_setter_spec.rb",
142
- "spec/rack/request_logger_spec.rb",
143
- "spec/rack/request_tracker_spec.rb",
144
- "spec/rack/runtime_spec.rb",
145
- "spec/ruby/easy_singleton_spec.rb",
146
- "spec/ruby/object_extensions_spec.rb",
147
- "spec/ruby/string_extensions_spec.rb",
148
- "spec/spec_helper.rb",
149
- "spec/stats/activity_spec.rb",
150
- "spec/stats/exceptions_spec.rb",
151
- "spec/stats/helpers_spec.rb",
152
- "spec/validation/openssl_spec.rb",
153
- "spec/validation/ssh_spec.rb"
102
+ "right_support.gemspec"
154
103
  ]
155
104
  s.homepage = "https://github.com/rightscale/right_support"
156
105
  s.licenses = ["MIT"]
157
- s.rubygems_version = "2.2.2"
106
+ s.rubygems_version = "2.2.5"
158
107
  s.summary = "Reusable foundation code."
159
108
 
160
109
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: right_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.11.3
4
+ version: 2.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Spataro
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2016-07-20 00:00:00.000000000 Z
16
+ date: 2016-08-11 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: rake
@@ -93,30 +93,11 @@ extra_rdoc_files:
93
93
  - LICENSE
94
94
  - README.md
95
95
  files:
96
- - ".coveralls.yml"
97
- - ".rspec"
98
- - ".simplecov"
99
- - ".travis.yml"
100
96
  - CHANGELOG.rdoc
101
- - Gemfile
102
- - Gemfile.lock
103
97
  - LICENSE
104
98
  - README.md
105
99
  - Rakefile
106
100
  - VERSION
107
- - features/balancer_error_handling.feature
108
- - features/balancer_health_check.feature
109
- - features/hash_tools.feature
110
- - features/http_client_timeout.feature
111
- - features/serialization.feature
112
- - features/step_definitions/hash_tools_steps.rb
113
- - features/step_definitions/http_client_steps.rb
114
- - features/step_definitions/request_balancer_steps.rb
115
- - features/step_definitions/ruby_steps.rb
116
- - features/step_definitions/serialization_steps.rb
117
- - features/step_definitions/server_steps.rb
118
- - features/support/env.rb
119
- - features/support/file_utils_bundler_mixin.rb
120
101
  - lib/right_support.rb
121
102
  - lib/right_support/ci.rb
122
103
  - lib/right_support/ci/java_cucumber_formatter.rb
@@ -162,6 +143,20 @@ files:
162
143
  - lib/right_support/net/ssl.rb
163
144
  - lib/right_support/net/ssl/open_ssl_patch.rb
164
145
  - lib/right_support/net/string_encoder.rb
146
+ - lib/right_support/notifiers.rb
147
+ - lib/right_support/notifiers/airbrake.rb
148
+ - lib/right_support/notifiers/base.rb
149
+ - lib/right_support/notifiers/blacklisters.rb
150
+ - lib/right_support/notifiers/blacklisters/base.rb
151
+ - lib/right_support/notifiers/blacklisters/canonical.rb
152
+ - lib/right_support/notifiers/blacklisters/regular_expression.rb
153
+ - lib/right_support/notifiers/blacklisters/simple.rb
154
+ - lib/right_support/notifiers/blacklisters/snake_case.rb
155
+ - lib/right_support/notifiers/blacklisters/wildcard.rb
156
+ - lib/right_support/notifiers/logger.rb
157
+ - lib/right_support/notifiers/notification.rb
158
+ - lib/right_support/notifiers/utilities.rb
159
+ - lib/right_support/notifiers/utilities/backtrace_decoder.rb
165
160
  - lib/right_support/rack.rb
166
161
  - lib/right_support/rack/log_setter.rb
167
162
  - lib/right_support/rack/request_logger.rb
@@ -179,52 +174,6 @@ files:
179
174
  - lib/right_support/validation/openssl.rb
180
175
  - lib/right_support/validation/ssh.rb
181
176
  - right_support.gemspec
182
- - right_support.rconf
183
- - spec/config/feature_set_spec.rb
184
- - spec/crypto/signed_hash_spec.rb
185
- - spec/data/hash_tools_spec.rb
186
- - spec/data/mash_spec.rb
187
- - spec/data/token_spec.rb
188
- - spec/data/uuid_spec.rb
189
- - spec/db/cassandra_model_part1_spec.rb
190
- - spec/db/cassandra_model_part2_spec.rb
191
- - spec/db/cassandra_model_spec.rb
192
- - spec/fixtures/encrypted_priv_rsa.pem
193
- - spec/fixtures/good_priv_dsa.pem
194
- - spec/fixtures/good_priv_rsa.pem
195
- - spec/fixtures/good_pub_dsa.ssh
196
- - spec/fixtures/good_pub_rsa.pem
197
- - spec/fixtures/good_pub_rsa.ssh
198
- - spec/log/exception_logger_spec.rb
199
- - spec/log/filter_logger_spec.rb
200
- - spec/log/mixin_spec.rb
201
- - spec/log/multiplexer_spec.rb
202
- - spec/log/null_logger_spec.rb
203
- - spec/log/step_level_logger_spec.rb
204
- - spec/log/system_logger_spec.rb
205
- - spec/net/address_helper_spec.rb
206
- - spec/net/dns_spec.rb
207
- - spec/net/http_client_spec.rb
208
- - spec/net/lb/health_check_spec.rb
209
- - spec/net/lb/round_robin_spec.rb
210
- - spec/net/lb/sticky_spec.rb
211
- - spec/net/request_balancer_spec.rb
212
- - spec/net/s3_helper_spec.rb
213
- - spec/net/ssl_spec.rb
214
- - spec/net/string_encoder_spec.rb
215
- - spec/rack/log_setter_spec.rb
216
- - spec/rack/request_logger_spec.rb
217
- - spec/rack/request_tracker_spec.rb
218
- - spec/rack/runtime_spec.rb
219
- - spec/ruby/easy_singleton_spec.rb
220
- - spec/ruby/object_extensions_spec.rb
221
- - spec/ruby/string_extensions_spec.rb
222
- - spec/spec_helper.rb
223
- - spec/stats/activity_spec.rb
224
- - spec/stats/exceptions_spec.rb
225
- - spec/stats/helpers_spec.rb
226
- - spec/validation/openssl_spec.rb
227
- - spec/validation/ssh_spec.rb
228
177
  homepage: https://github.com/rightscale/right_support
229
178
  licenses:
230
179
  - MIT
@@ -245,9 +194,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
245
194
  version: '0'
246
195
  requirements: []
247
196
  rubyforge_project:
248
- rubygems_version: 2.2.2
197
+ rubygems_version: 2.2.5
249
198
  signing_key:
250
199
  specification_version: 4
251
200
  summary: Reusable foundation code.
252
201
  test_files: []
253
- has_rdoc:
data/.coveralls.yml DELETED
@@ -1,2 +0,0 @@
1
- service_name: travis-ci
2
-
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --colour
2
- --format=nested
3
- --backtrace
data/.simplecov DELETED
@@ -1,6 +0,0 @@
1
- require 'coveralls'
2
-
3
- Coveralls.wear_merged! do
4
- add_filter "/features/"
5
- add_filter "/spec/"
6
- end
data/.travis.yml DELETED
@@ -1,13 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
- branches:
4
- only:
5
- - master
6
- rvm:
7
- - 2.0
8
- - 2.1
9
- script:
10
- - bundle exec rake ci:spec
11
- - bundle exec rake ci:cucumber
12
- - bundle exec rake coveralls:push
13
- bundler_args: --without debugger development
data/Gemfile DELETED
@@ -1,51 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Gems that RightSupport can optionally make use of, but which it does
4
- # not require to be installed. These would be 'optional dependencies'
5
- # if gemspecs allowed for them.
6
- #
7
- # Note that these are all require-nil because we want to simulate the behavior
8
- # of the library in a context where it lazy-loads its optional dependencies.
9
- group :optional do
10
- gem 'net-ssh', '~> 2.0', :require => nil
11
- # mime-types 2.x is no longer compatible with Ruby 1.8 and
12
- # mime-types 1.x is only being maintained for security issues .. use 1.x for now, since we
13
- # maintain 1.8 compatibility
14
- gem 'mime-types', '~> 1.0', :require => nil
15
- gem 'rest-client', '~> 1.6.7', :require => nil
16
- gem 'addressable', '~> 2.2.7', :require => nil
17
- gem 'uuidtools', '~> 2.0', :require => nil
18
- gem 'simple_uuid', '~> 0.2', :require => nil
19
- gem 'uuid', '~> 2.3', :require => nil
20
- gem 'json', '~> 1.8', :require => nil
21
- gem 'iconv', :platforms => :ruby_18
22
- end
23
-
24
- gem 'rake', '~> 10.0', :group=>[:development, :test]
25
-
26
- # Gems used to run RightSupport tests; omitted from the gemspec, but available in CI.
27
- group :test do
28
- gem 'flexmock', '~> 1.0'
29
- gem 'rspec', '~> 2.13.0'
30
- gem 'right_develop', '~> 3.1'
31
-
32
- # Cuke >= 1.3.3 depends on RubyGems > 2.0 without specifying that in its gemspec
33
- gem 'cucumber', ['~> 1.0', '< 1.3.3']
34
-
35
- # Nokogiri is a transitive dependency (via jeweler and other gems) that stopped being
36
- # incompatible with Ruby 1.8 as of version 1.6.0, but fails to declare this in its gemspec.
37
- # Work around the bug by locking ourselves to 1.5.x, guaranteeing that we can install our bundle
38
- # under Ruby 1.8.
39
- gem 'nokogiri', '~> 1.5.0'
40
-
41
- # Code coverage reporting and metrics pp
42
- gem 'coveralls', :require => false
43
- end
44
-
45
- # Gems that are used purely for development; present in the gemspec, not available in CI.
46
- group :development do
47
- gem 'jeweler', '~> 2.0'
48
- gem 'ruby-debug', :platforms => [:ruby_18]
49
- gem 'pry', :platforms => [:ruby_19, :ruby_20, :ruby_21]
50
- gem 'pry-byebug', :platforms => [:ruby_20, :ruby_21]
51
- end
data/Gemfile.lock DELETED
@@ -1,153 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- addressable (2.2.8)
5
- builder (3.2.2)
6
- byebug (2.7.0)
7
- columnize (~> 0.3)
8
- debugger-linecache (~> 1.2)
9
- coderay (1.1.0)
10
- columnize (0.8.9)
11
- coveralls (0.7.1)
12
- multi_json (~> 1.3)
13
- rest-client
14
- simplecov (>= 0.7)
15
- term-ansicolor
16
- thor
17
- cucumber (1.3.2)
18
- builder (>= 2.1.2)
19
- diff-lcs (>= 1.1.3)
20
- gherkin (~> 2.12.0)
21
- multi_json (~> 1.3)
22
- debugger-linecache (1.2.0)
23
- diff-lcs (1.2.5)
24
- docile (1.1.5)
25
- faraday (0.8.9)
26
- multipart-post (~> 1.2.0)
27
- flexmock (1.3.3)
28
- gherkin (2.12.2)
29
- multi_json (~> 1.3)
30
- git (1.2.9.1)
31
- github_api (0.10.1)
32
- addressable
33
- faraday (~> 0.8.1)
34
- hashie (>= 1.2)
35
- multi_json (~> 1.4)
36
- nokogiri (~> 1.5.2)
37
- oauth2
38
- hashie (2.0.5)
39
- highline (1.6.21)
40
- iconv (1.0.4)
41
- jeweler (2.0.1)
42
- builder
43
- bundler (>= 1.0)
44
- git (>= 1.2.5)
45
- github_api
46
- highline (>= 1.6.15)
47
- nokogiri (>= 1.5.10)
48
- rake
49
- rdoc
50
- json (1.8.3)
51
- jwt (0.1.11)
52
- multi_json (>= 1.5)
53
- linecache (0.46)
54
- rbx-require-relative (> 0.0.4)
55
- macaddr (1.6.5)
56
- systemu (~> 2.6.2)
57
- method_source (0.8.2)
58
- mime-types (1.25.1)
59
- multi_json (1.10.1)
60
- multi_xml (0.5.5)
61
- multipart-post (1.2.0)
62
- net-ssh (2.8.0)
63
- nokogiri (1.5.11)
64
- oauth2 (0.9.3)
65
- faraday (>= 0.8, < 0.10)
66
- jwt (~> 0.1.8)
67
- multi_json (~> 1.3)
68
- multi_xml (~> 0.5)
69
- rack (~> 1.2)
70
- pry (0.10.1)
71
- coderay (~> 1.1.0)
72
- method_source (~> 0.8.1)
73
- slop (~> 3.4)
74
- pry-byebug (1.3.3)
75
- byebug (~> 2.7)
76
- pry (~> 0.10)
77
- rack (1.5.2)
78
- rake (10.3.2)
79
- rbx-require-relative (0.0.9)
80
- rdoc (4.1.1)
81
- json (~> 1.4)
82
- rest-client (1.6.7)
83
- mime-types (>= 1.16)
84
- right_aws (3.1.0)
85
- right_http_connection (>= 1.2.5)
86
- right_develop (3.1.4)
87
- builder (~> 3.0)
88
- rack
89
- right_aws (>= 2.1.0)
90
- right_git (>= 1.0)
91
- right_support (>= 2.8.31, < 3.0.0)
92
- trollop (>= 1.0, < 3.0)
93
- right_git (1.0.1)
94
- right_support (>= 2.8.10)
95
- right_http_connection (1.5.0)
96
- right_support (2.9.1)
97
- rspec (2.13.0)
98
- rspec-core (~> 2.13.0)
99
- rspec-expectations (~> 2.13.0)
100
- rspec-mocks (~> 2.13.0)
101
- rspec-core (2.13.1)
102
- rspec-expectations (2.13.0)
103
- diff-lcs (>= 1.1.3, < 2.0)
104
- rspec-mocks (2.13.1)
105
- ruby-debug (0.10.4)
106
- columnize (>= 0.1)
107
- ruby-debug-base (~> 0.10.4.0)
108
- ruby-debug-base (0.10.4)
109
- linecache (>= 0.3)
110
- simple_uuid (0.4.0)
111
- simplecov (0.9.1)
112
- docile (~> 1.1.0)
113
- multi_json (~> 1.0)
114
- simplecov-html (~> 0.8.0)
115
- simplecov-html (0.8.0)
116
- slop (3.6.0)
117
- systemu (2.6.3)
118
- term-ansicolor (1.3.0)
119
- tins (~> 1.0)
120
- thor (0.19.1)
121
- tins (1.3.3)
122
- trollop (2.0)
123
- uuid (2.3.7)
124
- macaddr (~> 1.0)
125
- uuidtools (2.1.4)
126
-
127
- PLATFORMS
128
- ruby
129
-
130
- DEPENDENCIES
131
- addressable (~> 2.2.7)
132
- coveralls
133
- cucumber (~> 1.0, < 1.3.3)
134
- flexmock (~> 1.0)
135
- iconv
136
- jeweler (~> 2.0)
137
- json (~> 1.8)
138
- mime-types (~> 1.0)
139
- net-ssh (~> 2.0)
140
- nokogiri (~> 1.5.0)
141
- pry
142
- pry-byebug
143
- rake (~> 10.0)
144
- rest-client (~> 1.6.7)
145
- right_develop (~> 3.1)
146
- rspec (~> 2.13.0)
147
- ruby-debug
148
- simple_uuid (~> 0.2)
149
- uuid (~> 2.3)
150
- uuidtools (~> 2.0)
151
-
152
- BUNDLED WITH
153
- 1.11.2
@@ -1,34 +0,0 @@
1
- Feature: request balancer error handling
2
- In order to enhance app availability and development velocity
3
- RequestBalancer should consider certain errors as fatal by default
4
- So careless developers do not cause unexpected behavior when failures occur
5
-
6
- Scenario: well-behaved servers
7
- Given 5 servers that respond with 200
8
- When a client makes a load-balanced request to '/'
9
- Then the request should complete
10
- And the request should be attempted once
11
-
12
- Scenario: resource not found
13
- Given 4 servers that respond with 404
14
- When a client makes a load-balanced request to '/'
15
- Then the request should raise ResourceNotFound
16
- And the request should be attempted once
17
-
18
- Scenario: client-side error
19
- Given a server that responds with 200
20
- When a client makes a buggy load-balanced request to '/'
21
- Then the request should raise ArgumentError
22
- And the request should be attempted once
23
-
24
- Scenario: socket open timeout
25
- Given 2 blackholed servers
26
- When a client makes a load-balanced request to '/'
27
- Then the request should be attempted 2 times
28
- And the request should raise NoResult
29
-
30
- Scenario: HTTP request timeout
31
- Given 2 overloaded servers
32
- When a client makes a load-balanced request to '/'
33
- Then the request should be attempted 2 times
34
- And the request should raise NoResult
@@ -1,33 +0,0 @@
1
- Feature: request balancer health check
2
- In order to enhance system availability for customers
3
- RightSupport should track endpoint health when making load-balanced REST requests
4
- So apps do not become hung during network failures
5
-
6
- Scenario: mixed servers (overloaded, blackholed) using health check
7
- Given 4 overloaded servers
8
- And 4 blackholed servers
9
- And HealthCheck balancing policy
10
- When a client makes a load-balanced request to '/' with timeout 1 and open_timeout 2
11
- Then the request should raise in less than 12 seconds
12
-
13
- Scenario: mixed servers (well-behaved, blackholed) using health check
14
- Given 4 servers that respond with 200
15
- And 4 blackholed servers
16
- And HealthCheck balancing policy
17
- When a client makes a load-balanced request to '/' with timeout 1 and open_timeout 2
18
- Then the request should complete in less than 8 seconds
19
-
20
- Scenario: mixed servers (overloaded, well-behaved, blackholed) using health check
21
- Given 1 overloaded server
22
- And 1 server that responds with 200
23
- And 1 blackholed server
24
- And HealthCheck balancing policy
25
- When a client makes a load-balanced request to '/' with timeout 1 and open_timeout 2
26
- Then the request should complete in less than 3 seconds
27
-
28
- Scenario: mixed servers (condition commented by Tony https://rightscale.acunote.com/projects/2091/tasks/23987#comments) using health check
29
- Given 3 overloaded servers
30
- And 1 server that responds with 200
31
- And HealthCheck balancing policy
32
- When a client makes a load-balanced request to '/' with timeout 1 and open_timeout 2
33
- Then the request should complete in less than 4 seconds
@@ -1,27 +0,0 @@
1
- Feature: tools for hash manipulation
2
- In order to successfully work with hashes
3
- RightSupport should have a tested set of tools
4
- So the developers can trust each method
5
-
6
- Scenario: getting a value from a path
7
- Given a hash map with the form {"key1":"val1", "key2":{"key3":"val2"}}
8
- And a path array ["key2", "key3"]
9
- When I call the deep_get method
10
- Then The deep_get method response should be: val2
11
-
12
- Scenario: setting a value on a path
13
- Given a hash map with the form {"key1":{"key4":{"key5":"no"}}, "key2":{"key3":"val2"}}
14
- And a path array ["key1", "key4", "key5"]
15
- And a value val3
16
- When I call the deep_set! method
17
- Then The hash should be: {"key1":{"key4":{"key5":"val3"}}, "key2":{"key3":"val2"}}
18
-
19
- Scenario: merging two hashes
20
- Given a hash map with the form {"key1":"val1", "key2":{"key3":"val2"}}
21
- When I call the deep_merge! method with the source: {"key1":{"key4":"val3"}}
22
- Then The hash should be: {"key1":{"key4":"val3"}, "key2":{"key3":"val2"}}
23
-
24
- Scenario: subtracting a hash
25
- Given a hash map with the form {"key1":"val1", "key2":{"key3":"val2"}}
26
- When I call the deep_remove! method with the source: {"key1":"val1"}
27
- Then The hash should be: {"key2":{"key3":"val2"}}
@@ -1,19 +0,0 @@
1
- Feature: HTTP client request timeout
2
- In order to enhance system availability for customers
3
- RightSupport should provide robust REST query interfaces
4
- So apps do not become hung during network failures
5
-
6
- Scenario: well-behaved server
7
- Given a server that responds with 200
8
- When a client makes a request to '/' with timeout 1 and open_timeout 2
9
- Then the request should complete in less than 3 seconds
10
-
11
- Scenario: overloaded server
12
- Given an overloaded server
13
- When a client makes a request to '/' with timeout 1 and open_timeout 2
14
- Then the request should raise in less than 3 seconds
15
-
16
- Scenario: blackholed servers
17
- Given a blackholed server
18
- When a client makes a load-balanced request to '/' with timeout 1 and open_timeout 2
19
- Then the request should raise in less than 3 seconds