hawkular-client 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +2 -1
  4. data/.rubocop.yml +19 -6
  5. data/CHANGES.rdoc +13 -3
  6. data/README.rdoc +9 -3
  7. data/hawkularclient.gemspec +8 -4
  8. data/lib/alerts/alerts_api.rb +202 -32
  9. data/lib/hawkular.rb +35 -67
  10. data/lib/hawkular_all.rb +2 -0
  11. data/lib/inventory/inventory_api.rb +459 -130
  12. data/lib/metrics/metric_api.rb +14 -9
  13. data/lib/operations/operations_api.rb +247 -0
  14. data/lib/tokens/tokens_api.rb +33 -0
  15. data/lib/version.rb +1 -1
  16. data/spec/integration/alerts_spec.rb +272 -20
  17. data/spec/integration/hello-world-definitions.json +46 -0
  18. data/spec/integration/inventory_spec.rb +253 -89
  19. data/spec/integration/metric_spec.rb +36 -0
  20. data/spec/integration/operations_spec.rb +420 -0
  21. data/spec/integration/tokens_spec.rb +45 -0
  22. data/spec/resources/driver.jar +0 -0
  23. data/spec/resources/sample.war +0 -0
  24. data/spec/spec_helper.rb +30 -6
  25. data/spec/unit/base_spec.rb +22 -1
  26. data/spec/unit/canonical_path_spec.rb +92 -0
  27. data/spec/vcr/vcr_setup.rb +3 -4
  28. data/spec/vcr_cassettes/Alert/EndToEnd/Should_create_and_fire_a_trigger.yml +1187 -0
  29. data/spec/vcr_cassettes/Alert/Events/Should_list_events.yml +101 -0
  30. data/spec/vcr_cassettes/Alert/Events/Should_list_events_using_criteria.yml +79 -0
  31. data/spec/vcr_cassettes/Alert/Events/Should_not_list_events_using_criteria.yml +49 -0
  32. data/spec/vcr_cassettes/Alert/Triggers/Should_bulk_load_triggers.yml +225 -0
  33. data/spec/vcr_cassettes/Alert/Triggers/Should_create_a_basic_trigger_with_action.yml +355 -0
  34. data/spec/vcr_cassettes/Alert/Triggers/Should_create_an_action.yml +134 -0
  35. data/spec/vcr_cassettes/Alert/Triggers/Should_create_an_action_for_webhooks.yml +220 -0
  36. data/spec/vcr_cassettes/Alert/Triggers/Should_get_the_action_definitions.yml +218 -0
  37. data/spec/vcr_cassettes/Alert/Triggers/Should_not_create_an_action_for_unknown_plugin.yml +46 -0
  38. data/spec/vcr_cassettes/Alert/Triggers/Should_not_create_an_action_for_unknown_properties.yml +134 -0
  39. data/spec/vcr_cassettes/Counter_metrics/Should_get_metrics_with_limit_and_order.yml +270 -0
  40. data/spec/vcr_cassettes/Inventory/Client_should_listen_on_various_inventory_events.json +47 -0
  41. data/spec/vcr_cassettes/Inventory/Client_should_listen_on_various_inventory_events.yml +191 -0
  42. data/spec/vcr_cassettes/Inventory/Helpers/generate_some_events_for_websocket.yml +507 -0
  43. data/spec/vcr_cassettes/Inventory/Should_List_datasources_with_no_props.yml +74 -69
  44. data/spec/vcr_cassettes/Inventory/{Should_list_types_without_feed.yml → Should_create_a_feed.yml} +29 -32
  45. data/spec/vcr_cassettes/Inventory/Should_create_a_feed_again.yml +211 -0
  46. data/spec/vcr_cassettes/Inventory/Should_create_a_resource_.yml +355 -0
  47. data/spec/vcr_cassettes/Inventory/Should_create_a_resource_with_metric.yml +786 -0
  48. data/spec/vcr_cassettes/Inventory/Should_create_a_resourcetype.yml +205 -0
  49. data/spec/vcr_cassettes/Inventory/Should_create_and_delete_feed.yml +201 -0
  50. data/spec/vcr_cassettes/Inventory/Should_create_and_get_a_resource.yml +419 -0
  51. data/spec/vcr_cassettes/Inventory/Should_list_URLs.yml +39 -27
  52. data/spec/vcr_cassettes/Inventory/Should_list_WildFlys.yml +37 -29
  53. data/spec/vcr_cassettes/Inventory/Should_list_WildFlys_with_props.yml +53 -45
  54. data/spec/vcr_cassettes/Inventory/Should_list_all_the_resource_types.yml +177 -0
  55. data/spec/vcr_cassettes/Inventory/Should_list_children_of_WildFly.yml +230 -56
  56. data/spec/vcr_cassettes/Inventory/Should_list_feeds.yml +27 -24
  57. data/spec/vcr_cassettes/Inventory/Should_list_heap_metrics_for_WildFlys.yml +586 -119
  58. data/spec/vcr_cassettes/Inventory/Should_list_metrics_for_WildFlys.yml +220 -59
  59. data/spec/vcr_cassettes/Inventory/Should_list_metrics_of_given_metric_type.yml +613 -0
  60. data/spec/vcr_cassettes/Inventory/Should_list_metrics_of_given_resource_type.yml +333 -0
  61. data/spec/vcr_cassettes/Inventory/Should_list_recursive_children_of_WildFly.yml +2064 -0
  62. data/spec/vcr_cassettes/Inventory/Should_list_relationships_of_WildFly.yml +460 -0
  63. data/spec/vcr_cassettes/Inventory/Should_list_types_with_bad_feed.yml +26 -25
  64. data/spec/vcr_cassettes/Inventory/Should_list_types_with_feed.yml +102 -36
  65. data/spec/vcr_cassettes/Inventory/Should_not_find_an_unknown_resource.yml +54 -0
  66. data/spec/vcr_cassettes/Inventory/Tenants/Should_Get_Tenant_For_Explicit_Credentials.yml +50 -0
  67. data/spec/vcr_cassettes/Inventory/Tenants/Should_Get_Tenant_For_Implicit_Credentials.yml +50 -0
  68. data/spec/vcr_cassettes/Operation/Helpers/get_tenant.yml +50 -0
  69. data/spec/vcr_cassettes/Operation/Operation/Add_JDBC_driver_should_add_the_driver.json +26 -0
  70. data/spec/vcr_cassettes/Operation/Operation/Add_datasource_should_be_doable.json +26 -0
  71. data/spec/vcr_cassettes/Operation/Operation/Add_deployment_should_be_doable.json +26 -0
  72. data/spec/vcr_cassettes/Operation/Operation/Redeploy_can_be_run_multiple_times_in_parallel.json +40 -0
  73. data/spec/vcr_cassettes/Operation/Operation/Redeploy_should_be_performed_and_eventually_respond_with_success.json +26 -0
  74. data/spec/vcr_cassettes/Operation/Operation/Redeploy_should_not_be_performed_if_resource_path_is_wrong.json +26 -0
  75. data/spec/vcr_cassettes/Operation/Operation/Remove_JDBC_driver_should_be_performed_and_eventually_respond_with_success.json +26 -0
  76. data/spec/vcr_cassettes/Operation/Operation/Remove_datasource_should_be_performed_and_eventually_respond_with_success.json +26 -0
  77. data/spec/vcr_cassettes/Operation/Operation/Remove_deployment_should_be_performed_and_eventually_respond_with_success.json +26 -0
  78. data/spec/vcr_cassettes/Operation/Operation/Undeploy_should_be_performed_and_eventually_respond_with_success.json +26 -0
  79. data/spec/vcr_cassettes/Operation/Operation/should_not_be_possible_to_perform_on_closed_client.json +12 -0
  80. data/spec/vcr_cassettes/Operation/Websocket_connection/should_be_established.json +9 -0
  81. data/spec/vcr_cassettes/Tokens/Should_be_able_to_create_a_new_token_for_an_actual_user.yml +57 -0
  82. data/spec/vcr_cassettes/Tokens/Should_be_able_to_list_the_available_tokens.yml +49 -0
  83. data/spec/vcr_cassettes/Tokens/Should_get_a_401_when_attempting_to_create_a_token_with_a_wrong_password.yml +56 -0
  84. data/spec/vcr_cassettes/Tokens/Should_get_a_401_when_attempting_to_create_a_token_without_a_password.yml +55 -0
  85. metadata +175 -11
  86. data/lib/metrics/version.rb +0 -7
