wavefront-client 3.5.4 → 3.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,8 +21,6 @@ require 'socket'
21
21
  # DEFAULT_OPTS come from the real constants.rb file
22
22
 
23
23
  describe Wavefront::OptHandler do
24
- config_file = Pathname.new(__FILE__).dirname + 'resources' + 'conf.yaml'
25
-
26
24
  it 'uses defaults if nothing else is supplied' do
27
25
  opts = Wavefront::OptHandler.new(Pathname.new('/nofile'), {}).opts
28
26
 
@@ -47,7 +45,7 @@ describe Wavefront::OptHandler do
47
45
  end
48
46
 
49
47
  it 'ensures default config file values override defaults' do
50
- opts = Wavefront::OptHandler.new(config_file, {}).opts
48
+ opts = Wavefront::OptHandler.new(CF, {}).opts
51
49
 
52
50
  expect(opts.class).to be(Hash)
53
51
  expect(opts[:endpoint]).to eq('default.wavefront.com')
@@ -57,7 +55,7 @@ describe Wavefront::OptHandler do
57
55
  end
58
56
 
59
57
  it 'ensures alternate stanza config file values override defaults' do
60
- opts = Wavefront::OptHandler.new(config_file, {profile: 'other'}).opts
58
+ opts = Wavefront::OptHandler.new(CF, {profile: 'other'}).opts
61
59
 
62
60
  expect(opts.class).to be(Hash)
63
61
  expect(opts[:endpoint]).to eq('other.wavefront.com')
@@ -72,7 +70,7 @@ describe Wavefront::OptHandler do
72
70
  sourceformat: 'ruby',
73
71
  }
74
72
 
75
- opts = Wavefront::OptHandler.new(config_file, cli_opts).opts
73
+ opts = Wavefront::OptHandler.new(CF, cli_opts).opts
76
74
 
77
75
  expect(opts.class).to be(Hash)
78
76
  expect(opts[:endpoint]).to eq('cli.wavefront.com')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wavefront-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.4
4
+ version: 3.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Pointer
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2017-02-03 00:00:00.000000000 Z
16
+ date: 2017-03-20 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: bundler
@@ -142,6 +142,7 @@ files:
142
142
  - lib/wavefront/cli.rb
143
143
  - lib/wavefront/cli/alerts.rb
144
144
  - lib/wavefront/cli/batch_write.rb
145
+ - lib/wavefront/cli/dashboards.rb
145
146
  - lib/wavefront/cli/events.rb
146
147
  - lib/wavefront/cli/sources.rb
147
148
  - lib/wavefront/cli/ts.rb
@@ -149,6 +150,7 @@ files:
149
150
  - lib/wavefront/client.rb
150
151
  - lib/wavefront/client/version.rb
151
152
  - lib/wavefront/constants.rb
153
+ - lib/wavefront/dashboards.rb
152
154
  - lib/wavefront/events.rb
153
155
  - lib/wavefront/exception.rb
154
156
  - lib/wavefront/metadata.rb
@@ -170,6 +172,15 @@ files:
170
172
  - spec/wavefront/cli/resources/alert.json
171
173
  - spec/wavefront/cli/resources/alert.raw
172
174
  - spec/wavefront/cli/resources/alert.ruby
175
+ - spec/wavefront/cli/resources/conf.yaml
176
+ - spec/wavefront/cli/resources/input_alert.json
177
+ - spec/wavefront/cli/resources/input_alert.yaml
178
+ - spec/wavefront/cli/resources/sample_alert.json
179
+ - spec/wavefront/cli/resources/sample_alert.txt
180
+ - spec/wavefront/cli/resources/sample_alert.yaml
181
+ - spec/wavefront/cli/resources/sample_dash.json
182
+ - spec/wavefront/cli/resources/sample_dash.txt
183
+ - spec/wavefront/cli/resources/sample_dash.yaml
173
184
  - spec/wavefront/cli/resources/write.parabola
174
185
  - spec/wavefront/cli/sources_spec.rb
175
186
  - spec/wavefront/cli/write_spec.rb
@@ -179,7 +190,6 @@ files:
179
190
  - spec/wavefront/metadata_spec.rb
180
191
  - spec/wavefront/mixins_spec.rb
181
192
  - spec/wavefront/opt_handler_spec.rb
182
- - spec/wavefront/resources/conf.yaml
183
193
  - spec/wavefront/response_spec.rb
184
194
  - spec/wavefront/validators_spec.rb
185
195
  - spec/wavefront/writer_spec.rb
@@ -222,6 +232,15 @@ test_files:
222
232
  - spec/wavefront/cli/resources/alert.json
223
233
  - spec/wavefront/cli/resources/alert.raw
224
234
  - spec/wavefront/cli/resources/alert.ruby
235
+ - spec/wavefront/cli/resources/conf.yaml
236
+ - spec/wavefront/cli/resources/input_alert.json
237
+ - spec/wavefront/cli/resources/input_alert.yaml
238
+ - spec/wavefront/cli/resources/sample_alert.json
239
+ - spec/wavefront/cli/resources/sample_alert.txt
240
+ - spec/wavefront/cli/resources/sample_alert.yaml
241
+ - spec/wavefront/cli/resources/sample_dash.json
242
+ - spec/wavefront/cli/resources/sample_dash.txt
243
+ - spec/wavefront/cli/resources/sample_dash.yaml
225
244
  - spec/wavefront/cli/resources/write.parabola
226
245
  - spec/wavefront/cli/sources_spec.rb
227
246
  - spec/wavefront/cli/write_spec.rb
@@ -231,7 +250,6 @@ test_files:
231
250
  - spec/wavefront/metadata_spec.rb
232
251
  - spec/wavefront/mixins_spec.rb
233
252
  - spec/wavefront/opt_handler_spec.rb
234
- - spec/wavefront/resources/conf.yaml
235
253
  - spec/wavefront/response_spec.rb
236
254
  - spec/wavefront/validators_spec.rb
237
255
  - spec/wavefront/writer_spec.rb