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,191 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/tenant
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Type:
15
+ - application/json
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Expires:
24
+ - '0'
25
+ Cache-Control:
26
+ - no-cache, no-store, must-revalidate
27
+ X-Powered-By:
28
+ - Undertow/1
29
+ Server:
30
+ - WildFly/10
31
+ Pragma:
32
+ - no-cache
33
+ Date:
34
+ - Thu, 24 Mar 2016 12:17:10 GMT
35
+ Connection:
36
+ - keep-alive
37
+ Content-Type:
38
+ - application/json
39
+ Content-Length:
40
+ - '105'
41
+ body:
42
+ encoding: ASCII-8BIT
43
+ string: |-
44
+ {
45
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf",
46
+ "id" : "28026b36-8fe4-4332-84c8-524e173a68bf"
47
+ }
48
+ http_version:
49
+ recorded_at: Thu, 24 Mar 2016 12:17:10 GMT
50
+ - request:
51
+ method: get
52
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/tenant
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ''
56
+ headers:
57
+ Accept:
58
+ - application/json
59
+ Accept-Encoding:
60
+ - gzip, deflate
61
+ Content-Type:
62
+ - application/json
63
+ User-Agent:
64
+ - Ruby
65
+ response:
66
+ status:
67
+ code: 200
68
+ message: OK
69
+ headers:
70
+ Expires:
71
+ - '0'
72
+ Cache-Control:
73
+ - no-cache, no-store, must-revalidate
74
+ X-Powered-By:
75
+ - Undertow/1
76
+ Server:
77
+ - WildFly/10
78
+ Pragma:
79
+ - no-cache
80
+ Date:
81
+ - Thu, 24 Mar 2016 12:17:10 GMT
82
+ Connection:
83
+ - keep-alive
84
+ Content-Type:
85
+ - application/json
86
+ Content-Length:
87
+ - '105'
88
+ body:
89
+ encoding: ASCII-8BIT
90
+ string: |-
91
+ {
92
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf",
93
+ "id" : "28026b36-8fe4-4332-84c8-524e173a68bf"
94
+ }
95
+ http_version:
96
+ recorded_at: Thu, 24 Mar 2016 12:17:10 GMT
97
+ - request:
98
+ method: get
99
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/tenant
100
+ body:
101
+ encoding: US-ASCII
102
+ string: ''
103
+ headers:
104
+ Accept:
105
+ - application/json
106
+ Accept-Encoding:
107
+ - gzip, deflate
108
+ Content-Type:
109
+ - application/json
110
+ User-Agent:
111
+ - Ruby
112
+ response:
113
+ status:
114
+ code: 200
115
+ message: OK
116
+ headers:
117
+ Expires:
118
+ - '0'
119
+ Cache-Control:
120
+ - no-cache, no-store, must-revalidate
121
+ X-Powered-By:
122
+ - Undertow/1
123
+ Server:
124
+ - WildFly/10
125
+ Pragma:
126
+ - no-cache
127
+ Date:
128
+ - Thu, 24 Mar 2016 12:17:10 GMT
129
+ Connection:
130
+ - keep-alive
131
+ Content-Type:
132
+ - application/json
133
+ Content-Length:
134
+ - '105'
135
+ body:
136
+ encoding: ASCII-8BIT
137
+ string: |-
138
+ {
139
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf",
140
+ "id" : "28026b36-8fe4-4332-84c8-524e173a68bf"
141
+ }
142
+ http_version:
143
+ recorded_at: Thu, 24 Mar 2016 12:17:10 GMT
144
+ - request:
145
+ method: get
146
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/tenant
147
+ body:
148
+ encoding: US-ASCII
149
+ string: ''
150
+ headers:
151
+ Accept:
152
+ - application/json
153
+ Accept-Encoding:
154
+ - gzip, deflate
155
+ Content-Type:
156
+ - application/json
157
+ User-Agent:
158
+ - Ruby
159
+ response:
160
+ status:
161
+ code: 200
162
+ message: OK
163
+ headers:
164
+ Expires:
165
+ - '0'
166
+ Cache-Control:
167
+ - no-cache, no-store, must-revalidate
168
+ X-Powered-By:
169
+ - Undertow/1
170
+ Server:
171
+ - WildFly/10
172
+ Pragma:
173
+ - no-cache
174
+ Date:
175
+ - Thu, 24 Mar 2016 12:17:10 GMT
176
+ Connection:
177
+ - keep-alive
178
+ Content-Type:
179
+ - application/json
180
+ Content-Length:
181
+ - '105'
182
+ body:
183
+ encoding: ASCII-8BIT
184
+ string: |-
185
+ {
186
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf",
187
+ "id" : "28026b36-8fe4-4332-84c8-524e173a68bf"
188
+ }
189
+ http_version:
190
+ recorded_at: Thu, 24 Mar 2016 12:17:10 GMT
191
+ recorded_with: VCR 3.0.1
@@ -0,0 +1,507 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"properties":{},"id":"random-feed","name":null,"outgoing":{},"incoming":{}}'
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Type:
15
+ - application/json
16
+ Content-Length:
17
+ - '76'
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 201
23
+ message: Created
24
+ headers:
25
+ Content-Encoding:
26
+ - gzip
27
+ Expires:
28
+ - '0'
29
+ Cache-Control:
30
+ - no-cache, no-store, must-revalidate
31
+ X-Powered-By:
32
+ - Undertow/1
33
+ Server:
34
+ - WildFly/10
35
+ Pragma:
36
+ - no-cache
37
+ Location:
38
+ - http://localhost:8080/hawkular/inventory/feeds/random-feed
39
+ Date:
40
+ - Thu, 24 Mar 2016 12:17:10 GMT
41
+ Connection:
42
+ - keep-alive
43
+ Content-Type:
44
+ - application/json
45
+ Content-Length:
46
+ - '99'
47
+ body:
48
+ encoding: ASCII-8BIT
49
+ string: !binary |-
50
+ H4sIAAAAAAAAAKvmUlBQKkgsyVBSsFJQ0i+xNrIwMDJLMjbTtUhLNdE1MTY2
51
+ 0rUwSbbQNTUySTU0N040s0hK00+zLkrMS8nP1U1LTU1R0gGZkZkCNgFZnKsW
52
+ AJsHA7FeAAAA
53
+ http_version:
54
+ recorded_at: Thu, 24 Mar 2016 12:17:10 GMT
55
+ - request:
56
+ method: post
57
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/random-feed/resourceTypes
58
+ body:
59
+ encoding: UTF-8
60
+ string: '{"properties":{},"id":"random-rt-123","name":"ResourceType","outgoing":{},"incoming":{}}'
61
+ headers:
62
+ Accept:
63
+ - application/json
64
+ Accept-Encoding:
65
+ - gzip, deflate
66
+ Content-Type:
67
+ - application/json
68
+ Content-Length:
69
+ - '88'
70
+ User-Agent:
71
+ - Ruby
72
+ response:
73
+ status:
74
+ code: 201
75
+ message: Created
76
+ headers:
77
+ Content-Encoding:
78
+ - gzip
79
+ Expires:
80
+ - '0'
81
+ Cache-Control:
82
+ - no-cache, no-store, must-revalidate
83
+ X-Powered-By:
84
+ - Undertow/1
85
+ Server:
86
+ - WildFly/10
87
+ Pragma:
88
+ - no-cache
89
+ Location:
90
+ - http://localhost:8080/hawkular/inventory/feeds/random-feed/resourceTypes/random-rt-123
91
+ Date:
92
+ - Thu, 24 Mar 2016 12:17:10 GMT
93
+ Connection:
94
+ - keep-alive
95
+ Content-Type:
96
+ - application/json
97
+ Content-Length:
98
+ - '130'
99
+ body:
100
+ encoding: ASCII-8BIT
101
+ string: !binary |-
102
+ H4sIAAAAAAAAAKvmUlBQKkgsyVBSsFJQ0i+xNrIwMDJLMjbTtUhLNdE1MTY2
103
+ 0rUwSbbQNTUySTU0N040s0hK00+zLkrMS8nP1U1LTU3RLyqBcYtKdA2NjJV0
104
+ QIbmJeamgg0NSi3OLy1KTg2pLEiFSGWmgCVQNXHVAgAT6+NBjAAAAA==
105
+ http_version:
106
+ recorded_at: Thu, 24 Mar 2016 12:17:10 GMT
107
+ - request:
108
+ method: get
109
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/random-feed/resourceTypes/random-rt-123
110
+ body:
111
+ encoding: US-ASCII
112
+ string: ''
113
+ headers:
114
+ Accept:
115
+ - application/json
116
+ Accept-Encoding:
117
+ - gzip, deflate
118
+ Content-Type:
119
+ - application/json
120
+ User-Agent:
121
+ - Ruby
122
+ response:
123
+ status:
124
+ code: 200
125
+ message: OK
126
+ headers:
127
+ Content-Encoding:
128
+ - gzip
129
+ Expires:
130
+ - '0'
131
+ Cache-Control:
132
+ - no-cache, no-store, must-revalidate
133
+ X-Powered-By:
134
+ - Undertow/1
135
+ Server:
136
+ - WildFly/10
137
+ Pragma:
138
+ - no-cache
139
+ Date:
140
+ - Thu, 24 Mar 2016 12:17:10 GMT
141
+ Connection:
142
+ - keep-alive
143
+ Content-Type:
144
+ - application/json
145
+ Content-Length:
146
+ - '130'
147
+ body:
148
+ encoding: ASCII-8BIT
149
+ string: !binary |-
150
+ H4sIAAAAAAAAAKvmUlBQKkgsyVBSsFJQ0i+xNrIwMDJLMjbTtUhLNdE1MTY2
151
+ 0rUwSbbQNTUySTU0N040s0hK00+zLkrMS8nP1U1LTU3RLyqBcYtKdA2NjJV0
152
+ QIbmJeamgg0NSi3OLy1KTg2pLEiFSGWmgCVQNXHVAgAT6+NBjAAAAA==
153
+ http_version:
154
+ recorded_at: Thu, 24 Mar 2016 12:17:10 GMT
155
+ - request:
156
+ method: post
157
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/random-feed/resources
158
+ body:
159
+ encoding: UTF-8
160
+ string: '{"properties":{"version":1.0},"id":"random-r126","name":"My Resource
161
+ 1","outgoing":{},"incoming":{},"resourceTypePath":"/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;random-feed/rt;random-rt-123"}'
162
+ headers:
163
+ Accept:
164
+ - application/json
165
+ Accept-Encoding:
166
+ - gzip, deflate
167
+ Content-Type:
168
+ - application/json
169
+ Content-Length:
170
+ - '192'
171
+ User-Agent:
172
+ - Ruby
173
+ response:
174
+ status:
175
+ code: 201
176
+ message: Created
177
+ headers:
178
+ Content-Encoding:
179
+ - gzip
180
+ Expires:
181
+ - '0'
182
+ Cache-Control:
183
+ - no-cache, no-store, must-revalidate
184
+ X-Powered-By:
185
+ - Undertow/1
186
+ Server:
187
+ - WildFly/10
188
+ Pragma:
189
+ - no-cache
190
+ Location:
191
+ - http://localhost:8080/hawkular/inventory/feeds/random-feed/resources/random-r126
192
+ Date:
193
+ - Thu, 24 Mar 2016 12:17:10 GMT
194
+ Connection:
195
+ - keep-alive
196
+ Content-Type:
197
+ - application/json
198
+ Content-Length:
199
+ - '189'
200
+ body:
201
+ encoding: ASCII-8BIT
202
+ string: !binary |-
203
+ H4sIAAAAAAAAAK2QTQ6CMBCF95yi6doK/bE2cgY3xgsUmEYW0KZUE0K4u7QK
204
+ UdcuZ97M+97MlCGEnQ43jE4I56FkqmCy4pIoA4IIzhlRolbkwATQI9dSVSY3
205
+ pdd9YztiAJrcr5WnTOJddAyjg+g4LcUfAGEjBEIZT4zFttddouALDPbua7hG
206
+ 7FtsmyR9Ly7SnAI6bx340MLwEfMBfmhtHzt0X2yzG+Y8opWE6OvQH0p8QDY/
207
+ ActLpqNVAQAA
208
+ http_version:
209
+ recorded_at: Thu, 24 Mar 2016 12:17:10 GMT
210
+ - request:
211
+ method: get
212
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/random-feed/resources/random-r126
213
+ body:
214
+ encoding: US-ASCII
215
+ string: ''
216
+ headers:
217
+ Accept:
218
+ - application/json
219
+ Accept-Encoding:
220
+ - gzip, deflate
221
+ Content-Type:
222
+ - application/json
223
+ User-Agent:
224
+ - Ruby
225
+ response:
226
+ status:
227
+ code: 200
228
+ message: OK
229
+ headers:
230
+ Content-Encoding:
231
+ - gzip
232
+ Expires:
233
+ - '0'
234
+ Cache-Control:
235
+ - no-cache, no-store, must-revalidate
236
+ X-Powered-By:
237
+ - Undertow/1
238
+ Server:
239
+ - WildFly/10
240
+ Pragma:
241
+ - no-cache
242
+ Date:
243
+ - Thu, 24 Mar 2016 12:17:11 GMT
244
+ Connection:
245
+ - keep-alive
246
+ Content-Type:
247
+ - application/json
248
+ Content-Length:
249
+ - '189'
250
+ body:
251
+ encoding: ASCII-8BIT
252
+ string: !binary |-
253
+ H4sIAAAAAAAAAK2QTQ6CMBCF95yi6doK/bE2cgY3xgsUmEYW0KZUE0K4u7QK
254
+ UdcuZ97M+97MlCGEnQ43jE4I56FkqmCy4pIoA4IIzhlRolbkwATQI9dSVSY3
255
+ pdd9YztiAJrcr5WnTOJddAyjg+g4LcUfAGEjBEIZT4zFttddouALDPbua7hG
256
+ 7FtsmyR9Ly7SnAI6bx340MLwEfMBfmhtHzt0X2yzG+Y8opWE6OvQH0p8QDY/
257
+ ActLpqNVAQAA
258
+ http_version:
259
+ recorded_at: Thu, 24 Mar 2016 12:17:11 GMT
260
+ - request:
261
+ method: post
262
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/random-feed/resources
263
+ body:
264
+ encoding: UTF-8
265
+ string: '{"properties":{"version":1.1},"id":"random-r127","name":"My Resource
266
+ 2","outgoing":{},"incoming":{},"resourceTypePath":"/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;random-feed/rt;random-rt-123"}'
267
+ headers:
268
+ Accept:
269
+ - application/json
270
+ Accept-Encoding:
271
+ - gzip, deflate
272
+ Content-Type:
273
+ - application/json
274
+ Content-Length:
275
+ - '192'
276
+ User-Agent:
277
+ - Ruby
278
+ response:
279
+ status:
280
+ code: 201
281
+ message: Created
282
+ headers:
283
+ Content-Encoding:
284
+ - gzip
285
+ Expires:
286
+ - '0'
287
+ Cache-Control:
288
+ - no-cache, no-store, must-revalidate
289
+ X-Powered-By:
290
+ - Undertow/1
291
+ Server:
292
+ - WildFly/10
293
+ Pragma:
294
+ - no-cache
295
+ Location:
296
+ - http://localhost:8080/hawkular/inventory/feeds/random-feed/resources/random-r127
297
+ Date:
298
+ - Thu, 24 Mar 2016 12:17:11 GMT
299
+ Connection:
300
+ - keep-alive
301
+ Content-Type:
302
+ - application/json
303
+ Content-Length:
304
+ - '189'
305
+ body:
306
+ encoding: ASCII-8BIT
307
+ string: !binary |-
308
+ H4sIAAAAAAAAAK2QTQ6CMBCF95yi6dqK/REaOYMb4wUKTCMLaNNWE0K4u7QK
309
+ UdcuZ97M+97MlCGErQo3jE4I56Fi8sCKmhdEahBEcM6IFI0kRyaAllwVsta5
310
+ rpwaWtMTDdDmbq0cZSXeRccwWoiO01L8ARA2QiCU8cRYbAfVJwq+gDd318A1
311
+ Yt9i1ybpe3GR5hTQOmPBhQ78R8wHON+ZIXbonm6zG+Y8opWE2OvQH0p8QDY/
312
+ AUKRmk5VAQAA
313
+ http_version:
314
+ recorded_at: Thu, 24 Mar 2016 12:17:11 GMT
315
+ - request:
316
+ method: get
317
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/random-feed/resources/random-r127
318
+ body:
319
+ encoding: US-ASCII
320
+ string: ''
321
+ headers:
322
+ Accept:
323
+ - application/json
324
+ Accept-Encoding:
325
+ - gzip, deflate
326
+ Content-Type:
327
+ - application/json
328
+ User-Agent:
329
+ - Ruby
330
+ response:
331
+ status:
332
+ code: 200
333
+ message: OK
334
+ headers:
335
+ Content-Encoding:
336
+ - gzip
337
+ Expires:
338
+ - '0'
339
+ Cache-Control:
340
+ - no-cache, no-store, must-revalidate
341
+ X-Powered-By:
342
+ - Undertow/1
343
+ Server:
344
+ - WildFly/10
345
+ Pragma:
346
+ - no-cache
347
+ Date:
348
+ - Thu, 24 Mar 2016 12:17:11 GMT
349
+ Connection:
350
+ - keep-alive
351
+ Content-Type:
352
+ - application/json
353
+ Content-Length:
354
+ - '189'
355
+ body:
356
+ encoding: ASCII-8BIT
357
+ string: !binary |-
358
+ H4sIAAAAAAAAAK2QTQ6CMBCF95yi6dqK/REaOYMb4wUKTCMLaNNWE0K4u7QK
359
+ UdcuZ97M+97MlCGErQo3jE4I56Fi8sCKmhdEahBEcM6IFI0kRyaAllwVsta5
360
+ rpwaWtMTDdDmbq0cZSXeRccwWoiO01L8ARA2QiCU8cRYbAfVJwq+gDd318A1
361
+ Yt9i1ybpe3GR5hTQOmPBhQ78R8wHON+ZIXbonm6zG+Y8opWE2OvQH0p8QDY/
362
+ AUKRmk5VAQAA
363
+ http_version:
364
+ recorded_at: Thu, 24 Mar 2016 12:17:11 GMT
365
+ - request:
366
+ method: post
367
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/random-feed/resources
368
+ body:
369
+ encoding: UTF-8
370
+ string: '{"properties":{"version":1.2},"id":"random-r128","name":"My Resource
371
+ 3","outgoing":{},"incoming":{},"resourceTypePath":"/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;random-feed/rt;random-rt-123"}'
372
+ headers:
373
+ Accept:
374
+ - application/json
375
+ Accept-Encoding:
376
+ - gzip, deflate
377
+ Content-Type:
378
+ - application/json
379
+ Content-Length:
380
+ - '192'
381
+ User-Agent:
382
+ - Ruby
383
+ response:
384
+ status:
385
+ code: 201
386
+ message: Created
387
+ headers:
388
+ Content-Encoding:
389
+ - gzip
390
+ Expires:
391
+ - '0'
392
+ Cache-Control:
393
+ - no-cache, no-store, must-revalidate
394
+ X-Powered-By:
395
+ - Undertow/1
396
+ Server:
397
+ - WildFly/10
398
+ Pragma:
399
+ - no-cache
400
+ Location:
401
+ - http://localhost:8080/hawkular/inventory/feeds/random-feed/resources/random-r128
402
+ Date:
403
+ - Thu, 24 Mar 2016 12:17:11 GMT
404
+ Connection:
405
+ - keep-alive
406
+ Content-Type:
407
+ - application/json
408
+ Content-Length:
409
+ - '187'
410
+ body:
411
+ encoding: ASCII-8BIT
412
+ string: !binary |-
413
+ H4sIAAAAAAAAAK2QTQ6CMBCF956i6dqK/REbOYMb4wUKTCMLaDNUE0K4u7QK
414
+ Udcu37yZ973MuCGEehNulJwIzUIh9F7kpcyZtqCYklIwrSrNDkIBP0qT69Jm
415
+ tkDT1a5lFqDOcFHIhabbmBgGDzFxnMUfAGElBMaFTIw5tjNtotAL9O6OFVwj
416
+ 9m02dbK+D2drSgU9Og8YGug/aj4A+8Z1ccJ3Yt1dMeeBLCTyKvFLiQ/YTE8t
417
+ sAE9VQEAAA==
418
+ http_version:
419
+ recorded_at: Thu, 24 Mar 2016 12:17:11 GMT
420
+ - request:
421
+ method: get
422
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/random-feed/resources/random-r128
423
+ body:
424
+ encoding: US-ASCII
425
+ string: ''
426
+ headers:
427
+ Accept:
428
+ - application/json
429
+ Accept-Encoding:
430
+ - gzip, deflate
431
+ Content-Type:
432
+ - application/json
433
+ User-Agent:
434
+ - Ruby
435
+ response:
436
+ status:
437
+ code: 200
438
+ message: OK
439
+ headers:
440
+ Content-Encoding:
441
+ - gzip
442
+ Expires:
443
+ - '0'
444
+ Cache-Control:
445
+ - no-cache, no-store, must-revalidate
446
+ X-Powered-By:
447
+ - Undertow/1
448
+ Server:
449
+ - WildFly/10
450
+ Pragma:
451
+ - no-cache
452
+ Date:
453
+ - Thu, 24 Mar 2016 12:17:11 GMT
454
+ Connection:
455
+ - keep-alive
456
+ Content-Type:
457
+ - application/json
458
+ Content-Length:
459
+ - '187'
460
+ body:
461
+ encoding: ASCII-8BIT
462
+ string: !binary |-
463
+ H4sIAAAAAAAAAK2QTQ6CMBCF956i6dqK/REbOYMb4wUKTCMLaDNUE0K4u7QK
464
+ Udcu37yZ973MuCGEehNulJwIzUIh9F7kpcyZtqCYklIwrSrNDkIBP0qT69Jm
465
+ tkDT1a5lFqDOcFHIhabbmBgGDzFxnMUfAGElBMaFTIw5tjNtotAL9O6OFVwj
466
+ 9m02dbK+D2drSgU9Og8YGug/aj4A+8Z1ccJ3Yt1dMeeBLCTyKvFLiQ/YTE8t
467
+ sAE9VQEAAA==
468
+ http_version:
469
+ recorded_at: Thu, 24 Mar 2016 12:17:11 GMT
470
+ - request:
471
+ method: delete
472
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/random-feed
473
+ body:
474
+ encoding: US-ASCII
475
+ string: ''
476
+ headers:
477
+ Accept:
478
+ - application/json
479
+ Accept-Encoding:
480
+ - gzip, deflate
481
+ Content-Type:
482
+ - application/json
483
+ User-Agent:
484
+ - Ruby
485
+ response:
486
+ status:
487
+ code: 204
488
+ message: No Content
489
+ headers:
490
+ Expires:
491
+ - '0'
492
+ Cache-Control:
493
+ - no-cache, no-store, must-revalidate
494
+ X-Powered-By:
495
+ - Undertow/1
496
+ Server:
497
+ - WildFly/10
498
+ Pragma:
499
+ - no-cache
500
+ Date:
501
+ - Thu, 24 Mar 2016 12:17:12 GMT
502
+ body:
503
+ encoding: UTF-8
504
+ string: ''
505
+ http_version:
506
+ recorded_at: Thu, 24 Mar 2016 12:17:12 GMT
507
+ recorded_with: VCR 3.0.1