@@ -0,0 +1,56 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://jdoe:mywrongpassword@localhost:8080/secret-store/v1/tokens/create
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"expiresAt":null,"attributes":{"name":"Token created via Hawkular
9
+ Ruby Client"}}'
10
+ headers:
11
+ Accept:
12
+ - application/json
13
+ Accept-Encoding:
14
+ - gzip, deflate
15
+ User-Agent:
16
+ - rest-client/2.0.0.rc1 (linux-gnu x86_64) ruby/2.2.4p230
17
+ Content-Type:
18
+ - application/json
19
+ Content-Length:
20
+ - '81'
21
+ response:
22
+ status:
23
+ code: 401
24
+ message: Unauthorized
25
+ headers:
26
+ Content-Encoding:
27
+ - gzip
28
+ Expires:
29
+ - '0'
30
+ Cache-Control:
31
+ - no-cache, no-store, must-revalidate
32
+ X-Powered-By:
33
+ - Undertow/1
34
+ Server:
35
+ - WildFly/10
36
+ Pragma:
37
+ - no-cache
38
+ Date:
39
+ - Tue, 16 Feb 2016 11:18:00 GMT
40
+ Connection:
41
+ - keep-alive
42
+ Www-Authenticate:
43
+ - 'Bearer realm="hawkular", error="no_token", error_description="Bad status:
44
+ 401"'
45
+ Content-Type:
46
+ - text/html;charset=UTF-8
47
+ Content-Length:
48
+ - '76'
49
+ body:
50
+ encoding: ASCII-8BIT
51
+ string: !binary |-
52
+ H4sIAAAAAAAAALPJKMnNsbPJSE1MsbMpySzJSbVzLSrKL7LRh3Bs9CFSSfkp
53
+ lXaheYmlJRn5RZlVqSk2+mAhoDzIAADloE1uRwAAAA==
54
+ http_version:
55
+ recorded_at: Tue, 16 Feb 2016 11:18:00 GMT
56
+ recorded_with: VCR 3.0.1
@@ -0,0 +1,55 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://jdoe:@localhost:8080/secret-store/v1/tokens/create
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"expiresAt":null,"attributes":{"name":"Token created via Hawkular
9
+ Ruby Client"}}'
10
+ headers:
11
+ Accept:
12
+ - application/json
13
+ Accept-Encoding:
14
+ - gzip, deflate
15
+ User-Agent:
16
+ - rest-client/2.0.0.rc1 (linux-gnu x86_64) ruby/2.2.4p230
17
+ Content-Type:
18
+ - application/json
19
+ Content-Length:
20
+ - '81'
21
+ response:
22
+ status:
23
+ code: 401
24
+ message: Unauthorized
25
+ headers:
26
+ Content-Encoding:
27
+ - gzip
28
+ Expires:
29
+ - '0'
30
+ Cache-Control:
31
+ - no-cache, no-store, must-revalidate
32
+ X-Powered-By:
33
+ - Undertow/1
34
+ Server:
35
+ - WildFly/10
36
+ Pragma:
37
+ - no-cache
38
+ Date:
39
+ - Tue, 16 Feb 2016 11:18:00 GMT
40
+ Connection:
41
+ - keep-alive
42
+ Www-Authenticate:
43
+ - Bearer realm="hawkular", error="no_token", error_description="1"
44
+ Content-Type:
45
+ - text/html;charset=UTF-8
46
+ Content-Length:
47
+ - '76'
48
+ body:
49
+ encoding: ASCII-8BIT
50
+ string: !binary |-
51
+ H4sIAAAAAAAAALPJKMnNsbPJSE1MsbMpySzJSbVzLSrKL7LRh3Bs9CFSSfkp
52
+ lXaheYmlJRn5RZlVqSk2+mAhoDzIAADloE1uRwAAAA==
53
+ http_version:
54
+ recorded_at: Tue, 16 Feb 2016 11:18:00 GMT
55
+ recorded_with: VCR 3.0.1
metadata CHANGED
@@ -1,16 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hawkular-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Libor Zoubek
8
8
  - Heiko W. Rupp
9
+ - Jirka Kremser
9
10
  - Federico Simoncelli
10
11
  autorequire:
11
12
  bindir: bin
12
13
  cert_chain: []
13
- date: 2016-02-03 00:00:00.000000000 Z
14
+ date: 2016-03-24 00:00:00.000000000 Z
14
15
  dependencies:
15
16
  - !ruby/object:Gem::Dependency
16
17
  name: rest-client
@@ -26,6 +27,34 @@ dependencies:
26
27
  - - '>='
27
28
  - !ruby/object:Gem::Version
28
29
  version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: websocket-client-simple
32
+ requirement: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ~>
35
+ - !ruby/object:Gem::Version
36
+ version: 0.3.0
37
+ type: :runtime
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: 0.3.0
44
+ - !ruby/object:Gem::Dependency
45
+ name: addressable
46
+ requirement: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - '>='
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ type: :runtime
52
+ prerelease: false
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - '>='
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
29
58
  - !ruby/object:Gem::Dependency
30
59
  name: shoulda
31
60
  requirement: !ruby/object:Gem::Requirement
@@ -46,28 +75,42 @@ dependencies:
46
75
  requirements:
47
76
  - - ~>
48
77
  - !ruby/object:Gem::Version
49
- version: '2.6'
78
+ version: '3.0'
50
79
  type: :development
51
80
  prerelease: false
52
81
  version_requirements: !ruby/object:Gem::Requirement
53
82
  requirements:
54
83
  - - ~>
55
84
  - !ruby/object:Gem::Version
56
- version: '2.6'
85
+ version: '3.0'
57
86
  - !ruby/object:Gem::Dependency
58
87
  name: rake
59
88
  requirement: !ruby/object:Gem::Requirement
60
89
  requirements:
61
- - - '>='
90
+ - - <
62
91
  - !ruby/object:Gem::Version
63
- version: '0'
92
+ version: '11'
64
93
  type: :development
65
94
  prerelease: false
66
95
  version_requirements: !ruby/object:Gem::Requirement
67
96
  requirements:
68
- - - '>='
97
+ - - <
69
98
  - !ruby/object:Gem::Version
70
- version: '0'
99
+ version: '11'
100
+ - !ruby/object:Gem::Dependency
101
+ name: simple-websocket-vcr
102
+ requirement: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - '='
105
+ - !ruby/object:Gem::Version
106
+ version: 0.0.4
107
+ type: :development
108
+ prerelease: false
109
+ version_requirements: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - '='
112
+ - !ruby/object:Gem::Version
113
+ version: 0.0.4
71
114
  - !ruby/object:Gem::Dependency
72
115
  name: yard
73
116
  requirement: !ruby/object:Gem::Requirement
@@ -124,17 +167,33 @@ dependencies:
124
167
  - - '='
125
168
  - !ruby/object:Gem::Version
126
169
  version: 0.34.2
170
+ - !ruby/object:Gem::Dependency
171
+ name: coveralls
172
+ requirement: !ruby/object:Gem::Requirement
173
+ requirements:
174
+ - - '>='
175
+ - !ruby/object:Gem::Version
176
+ version: '0'
177
+ type: :development
178
+ prerelease: false
179
+ version_requirements: !ruby/object:Gem::Requirement
180
+ requirements:
181
+ - - '>='
182
+ - !ruby/object:Gem::Version
183
+ version: '0'
127
184
  description: |2
128
185
  A Ruby client for Hawkular
129
186
  email:
130
187
  - lzoubek@redhat.com
131
188
  - hrupp@redhat.com
189
+ - jkremser@redhat.com
132
190
  executables: []
133
191
  extensions: []
134
192
  extra_rdoc_files:
135
193
  - README.rdoc
136
194
  - CHANGES.rdoc
137
195
  files:
196
+ - .coveralls.yml
138
197
  - .gitignore
139
198
  - .rubocop.yml
140
199
  - .travis.yml
@@ -152,14 +211,21 @@ files:
152
211
  - lib/metrics/metrics_client.rb
153
212
  - lib/metrics/tenant_api.rb
154
213
  - lib/metrics/types.rb
155
- - lib/metrics/version.rb
214
+ - lib/operations/operations_api.rb
215
+ - lib/tokens/tokens_api.rb
156
216
  - lib/version.rb
157
217
  - spec/endpoint.yml
158
218
  - spec/integration/alerts_spec.rb
219
+ - spec/integration/hello-world-definitions.json
159
220
  - spec/integration/inventory_spec.rb
160
221
  - spec/integration/metric_spec.rb
222
+ - spec/integration/operations_spec.rb
223
+ - spec/integration/tokens_spec.rb
224
+ - spec/resources/driver.jar
225
+ - spec/resources/sample.war
161
226
  - spec/spec_helper.rb
162
227
  - spec/unit/base_spec.rb
228
+ - spec/unit/canonical_path_spec.rb
163
229
  - spec/unit/client_spec.rb
164
230
  - spec/vcr/vcr_setup.rb
165
231
  - spec/vcr_cassettes/Alert/Alerts/Should_acknowledge_an_alert.yml
@@ -169,18 +235,30 @@ files:
169
235
  - spec/vcr_cassettes/Alert/Alerts/Should_list_alerts_for_unknown_trigger.yml
170
236
  - spec/vcr_cassettes/Alert/Alerts/Should_resolve_an_alert.yml
171
237
  - spec/vcr_cassettes/Alert/Alerts/Should_resolve_an_alert2.yml
238
+ - spec/vcr_cassettes/Alert/EndToEnd/Should_create_and_fire_a_trigger.yml
239
+ - spec/vcr_cassettes/Alert/Events/Should_list_events.yml
240
+ - spec/vcr_cassettes/Alert/Events/Should_list_events_using_criteria.yml
241
+ - spec/vcr_cassettes/Alert/Events/Should_not_list_events_using_criteria.yml
172
242
  - spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers.yml
173
243
  - spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers_for_ID.yml
174
244
  - spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers_for_Tag.yml
175
245
  - spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers_for_Tags.yml
246
+ - spec/vcr_cassettes/Alert/Triggers/Should_bulk_load_triggers.yml
247
+ - spec/vcr_cassettes/Alert/Triggers/Should_create_a_basic_trigger_with_action.yml
248
+ - spec/vcr_cassettes/Alert/Triggers/Should_create_an_action.yml
249
+ - spec/vcr_cassettes/Alert/Triggers/Should_create_an_action_for_webhooks.yml
176
250
  - spec/vcr_cassettes/Alert/Triggers/Should_get_a_single_Trigger_with_conditions.yml
177
251
  - spec/vcr_cassettes/Alert/Triggers/Should_get_a_single_metric_Trigger.yml
252
+ - spec/vcr_cassettes/Alert/Triggers/Should_get_the_action_definitions.yml
253
+ - spec/vcr_cassettes/Alert/Triggers/Should_not_create_an_action_for_unknown_plugin.yml
254
+ - spec/vcr_cassettes/Alert/Triggers/Should_not_create_an_action_for_unknown_properties.yml
178
255
  - spec/vcr_cassettes/Availability_metrics/Should_create_Availability_definition_using_MetricDefinition_parameter.yml
179
256
  - spec/vcr_cassettes/Availability_metrics/Should_create_and_return_Availability_using_Hash_parameter.yml
180
257
  - spec/vcr_cassettes/Availability_metrics/Should_push_metric_data_to_non-existing_Availability.yml
181
258
  - spec/vcr_cassettes/Availability_metrics/Should_update_tags_for_Availability_definition.yml
182
259
  - spec/vcr_cassettes/Counter_metrics/Should_create_and_return_counter_using_Hash_parameter.yml
183
260
  - spec/vcr_cassettes/Counter_metrics/Should_create_counter_definition_using_MetricDefinition_parameter.yml
261
+ - spec/vcr_cassettes/Counter_metrics/Should_get_metrics_with_limit_and_order.yml
184
262
  - spec/vcr_cassettes/Counter_metrics/Should_push_metric_data_to_existing_counter.yml
185
263
  - spec/vcr_cassettes/Counter_metrics/Should_push_metric_data_to_non-existing_counter.yml
186
264
  - spec/vcr_cassettes/Gauge_metrics/Platform_mem.yml
@@ -191,25 +269,59 @@ files:
191
269
  - spec/vcr_cassettes/Gauge_metrics/Should_push_metric_data_to_non-existing_gauge.yml
192
270
  - spec/vcr_cassettes/Gauge_metrics/Should_return_periods.yml
193
271
  - spec/vcr_cassettes/Gauge_metrics/Should_update_tags_for_gauge_definition.yml
272
+ - spec/vcr_cassettes/Inventory/Client_should_listen_on_various_inventory_events.json
273
+ - spec/vcr_cassettes/Inventory/Client_should_listen_on_various_inventory_events.yml
274
+ - spec/vcr_cassettes/Inventory/Helpers/generate_some_events_for_websocket.yml
194
275
  - spec/vcr_cassettes/Inventory/Should_List_datasources_with_no_props.yml
276
+ - spec/vcr_cassettes/Inventory/Should_create_a_feed.yml
277
+ - spec/vcr_cassettes/Inventory/Should_create_a_feed_again.yml
278
+ - spec/vcr_cassettes/Inventory/Should_create_a_resource_.yml
279
+ - spec/vcr_cassettes/Inventory/Should_create_a_resource_with_metric.yml
280
+ - spec/vcr_cassettes/Inventory/Should_create_a_resourcetype.yml
281
+ - spec/vcr_cassettes/Inventory/Should_create_and_delete_feed.yml
282
+ - spec/vcr_cassettes/Inventory/Should_create_and_get_a_resource.yml
195
283
  - spec/vcr_cassettes/Inventory/Should_list_URLs.yml
196
284
  - spec/vcr_cassettes/Inventory/Should_list_WildFlys.yml
197
285
  - spec/vcr_cassettes/Inventory/Should_list_WildFlys_with_props.yml
286
+ - spec/vcr_cassettes/Inventory/Should_list_all_the_resource_types.yml
198
287
  - spec/vcr_cassettes/Inventory/Should_list_children_of_WildFly.yml
199
288
  - spec/vcr_cassettes/Inventory/Should_list_feeds.yml
200
289
  - spec/vcr_cassettes/Inventory/Should_list_heap_metrics_for_WildFlys.yml
201
290
  - spec/vcr_cassettes/Inventory/Should_list_metrics_for_WildFlys.yml
291
+ - spec/vcr_cassettes/Inventory/Should_list_metrics_of_given_metric_type.yml
292
+ - spec/vcr_cassettes/Inventory/Should_list_metrics_of_given_resource_type.yml
293
+ - spec/vcr_cassettes/Inventory/Should_list_recursive_children_of_WildFly.yml
294
+ - spec/vcr_cassettes/Inventory/Should_list_relationships_of_WildFly.yml
202
295
  - spec/vcr_cassettes/Inventory/Should_list_types_with_bad_feed.yml
203
296
  - spec/vcr_cassettes/Inventory/Should_list_types_with_feed.yml
204
- - spec/vcr_cassettes/Inventory/Should_list_types_without_feed.yml
297
+ - spec/vcr_cassettes/Inventory/Should_not_find_an_unknown_resource.yml
298
+ - spec/vcr_cassettes/Inventory/Tenants/Should_Get_Tenant_For_Explicit_Credentials.yml
299
+ - spec/vcr_cassettes/Inventory/Tenants/Should_Get_Tenant_For_Implicit_Credentials.yml
205
300
  - spec/vcr_cassettes/Metrics/Status.yml
206
301
  - spec/vcr_cassettes/Mixed_metrics/Should_send_mixed_metric_request.yml
207
302
  - spec/vcr_cassettes/Mixed_metrics/Should_send_mixed_metric_request_of_a_single_type.yml
208
303
  - spec/vcr_cassettes/No_Tenant/Should_fail.yml
304
+ - spec/vcr_cassettes/Operation/Helpers/get_tenant.yml
305
+ - spec/vcr_cassettes/Operation/Operation/Add_JDBC_driver_should_add_the_driver.json
306
+ - spec/vcr_cassettes/Operation/Operation/Add_datasource_should_be_doable.json
307
+ - spec/vcr_cassettes/Operation/Operation/Add_deployment_should_be_doable.json
308
+ - spec/vcr_cassettes/Operation/Operation/Redeploy_can_be_run_multiple_times_in_parallel.json
309
+ - spec/vcr_cassettes/Operation/Operation/Redeploy_should_be_performed_and_eventually_respond_with_success.json
310
+ - spec/vcr_cassettes/Operation/Operation/Redeploy_should_not_be_performed_if_resource_path_is_wrong.json
311
+ - spec/vcr_cassettes/Operation/Operation/Remove_JDBC_driver_should_be_performed_and_eventually_respond_with_success.json
312
+ - spec/vcr_cassettes/Operation/Operation/Remove_datasource_should_be_performed_and_eventually_respond_with_success.json
313
+ - spec/vcr_cassettes/Operation/Operation/Remove_deployment_should_be_performed_and_eventually_respond_with_success.json
314
+ - spec/vcr_cassettes/Operation/Operation/Undeploy_should_be_performed_and_eventually_respond_with_success.json
315
+ - spec/vcr_cassettes/Operation/Operation/should_not_be_possible_to_perform_on_closed_client.json
316
+ - spec/vcr_cassettes/Operation/Websocket_connection/should_be_established.json
209
317
  - spec/vcr_cassettes/Simple/Should_be_Cool.yml
210
318
  - spec/vcr_cassettes/Tenants/Should_Get_Tenant_For_Explicit_Credentials.yml
211
319
  - spec/vcr_cassettes/Tenants/Should_Get_Tenant_For_Implicit_Credentials.yml
212
320
  - spec/vcr_cassettes/Tenants/Should_create_and_return_tenant.yml
321
+ - spec/vcr_cassettes/Tokens/Should_be_able_to_create_a_new_token_for_an_actual_user.yml
322
+ - spec/vcr_cassettes/Tokens/Should_be_able_to_list_the_available_tokens.yml
323
+ - spec/vcr_cassettes/Tokens/Should_get_a_401_when_attempting_to_create_a_token_with_a_wrong_password.yml
324
+ - spec/vcr_cassettes/Tokens/Should_get_a_401_when_attempting_to_create_a_token_without_a_password.yml
213
325
  homepage: https://github.com/hawkular/hawkular-client-ruby
214
326
  licenses:
215
327
  - ASL 2.0
@@ -243,10 +355,16 @@ summary: A Ruby client for Hawkular
243
355
  test_files:
244
356
  - spec/endpoint.yml
245
357
  - spec/integration/alerts_spec.rb
358
+ - spec/integration/hello-world-definitions.json
246
359
  - spec/integration/inventory_spec.rb
247
360
  - spec/integration/metric_spec.rb
361
+ - spec/integration/operations_spec.rb
362
+ - spec/integration/tokens_spec.rb
363
+ - spec/resources/driver.jar
364
+ - spec/resources/sample.war
248
365
  - spec/spec_helper.rb
249
366
  - spec/unit/base_spec.rb
367
+ - spec/unit/canonical_path_spec.rb
250
368
  - spec/unit/client_spec.rb
251
369
  - spec/vcr/vcr_setup.rb
252
370
  - spec/vcr_cassettes/Alert/Alerts/Should_acknowledge_an_alert.yml
@@ -256,18 +374,30 @@ test_files:
256
374
  - spec/vcr_cassettes/Alert/Alerts/Should_list_alerts_for_unknown_trigger.yml
257
375
  - spec/vcr_cassettes/Alert/Alerts/Should_resolve_an_alert.yml
258
376
  - spec/vcr_cassettes/Alert/Alerts/Should_resolve_an_alert2.yml
377
+ - spec/vcr_cassettes/Alert/EndToEnd/Should_create_and_fire_a_trigger.yml
378
+ - spec/vcr_cassettes/Alert/Events/Should_list_events.yml
379
+ - spec/vcr_cassettes/Alert/Events/Should_list_events_using_criteria.yml
380
+ - spec/vcr_cassettes/Alert/Events/Should_not_list_events_using_criteria.yml
259
381
  - spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers.yml
260
382
  - spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers_for_ID.yml
261
383
  - spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers_for_Tag.yml
262
384
  - spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers_for_Tags.yml
385
+ - spec/vcr_cassettes/Alert/Triggers/Should_bulk_load_triggers.yml
386
+ - spec/vcr_cassettes/Alert/Triggers/Should_create_a_basic_trigger_with_action.yml
387
+ - spec/vcr_cassettes/Alert/Triggers/Should_create_an_action.yml
388
+ - spec/vcr_cassettes/Alert/Triggers/Should_create_an_action_for_webhooks.yml
263
389
  - spec/vcr_cassettes/Alert/Triggers/Should_get_a_single_Trigger_with_conditions.yml
264
390
  - spec/vcr_cassettes/Alert/Triggers/Should_get_a_single_metric_Trigger.yml
391
+ - spec/vcr_cassettes/Alert/Triggers/Should_get_the_action_definitions.yml
392
+ - spec/vcr_cassettes/Alert/Triggers/Should_not_create_an_action_for_unknown_plugin.yml
393
+ - spec/vcr_cassettes/Alert/Triggers/Should_not_create_an_action_for_unknown_properties.yml
265
394
  - spec/vcr_cassettes/Availability_metrics/Should_create_Availability_definition_using_MetricDefinition_parameter.yml
266
395
  - spec/vcr_cassettes/Availability_metrics/Should_create_and_return_Availability_using_Hash_parameter.yml
267
396
  - spec/vcr_cassettes/Availability_metrics/Should_push_metric_data_to_non-existing_Availability.yml
268
397
  - spec/vcr_cassettes/Availability_metrics/Should_update_tags_for_Availability_definition.yml
269
398
  - spec/vcr_cassettes/Counter_metrics/Should_create_and_return_counter_using_Hash_parameter.yml
270
399
  - spec/vcr_cassettes/Counter_metrics/Should_create_counter_definition_using_MetricDefinition_parameter.yml
400
+ - spec/vcr_cassettes/Counter_metrics/Should_get_metrics_with_limit_and_order.yml
271
401
  - spec/vcr_cassettes/Counter_metrics/Should_push_metric_data_to_existing_counter.yml
272
402
  - spec/vcr_cassettes/Counter_metrics/Should_push_metric_data_to_non-existing_counter.yml
273
403
  - spec/vcr_cassettes/Gauge_metrics/Platform_mem.yml
@@ -278,23 +408,57 @@ test_files:
278
408
  - spec/vcr_cassettes/Gauge_metrics/Should_push_metric_data_to_non-existing_gauge.yml
279
409
  - spec/vcr_cassettes/Gauge_metrics/Should_return_periods.yml
280
410
  - spec/vcr_cassettes/Gauge_metrics/Should_update_tags_for_gauge_definition.yml
411
+ - spec/vcr_cassettes/Inventory/Client_should_listen_on_various_inventory_events.json
412
+ - spec/vcr_cassettes/Inventory/Client_should_listen_on_various_inventory_events.yml
413
+ - spec/vcr_cassettes/Inventory/Helpers/generate_some_events_for_websocket.yml
281
414
  - spec/vcr_cassettes/Inventory/Should_List_datasources_with_no_props.yml
415
+ - spec/vcr_cassettes/Inventory/Should_create_a_feed.yml
416
+ - spec/vcr_cassettes/Inventory/Should_create_a_feed_again.yml
417
+ - spec/vcr_cassettes/Inventory/Should_create_a_resource_.yml
418
+ - spec/vcr_cassettes/Inventory/Should_create_a_resource_with_metric.yml
419
+ - spec/vcr_cassettes/Inventory/Should_create_a_resourcetype.yml
420
+ - spec/vcr_cassettes/Inventory/Should_create_and_delete_feed.yml
421
+ - spec/vcr_cassettes/Inventory/Should_create_and_get_a_resource.yml
282
422
  - spec/vcr_cassettes/Inventory/Should_list_URLs.yml
283
423
  - spec/vcr_cassettes/Inventory/Should_list_WildFlys.yml
284
424
  - spec/vcr_cassettes/Inventory/Should_list_WildFlys_with_props.yml
425
+ - spec/vcr_cassettes/Inventory/Should_list_all_the_resource_types.yml
285
426
  - spec/vcr_cassettes/Inventory/Should_list_children_of_WildFly.yml
286
427
  - spec/vcr_cassettes/Inventory/Should_list_feeds.yml
287
428
  - spec/vcr_cassettes/Inventory/Should_list_heap_metrics_for_WildFlys.yml
288
429
  - spec/vcr_cassettes/Inventory/Should_list_metrics_for_WildFlys.yml
430
+ - spec/vcr_cassettes/Inventory/Should_list_metrics_of_given_metric_type.yml
431
+ - spec/vcr_cassettes/Inventory/Should_list_metrics_of_given_resource_type.yml
432
+ - spec/vcr_cassettes/Inventory/Should_list_recursive_children_of_WildFly.yml
433
+ - spec/vcr_cassettes/Inventory/Should_list_relationships_of_WildFly.yml
289
434
  - spec/vcr_cassettes/Inventory/Should_list_types_with_bad_feed.yml
290
435
  - spec/vcr_cassettes/Inventory/Should_list_types_with_feed.yml
291
- - spec/vcr_cassettes/Inventory/Should_list_types_without_feed.yml
436
+ - spec/vcr_cassettes/Inventory/Should_not_find_an_unknown_resource.yml
437
+ - spec/vcr_cassettes/Inventory/Tenants/Should_Get_Tenant_For_Explicit_Credentials.yml
438
+ - spec/vcr_cassettes/Inventory/Tenants/Should_Get_Tenant_For_Implicit_Credentials.yml
292
439
  - spec/vcr_cassettes/Metrics/Status.yml
293
440
  - spec/vcr_cassettes/Mixed_metrics/Should_send_mixed_metric_request.yml
294
441
  - spec/vcr_cassettes/Mixed_metrics/Should_send_mixed_metric_request_of_a_single_type.yml
295
442
  - spec/vcr_cassettes/No_Tenant/Should_fail.yml
443
+ - spec/vcr_cassettes/Operation/Helpers/get_tenant.yml
444
+ - spec/vcr_cassettes/Operation/Operation/Add_JDBC_driver_should_add_the_driver.json
445
+ - spec/vcr_cassettes/Operation/Operation/Add_datasource_should_be_doable.json
446
+ - spec/vcr_cassettes/Operation/Operation/Add_deployment_should_be_doable.json
447
+ - spec/vcr_cassettes/Operation/Operation/Redeploy_can_be_run_multiple_times_in_parallel.json
448
+ - spec/vcr_cassettes/Operation/Operation/Redeploy_should_be_performed_and_eventually_respond_with_success.json
449
+ - spec/vcr_cassettes/Operation/Operation/Redeploy_should_not_be_performed_if_resource_path_is_wrong.json
450
+ - spec/vcr_cassettes/Operation/Operation/Remove_JDBC_driver_should_be_performed_and_eventually_respond_with_success.json
451
+ - spec/vcr_cassettes/Operation/Operation/Remove_datasource_should_be_performed_and_eventually_respond_with_success.json
452
+ - spec/vcr_cassettes/Operation/Operation/Remove_deployment_should_be_performed_and_eventually_respond_with_success.json
453
+ - spec/vcr_cassettes/Operation/Operation/Undeploy_should_be_performed_and_eventually_respond_with_success.json
454
+ - spec/vcr_cassettes/Operation/Operation/should_not_be_possible_to_perform_on_closed_client.json
455
+ - spec/vcr_cassettes/Operation/Websocket_connection/should_be_established.json
296
456
  - spec/vcr_cassettes/Simple/Should_be_Cool.yml
297
457
  - spec/vcr_cassettes/Tenants/Should_Get_Tenant_For_Explicit_Credentials.yml
298
458
  - spec/vcr_cassettes/Tenants/Should_Get_Tenant_For_Implicit_Credentials.yml
299
459
  - spec/vcr_cassettes/Tenants/Should_create_and_return_tenant.yml
460
+ - spec/vcr_cassettes/Tokens/Should_be_able_to_create_a_new_token_for_an_actual_user.yml
461
+ - spec/vcr_cassettes/Tokens/Should_be_able_to_list_the_available_tokens.yml
462
+ - spec/vcr_cassettes/Tokens/Should_get_a_401_when_attempting_to_create_a_token_with_a_wrong_password.yml
463
+ - spec/vcr_cassettes/Tokens/Should_get_a_401_when_attempting_to_create_a_token_without_a_password.yml
300
464
  has_rdoc: