wavefront-sdk 3.3.2 → 3.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY.md +42 -35
- data/README.md +5 -5
- data/lib/wavefront-sdk/alert.rb +2 -0
- data/lib/wavefront-sdk/core/api_caller.rb +6 -3
- data/lib/wavefront-sdk/defs/version.rb +2 -2
- data/lib/wavefront-sdk/derivedmetric.rb +7 -0
- data/lib/wavefront-sdk/externallink.rb +2 -2
- data/lib/wavefront-sdk/maintenancewindow.rb +6 -2
- data/lib/wavefront-sdk/notificant.rb +7 -0
- data/lib/wavefront-sdk/paginator/base.rb +8 -0
- data/lib/wavefront-sdk/search.rb +11 -2
- data/lib/wavefront-sdk/user.rb +39 -8
- data/lib/wavefront-sdk/webhook.rb +1 -1
- data/spec/constants.rb +30 -0
- data/spec/spec_helper.rb +12 -237
- data/spec/support/bad_mocket.rb +15 -0
- data/spec/support/hash.rb +9 -0
- data/spec/support/minitest_assertions.rb +110 -0
- data/spec/support/mocket.rb +19 -0
- data/spec/test_mixins/acl.rb +78 -0
- data/spec/test_mixins/general.rb +120 -0
- data/spec/test_mixins/tag.rb +55 -0
- data/spec/test_mixins/update_keys.rb +11 -0
- data/spec/wavefront-sdk/alert_spec.rb +88 -136
- data/spec/wavefront-sdk/apitoken_spec.rb +26 -13
- data/spec/wavefront-sdk/cloudintegration_spec.rb +42 -44
- data/spec/wavefront-sdk/dashboard_spec.rb +53 -72
- data/spec/wavefront-sdk/derivedmetric_spec.rb +23 -49
- data/spec/wavefront-sdk/distribution_spec.rb +14 -14
- data/spec/wavefront-sdk/event_spec.rb +39 -48
- data/spec/wavefront-sdk/externallink_spec.rb +19 -50
- data/spec/wavefront-sdk/integration_spec.rb +33 -38
- data/spec/wavefront-sdk/maintenancewindow_spec.rb +18 -33
- data/spec/wavefront-sdk/message_spec.rb +19 -4
- data/spec/wavefront-sdk/metric_spec.rb +13 -9
- data/spec/wavefront-sdk/notificant_spec.rb +16 -15
- data/spec/wavefront-sdk/proxy_spec.rb +20 -25
- data/spec/wavefront-sdk/query_spec.rb +50 -24
- data/spec/wavefront-sdk/report_spec.rb +3 -6
- data/spec/wavefront-sdk/resources/user_responses/add_user_groups.json +1 -0
- data/spec/wavefront-sdk/resources/user_responses/create.json +28 -0
- data/spec/wavefront-sdk/resources/user_responses/delete_multiple.json +1 -0
- data/spec/wavefront-sdk/resources/user_responses/describe.json +1 -0
- data/spec/wavefront-sdk/resources/user_responses/grant.json +1 -0
- data/spec/wavefront-sdk/resources/user_responses/list.json +1 -0
- data/spec/wavefront-sdk/savedsearch_spec.rb +41 -35
- data/spec/wavefront-sdk/search_spec.rb +35 -29
- data/spec/wavefront-sdk/settings_spec.rb +18 -12
- data/spec/wavefront-sdk/source_spec.rb +29 -32
- data/spec/wavefront-sdk/user_spec.rb +101 -74
- data/spec/wavefront-sdk/usergroup_spec.rb +56 -67
- data/spec/wavefront-sdk/webhook_spec.rb +22 -34
- data/spec/wavefront-sdk/write_spec.rb +2 -0
- data/spec/wavefront-sdk/writers/core_spec.rb +2 -0
- data/spec/wavefront-sdk/writers/summary_spec.rb +2 -0
- data/wavefront-sdk.gemspec +5 -5
- metadata +44 -13
@@ -1,6 +1,8 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
require_relative '../spec_helper'
|
4
|
+
require_relative '../support/mocket'
|
5
|
+
require_relative '../support/bad_mocket'
|
4
6
|
require_relative '../../lib/wavefront-sdk/write'
|
5
7
|
require_relative '../../lib/wavefront-sdk/core/response'
|
6
8
|
require_relative 'resources/dummy_points'
|
data/wavefront-sdk.gemspec
CHANGED
@@ -20,18 +20,18 @@ Gem::Specification.new do |gem|
|
|
20
20
|
gem.require_paths = %w[lib]
|
21
21
|
gem.bindir = 'bin'
|
22
22
|
|
23
|
-
gem.add_dependency 'addressable', '~> 2.
|
23
|
+
gem.add_dependency 'addressable', '~> 2.7'
|
24
24
|
gem.add_dependency 'faraday', '~> 0.15.4'
|
25
25
|
gem.add_dependency 'inifile', '~> 3.0'
|
26
26
|
gem.add_dependency 'map', '~> 6.6'
|
27
27
|
|
28
28
|
gem.add_development_dependency 'minitest', '~> 5.11'
|
29
|
-
gem.add_development_dependency 'rake', '~> 12.
|
29
|
+
gem.add_development_dependency 'rake', '~> 12.3'
|
30
30
|
gem.add_development_dependency 'rubocop', '~> 0.54.0'
|
31
31
|
gem.add_development_dependency 'simplecov', '~> 0.16.0'
|
32
|
-
gem.add_development_dependency 'spy', '~> 0.
|
33
|
-
gem.add_development_dependency 'webmock', '~> 3.
|
34
|
-
gem.add_development_dependency 'yard', '~> 0.9
|
32
|
+
gem.add_development_dependency 'spy', '~> 1.0.0'
|
33
|
+
gem.add_development_dependency 'webmock', '~> 3.7'
|
34
|
+
gem.add_development_dependency 'yard', '~> 0.9'
|
35
35
|
|
36
36
|
gem.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
|
37
37
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wavefront-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Fisher
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '2.
|
19
|
+
version: '2.7'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '2.
|
26
|
+
version: '2.7'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: faraday
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '12.
|
89
|
+
version: '12.3'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '12.
|
96
|
+
version: '12.3'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rubocop
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,42 +128,42 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 0.
|
131
|
+
version: 1.0.0
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 0.
|
138
|
+
version: 1.0.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: webmock
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: '3.
|
145
|
+
version: '3.7'
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: '3.
|
152
|
+
version: '3.7'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: yard
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 0.9
|
159
|
+
version: '0.9'
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 0.9
|
166
|
+
version: '0.9'
|
167
167
|
description: 'SDK for Wavefront (wavefront.com) API v2 '
|
168
168
|
email: rob@sysdef.xyz
|
169
169
|
executables: []
|
@@ -235,7 +235,16 @@ files:
|
|
235
235
|
- lib/wavefront-sdk/writers/unix.rb
|
236
236
|
- lib/wavefront_sdk.rb
|
237
237
|
- spec/.rubocop.yml
|
238
|
+
- spec/constants.rb
|
238
239
|
- spec/spec_helper.rb
|
240
|
+
- spec/support/bad_mocket.rb
|
241
|
+
- spec/support/hash.rb
|
242
|
+
- spec/support/minitest_assertions.rb
|
243
|
+
- spec/support/mocket.rb
|
244
|
+
- spec/test_mixins/acl.rb
|
245
|
+
- spec/test_mixins/general.rb
|
246
|
+
- spec/test_mixins/tag.rb
|
247
|
+
- spec/test_mixins/update_keys.rb
|
239
248
|
- spec/wavefront-sdk/alert_spec.rb
|
240
249
|
- spec/wavefront-sdk/api_mixins/user_mixins_spec.rb
|
241
250
|
- spec/wavefront-sdk/apitoken_spec.rb
|
@@ -265,6 +274,12 @@ files:
|
|
265
274
|
- spec/wavefront-sdk/resources/malformed.conf
|
266
275
|
- spec/wavefront-sdk/resources/test.conf
|
267
276
|
- spec/wavefront-sdk/resources/test2.conf
|
277
|
+
- spec/wavefront-sdk/resources/user_responses/add_user_groups.json
|
278
|
+
- spec/wavefront-sdk/resources/user_responses/create.json
|
279
|
+
- spec/wavefront-sdk/resources/user_responses/delete_multiple.json
|
280
|
+
- spec/wavefront-sdk/resources/user_responses/describe.json
|
281
|
+
- spec/wavefront-sdk/resources/user_responses/grant.json
|
282
|
+
- spec/wavefront-sdk/resources/user_responses/list.json
|
268
283
|
- spec/wavefront-sdk/savedsearch_spec.rb
|
269
284
|
- spec/wavefront-sdk/search_spec.rb
|
270
285
|
- spec/wavefront-sdk/settings_spec.rb
|
@@ -304,13 +319,23 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
304
319
|
- !ruby/object:Gem::Version
|
305
320
|
version: '0'
|
306
321
|
requirements: []
|
307
|
-
|
322
|
+
rubyforge_project:
|
323
|
+
rubygems_version: 2.7.7
|
308
324
|
signing_key:
|
309
325
|
specification_version: 4
|
310
326
|
summary: SDK for Wavefront API v2
|
311
327
|
test_files:
|
312
328
|
- spec/.rubocop.yml
|
329
|
+
- spec/constants.rb
|
313
330
|
- spec/spec_helper.rb
|
331
|
+
- spec/support/bad_mocket.rb
|
332
|
+
- spec/support/hash.rb
|
333
|
+
- spec/support/minitest_assertions.rb
|
334
|
+
- spec/support/mocket.rb
|
335
|
+
- spec/test_mixins/acl.rb
|
336
|
+
- spec/test_mixins/general.rb
|
337
|
+
- spec/test_mixins/tag.rb
|
338
|
+
- spec/test_mixins/update_keys.rb
|
314
339
|
- spec/wavefront-sdk/alert_spec.rb
|
315
340
|
- spec/wavefront-sdk/api_mixins/user_mixins_spec.rb
|
316
341
|
- spec/wavefront-sdk/apitoken_spec.rb
|
@@ -340,6 +365,12 @@ test_files:
|
|
340
365
|
- spec/wavefront-sdk/resources/malformed.conf
|
341
366
|
- spec/wavefront-sdk/resources/test.conf
|
342
367
|
- spec/wavefront-sdk/resources/test2.conf
|
368
|
+
- spec/wavefront-sdk/resources/user_responses/add_user_groups.json
|
369
|
+
- spec/wavefront-sdk/resources/user_responses/create.json
|
370
|
+
- spec/wavefront-sdk/resources/user_responses/delete_multiple.json
|
371
|
+
- spec/wavefront-sdk/resources/user_responses/describe.json
|
372
|
+
- spec/wavefront-sdk/resources/user_responses/grant.json
|
373
|
+
- spec/wavefront-sdk/resources/user_responses/list.json
|
343
374
|
- spec/wavefront-sdk/savedsearch_spec.rb
|
344
375
|
- spec/wavefront-sdk/search_spec.rb
|
345
376
|
- spec/wavefront-sdk/settings_spec.rb
|