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
@@ -11,17 +11,15 @@ http_interactions:
11
11
  - application/json
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
+ User-Agent:
15
+ - rest-client/2.0.0.rc1 (linux-gnu x86_64) ruby/2.2.4p230
14
16
  Content-Type:
15
17
  - application/json
16
- User-Agent:
17
- - Ruby
18
18
  response:
19
19
  status:
20
20
  code: 200
21
21
  message: OK
22
22
  headers:
23
- Content-Encoding:
24
- - gzip
25
23
  Expires:
26
24
  - '0'
27
25
  Cache-Control:
@@ -29,27 +27,29 @@ http_interactions:
29
27
  X-Powered-By:
30
28
  - Undertow/1
31
29
  Server:
32
- - WildFly/9
30
+ - WildFly/10
33
31
  Pragma:
34
32
  - no-cache
35
33
  Date:
36
- - Tue, 01 Dec 2015 13:25:38 GMT
34
+ - Thu, 18 Feb 2016 22:30:15 GMT
37
35
  Connection:
38
36
  - keep-alive
39
37
  Content-Type:
40
38
  - application/json
41
39
  Content-Length:
42
- - '85'
40
+ - '105'
43
41
  body:
44
42
  encoding: ASCII-8BIT
45
- string: !binary |-
46
- H4sIAAAAAAAAAKvmUlBQKkgsyVBSsFJQ0i+xNrIwMDJLMjbTtUhLNdE1MTY2
47
- 0rUwSbbQNTUySTU0N040s0hKU9IB6cpMAeshSgNXLQAnmwH5aQAAAA==
43
+ string: |-
44
+ {
45
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf",
46
+ "id" : "28026b36-8fe4-4332-84c8-524e173a68bf"
47
+ }
48
48
  http_version:
49
- recorded_at: Tue, 01 Dec 2015 13:25:38 GMT
49
+ recorded_at: Thu, 18 Feb 2016 22:30:15 GMT
50
50
  - request:
51
51
  method: get
52
- uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/snert/resourceTypes/Datasource/resources
52
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/resourceTypes/Datasource/resources
53
53
  body:
54
54
  encoding: US-ASCII
55
55
  string: ''
@@ -58,21 +58,19 @@ http_interactions:
58
58
  - application/json
59
59
  Accept-Encoding:
60
60
  - gzip, deflate
61
+ User-Agent:
62
+ - rest-client/2.0.0.rc1 (linux-gnu x86_64) ruby/2.2.4p230
61
63
  Hawkular-Tenant:
62
64
  - 28026b36-8fe4-4332-84c8-524e173a68bf
63
65
  Tenantid:
64
66
  - 28026b36-8fe4-4332-84c8-524e173a68bf
65
67
  Content-Type:
66
68
  - application/json
67
- User-Agent:
68
- - Ruby
69
69
  response:
70
70
  status:
71
71
  code: 200
72
72
  message: OK
73
73
  headers:
74
- Content-Encoding:
75
- - gzip
76
74
  Expires:
77
75
  - '0'
78
76
  Cache-Control:
@@ -80,11 +78,11 @@ http_interactions:
80
78
  X-Powered-By:
81
79
  - Undertow/1
82
80
  Server:
83
- - WildFly/9
81
+ - WildFly/10
84
82
  Pragma:
85
83
  - no-cache
86
84
  Date:
87
- - Tue, 01 Dec 2015 13:25:38 GMT
85
+ - Thu, 18 Feb 2016 22:30:16 GMT
88
86
  X-Total-Count:
89
87
  - '2'
90
88
  Connection:
@@ -92,24 +90,37 @@ http_interactions:
92
90
  Content-Type:
93
91
  - application/json
94
92
  Content-Length:
95
- - '228'
93
+ - '863'
96
94
  Link:
97
- - <http://localhost:8080/hawkular/inventory/feeds/snert/resourceTypes/Datasource/resources>;
95
+ - <http://localhost:8080/hawkular/inventory/feeds/f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/resourceTypes/Datasource/resources>;
98
96
  rel="current"
99
97
  body:
100
98
  encoding: ASCII-8BIT
101
- string: !binary |-
102
- H4sIAAAAAAAAANWRTQuCQBCG7/6KZaFby9ZqtiTdIoK6dRQPo64UfoW7EhL6
103
- 2/MjMspOXuq0vDPMu8/Ma6ObhhC+gDphtEKYKovxGTNd3SQ8EAYxdJ0Rbnic
104
- LJgh5ksdTO4GNLBkIjJFs+6tDqkHUVW96QnbytyVhVQiXvugQKZ55glZ1xtF
105
- OrnewTXMI8g2RzxtaFRxEQ1NgzYKTlmb56etde2WQNya48/W2X9v1PWyRRqY
106
- QnbP7XTgD4PXE9DBA9Av62vl9BcC2YvCi1II/y2QnntUIC/rayVy7vZEzXMk
107
- AwAA
99
+ string: |-
100
+ [ {
101
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/r;Local~~/r;Local~%2Fsubsystem=datasources%2Fdata-source=ExampleDS",
102
+ "type" : {
103
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/rt;Datasource",
104
+ "name" : "Datasource",
105
+ "id" : "Datasource"
106
+ },
107
+ "name" : "ExampleDS",
108
+ "id" : "Local~/subsystem=datasources/data-source=ExampleDS"
109
+ }, {
110
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/r;Local~~/r;Local~%2Fsubsystem=datasources%2Fdata-source=KeycloakDS",
111
+ "type" : {
112
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/rt;Datasource",
113
+ "name" : "Datasource",
114
+ "id" : "Datasource"
115
+ },
116
+ "name" : "KeycloakDS",
117
+ "id" : "Local~/subsystem=datasources/data-source=KeycloakDS"
118
+ } ]
108
119
  http_version:
109
- recorded_at: Tue, 01 Dec 2015 13:25:38 GMT
120
+ recorded_at: Thu, 18 Feb 2016 22:30:16 GMT
110
121
  - request:
111
122
  method: get
112
- uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/snert/resources/snert~Local~%2Fsubsystem=datasources%2Fdata-source=HawkularDS/data?dataType=configuration
123
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/resources/Local~%2Fsubsystem=datasources%2Fdata-source=ExampleDS/data?dataType=configuration
113
124
  body:
114
125
  encoding: US-ASCII
115
126
  string: ''
@@ -118,21 +129,19 @@ http_interactions:
118
129
  - application/json
119
130
  Accept-Encoding:
120
131
  - gzip, deflate
132
+ User-Agent:
133
+ - rest-client/2.0.0.rc1 (linux-gnu x86_64) ruby/2.2.4p230
121
134
  Hawkular-Tenant:
122
135
  - 28026b36-8fe4-4332-84c8-524e173a68bf
123
136
  Tenantid:
124
137
  - 28026b36-8fe4-4332-84c8-524e173a68bf
125
138
  Content-Type:
126
139
  - application/json
127
- User-Agent:
128
- - Ruby
129
140
  response:
130
141
  status:
131
142
  code: 404
132
143
  message: Not Found
133
144
  headers:
134
- Content-Encoding:
135
- - gzip
136
145
  Expires:
137
146
  - '0'
138
147
  Cache-Control:
@@ -140,35 +149,34 @@ http_interactions:
140
149
  X-Powered-By:
141
150
  - Undertow/1
142
151
  Server:
143
- - WildFly/9
152
+ - WildFly/10
144
153
  Pragma:
145
154
  - no-cache
146
155
  Date:
147
- - Tue, 01 Dec 2015 13:25:38 GMT
156
+ - Thu, 18 Feb 2016 22:30:16 GMT
148
157
  Connection:
149
158
  - keep-alive
150
159
  Content-Type:
151
160
  - application/json
152
161
  Content-Length:
153
- - '420'
162
+ - '500'
154
163
  body:
155
164
  encoding: ASCII-8BIT
156
- string: !binary |-
157
- H4sIAAAAAAAAAO1TQW+CMBi9+ysaLl4EN2GOaDipyZZsuuh2IhwqFGhWW9KW
158
- GWL0t68FlC1qYjJ3WLJwgO/xfY/Xx/s2LQAMxDnjzyIxwAAYUwbGUMIJlVgW
159
- IGY5jQCjANICsBjIFCmMELbGNAEZlKkYAN8fQcooDiF50YjflcOee9PrL+2+
160
- 6cbIMR3b7pmuE7rmXc9Bt/c27LvLuBsPBUVcdnl13z0xRbELOmCOCJQo8juA
161
- I+K1sXiBHFE5i9sKYQR5i9nbfDRRna9FhoQ/R4LlPEQKuKoUXeZLUQiJVl6k
162
- bKk+I/6ARIXryqxK7wGu33MC+XhxrD1kVEJMxRnlTRwU9BgJX/XHOMk5lJjR
163
- IAiMjk5RhBQJETpEG1XrXJVDmqRMVsNTDqgGnR/9yldXNVODokKNn1ljgKAk
164
- 3XYadq6PrmSLFGdTuKqUNT+vVnYQP1d+lC2VJ8YRn9QW1WoZT6y09tnC9ENR
165
- MF5YMMPWikWIWPsMnBJ2vWOfS8S/HZctyMU+7ffmd136sjYnhOFoT/RtKw+t
166
- ICiftq3tJ+uISmvrBQAA
165
+ string: |-
166
+ {
167
+ "errorMsg" : "No DataEntity found on any of the following paths: [[CanonicalPaths[/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/r;Local~%2Fsubsystem=datasources%2Fdata-source=ExampleDS/d;configuration]]]",
168
+ "details" : {
169
+ "entityType" : "DataEntity",
170
+ "path" : [ [ {
171
+ "paths" : [ "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/r;Local~%2Fsubsystem=datasources%2Fdata-source=ExampleDS/d;configuration" ]
172
+ } ] ]
173
+ }
174
+ }
167
175
  http_version:
168
- recorded_at: Tue, 01 Dec 2015 13:25:38 GMT
176
+ recorded_at: Thu, 18 Feb 2016 22:30:16 GMT
169
177
  - request:
170
178
  method: get
171
- uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/snert/resources/snert~Local~%2Fsubsystem=datasources%2Fdata-source=KeycloakDS/data?dataType=configuration
179
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/resources/Local~%2Fsubsystem=datasources%2Fdata-source=KeycloakDS/data?dataType=configuration
172
180
  body:
173
181
  encoding: US-ASCII
174
182
  string: ''
@@ -177,21 +185,19 @@ http_interactions:
177
185
  - application/json
178
186
  Accept-Encoding:
179
187
  - gzip, deflate
188
+ User-Agent:
189
+ - rest-client/2.0.0.rc1 (linux-gnu x86_64) ruby/2.2.4p230
180
190
  Hawkular-Tenant:
181
191
  - 28026b36-8fe4-4332-84c8-524e173a68bf
182
192
  Tenantid:
183
193
  - 28026b36-8fe4-4332-84c8-524e173a68bf
184
194
  Content-Type:
185
195
  - application/json
186
- User-Agent:
187
- - Ruby
188
196
  response:
189
197
  status:
190
198
  code: 404
191
199
  message: Not Found
192
200
  headers:
193
- Content-Encoding:
194
- - gzip
195
201
  Expires:
196
202
  - '0'
197
203
  Cache-Control:
@@ -199,30 +205,29 @@ http_interactions:
199
205
  X-Powered-By:
200
206
  - Undertow/1
201
207
  Server:
202
- - WildFly/9
208
+ - WildFly/10
203
209
  Pragma:
204
210
  - no-cache
205
211
  Date:
206
- - Tue, 01 Dec 2015 13:25:38 GMT
212
+ - Thu, 18 Feb 2016 22:30:16 GMT
207
213
  Connection:
208
214
  - keep-alive
209
215
  Content-Type:
210
216
  - application/json
211
217
  Content-Length:
212
- - '423'
218
+ - '502'
213
219
  body:
214
220
  encoding: ASCII-8BIT
215
- string: !binary |-
216
- H4sIAAAAAAAAAO1TwW6CQBS8+xUbLl4EW7WWaDyph6atGm1PhMMKD9i47prd
217
- pYYY/fbugkobNTGpPTRpOMAb3htmh3mbCkIWCMHFq4wt1EHWiKMBVnjIFFEZ
218
- injKQsQZwixDPEIqAY1RyteExWiFVSI7yPP6mHFGAkwnBvHqqttw7xrtebNt
219
- uxG07Faz2bDdVuDaD40W3D82cdudR/WoKxkIVRfFfffCNcXOr6EpUKwg9GpI
220
- AO1ViZxgAUyNo6pGOIXebPw+7Q9151u2AulNQfJUBKCBm0oxZTqXmVSw7IXa
221
- luIz8g9I1Lip7KLsPUMWUI4Xg9mp9oAzhQmTF5SXcdDQUyg93R+ROBVYEc58
222
- 37dqJkUhaBIqTYg2uja5yocMSZ6skicf0A0mP+aVp69iZg/KArV+Zo2F/Jx0
223
- WyvZhTm6li0TshrhZaGs/Hl7ZUfxU+1H3lJ4Yp3wKWPRXi0XsZPg9SKlWDiE
224
- fWgKLjIHr4iz5CFQ55CBc8Jud+xLifi347oFudqnw978rktf1uaMMBIeiL5t
225
- 5bEV+fnTtrL9BCrxBVXrBQAA
221
+ string: |-
222
+ {
223
+ "errorMsg" : "No DataEntity found on any of the following paths: [[CanonicalPaths[/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/r;Local~%2Fsubsystem=datasources%2Fdata-source=KeycloakDS/d;configuration]]]",
224
+ "details" : {
225
+ "entityType" : "DataEntity",
226
+ "path" : [ [ {
227
+ "paths" : [ "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/r;Local~%2Fsubsystem=datasources%2Fdata-source=KeycloakDS/d;configuration" ]
228
+ } ] ]
229
+ }
230
+ }
226
231
  http_version:
227
- recorded_at: Tue, 01 Dec 2015 13:25:38 GMT
228
- recorded_with: VCR 3.0.0
232
+ recorded_at: Thu, 18 Feb 2016 22:30:16 GMT
233
+ recorded_with: VCR 3.0.1
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  http_interactions:
3
3
  - request:
4
- method: get
5
- uri: http://jdoe:password@localhost:8080/hawkular/inventory/tenant
4
+ method: post
5
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/
6
6
  body:
7
- encoding: US-ASCII
8
- string: ''
7
+ encoding: UTF-8
8
+ string: '{"id":"feed_1123sdncisud6237ui23hjbdscuzsad","name":null}'
9
9
  headers:
10
10
  Accept:
11
11
  - application/json
@@ -13,12 +13,14 @@ http_interactions:
13
13
  - gzip, deflate
14
14
  Content-Type:
15
15
  - application/json
16
+ Content-Length:
17
+ - '57'
16
18
  User-Agent:
17
19
  - Ruby
18
20
  response:
19
21
  status:
20
- code: 200
21
- message: OK
22
+ code: 409
23
+ message: Conflict
22
24
  headers:
23
25
  Content-Encoding:
24
26
  - gzip
@@ -29,27 +31,34 @@ http_interactions:
29
31
  X-Powered-By:
30
32
  - Undertow/1
31
33
  Server:
32
- - WildFly/9
34
+ - WildFly/10
33
35
  Pragma:
34
36
  - no-cache
35
37
  Date:
36
- - Fri, 06 Nov 2015 15:31:36 GMT
38
+ - Mon, 15 Feb 2016 09:08:19 GMT
37
39
  Connection:
38
40
  - keep-alive
39
41
  Content-Type:
40
42
  - application/json
41
43
  Content-Length:
42
- - '85'
44
+ - '391'
43
45
  body:
44
46
  encoding: ASCII-8BIT
45
47
  string: !binary |-
46
- H4sIAAAAAAAAAKvmUlBQKkgsyVBSsFJQ0i+xNrIwMDJLMjbTtUhLNdE1MTY2
47
- 0rUwSbbQNTUySTU0N040s0hKU9IB6cpMAeshSgNXLQAnmwH5aQAAAA==
48
+ H4sIAAAAAAAAAJWRP2/CMBDFdz7FKUuWEEpCIQIxVVRiaCtROkVR5eALcRvs
49
+ yHZKU8R3r53wZ2hVpfLis+5+vvfeoQfgoJRCPqitA1Nw7hEp7JnOgVFwbRWX
50
+ ROdzd6BnQXQTjNNw3I8yHPVHYRj0o9Em6t8GIxxOQjKO0myQzTIz9DocBqGi
51
+ fMNURcdBOKlYEOZvKVWb6ksR6iYu5ERBisiBFBIJrUHilimNEqkPC66Zrq+b
52
+ dIJeSPhpQAqIBiV2CCIDnSOUQjHNBFdTiON1XaKK18gJ14kHS6riLvpM6woL
53
+ oo0vnlm4mLsbwTVhXLmmFgXOn59eVncL09f+YC088btoSJLE8WwqFA21UDaU
54
+ g6ltTo0lS9rk1IXVgMygDbABxea0MPOq7XrtqyPk1s/J/r0qiPQZ/zBfCVn7
55
+ pGT+TlAs/NYnB5Jm+uhdMYyeIV3s+40grZ82lpyVj2SHjb6zqycNF/krY3HT
56
+ 0Nrs/KD9S5YN529RnXw+EyBpbsfe8RvfIvsFWQMAAA==
48
57
  http_version:
49
- recorded_at: Fri, 06 Nov 2015 15:31:36 GMT
58
+ recorded_at: Mon, 15 Feb 2016 09:08:19 GMT
50
59
  - request:
51
60
  method: get
52
- uri: http://jdoe:password@localhost:8080/hawkular/inventory/resourceTypes
61
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_1123sdncisud6237ui23hjbdscuzsad
53
62
  body:
54
63
  encoding: US-ASCII
55
64
  string: ''
@@ -76,35 +85,23 @@ http_interactions:
76
85
  X-Powered-By:
77
86
  - Undertow/1
78
87
  Server:
79
- - WildFly/9
88
+ - WildFly/10
80
89
  Pragma:
81
90
  - no-cache
82
91
  Date:
83
- - Fri, 06 Nov 2015 15:31:43 GMT
84
- X-Total-Count:
85
- - '17'
92
+ - Mon, 15 Feb 2016 09:08:19 GMT
86
93
  Connection:
87
94
  - keep-alive
88
95
  Content-Type:
89
96
  - application/json
90
97
  Content-Length:
91
- - '455'
92
- Link:
93
- - <http://localhost:8080/hawkular/inventory/resourceTypes>; rel="current"
98
+ - '121'
94
99
  body:
95
100
  encoding: ASCII-8BIT
96
101
  string: !binary |-
97
- H4sIAAAAAAAAAK2UX0/CMBTF3/kUzRLfWMBt4uKenEgMkWhE44PxoYw7XNgf
98
- 0nYaYvjutqMbXTdeTN/gnLPeX87u+oF+BwhZO8y+LHSDrBELHH/sTFbuxPZj
99
- 8GzPdR3b9yLfvnI8uLx28cRfxSPCgreXR2soHk7W1aPi/+Aw/OeBEDCgbBQH
100
- NAfCxPlPOyCYJfnmwhkv95RBdhyX4wyqo5sAUm1J0zFNos2SFAQVKwhoUMJC
101
- iiFxFNkkyDMpIqC0IBqFpkuIk2qSYQFZQfYagCrK6VIyOfo9SdezdC9eBZBv
102
- 0FuQNlJNCaNZJqGmmGFalCTSV0M3JIoim8SYT8M7XsyUJN1ihIdUR6KoutFK
103
- YJcW+wxypleiGXUlJ9nsplKKN1C3kvMf9/Ows7lV6FhDjppAs8Ud2yTikmEG
104
- KZ9R7TSlSdFP2eSQTHVA+xNGWfm3k4L+SltqzSI1o9P53c7PPNdP7XZ7aTlG
105
- icrV2UXv8WqelmOS55XgnOKIHXdogXO+t/pNoGRQKyHp+nyTjA/4Z1ummHBA
106
- cSXH1WV+u+kWWAeRjCElJFnPREzihqX4MENSbDtNcguphoRS5MEBff4BYg+j
107
- FXAJAAA=
102
+ H4sIAAAAAAAAAI3MQQ6DIBAAwDuvIJxLlF0KG32MARYiPTQmyEXj3019QR8w
103
+ cwop1Rb2VclJqmGfgUZwEZ2mkq22iKDJJtJvsNl4DI5iGcpccubFGMDG31Rb
104
+ ZwfoewVcP5Fb6kcLrF6/vPJT/wXEdQMOauIckAAAAA==
108
105
  http_version:
109
- recorded_at: Fri, 06 Nov 2015 15:31:43 GMT
106
+ recorded_at: Mon, 15 Feb 2016 09:08:19 GMT
110
107
  recorded_with: VCR 3.0.0
@@ -0,0 +1,211 @@
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: '{"id":"feed_1123sdncisud6237ui2378789vvgX","name":null}'
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Type:
15
+ - application/json
16
+ Content-Length:
17
+ - '55'
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 409
23
+ message: Conflict
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
+ Date:
38
+ - Mon, 15 Feb 2016 09:08:19 GMT
39
+ Connection:
40
+ - keep-alive
41
+ Content-Type:
42
+ - application/json
43
+ Content-Length:
44
+ - '391'
45
+ body:
46
+ encoding: ASCII-8BIT
47
+ string: !binary |-
48
+ H4sIAAAAAAAAAJWRX2vCMBTF3/0Ul770pa2z7bRTfBoOfNgGboNBKSOa2zas
49
+ JiWJOhG/+5LWPw8b01EIveHeX+45Z9cBcFBKIR9V4cAQnAdEChumS2AUXFul
50
+ NdHl2O3qUZjchP151PeTHGM/jqLQT+JF4t+GMfYGEekn87ybj3Iz9NHrhZGi
51
+ fMHUivbDaLBi5kgGyd16Xby7mQslUTBH5EAqiYRuQWLBlEaJNIAJ10xvz3tc
52
+ gTxx8MtgFBANSiwRRA66RKiFYpoJroaQpq/bGlX6ipxwnXkwpSq9RptpnWFF
53
+ tPHEM+tWY3chuCaMK9fUosLxy/Pb7H5i+toXrH0H/mUFWZY5ns2DomFWysax
54
+ M7VNqLFjSpuELpMajBmzwTWY1Hwtytxqu1p76whZBCXZfK4qIgPG1+YhIbcB
55
+ qVmwFBSroPXIgayZ3ntnDKNHyDXW/UaQ1ksbScnqJ7LERt3R0YOGk/iZsbdp
56
+ aC12ftD+JcsG87eoK1w+zkPW/O07+2/wq+msTwMAAA==
57
+ http_version:
58
+ recorded_at: Mon, 15 Feb 2016 09:08:19 GMT
59
+ - request:
60
+ method: get
61
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_1123sdncisud6237ui2378789vvgX
62
+ body:
63
+ encoding: US-ASCII
64
+ string: ''
65
+ headers:
66
+ Accept:
67
+ - application/json
68
+ Accept-Encoding:
69
+ - gzip, deflate
70
+ Content-Type:
71
+ - application/json
72
+ User-Agent:
73
+ - Ruby
74
+ response:
75
+ status:
76
+ code: 200
77
+ message: OK
78
+ headers:
79
+ Content-Encoding:
80
+ - gzip
81
+ Expires:
82
+ - '0'
83
+ Cache-Control:
84
+ - no-cache, no-store, must-revalidate
85
+ X-Powered-By:
86
+ - Undertow/1
87
+ Server:
88
+ - WildFly/10
89
+ Pragma:
90
+ - no-cache
91
+ Date:
92
+ - Mon, 15 Feb 2016 09:08:19 GMT
93
+ Connection:
94
+ - keep-alive
95
+ Content-Type:
96
+ - application/json
97
+ Content-Length:
98
+ - '120'
99
+ body:
100
+ encoding: ASCII-8BIT
101
+ string: !binary |-
102
+ H4sIAAAAAAAAAI3MOQ6AIBBA0d5TEGqJMoMw6kXsDAgojTFxaYx3dzmBza9+
103
+ 3pkxxhe7TZw1jBdbC1SCdqgFxaCEQgRBaiBRgQrSoNXkYhHbGILvpQRc/Tyk
104
+ dfca0OzpCRmqj2PseP7SyX/wjz27bkwNEceMAAAA
105
+ http_version:
106
+ recorded_at: Mon, 15 Feb 2016 09:08:19 GMT
107
+ - request:
108
+ method: post
109
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/
110
+ body:
111
+ encoding: UTF-8
112
+ string: '{"id":"feed_1123sdncisud6237ui2378789vvgX","name":null}'
113
+ headers:
114
+ Accept:
115
+ - application/json
116
+ Accept-Encoding:
117
+ - gzip, deflate
118
+ Content-Type:
119
+ - application/json
120
+ Content-Length:
121
+ - '55'
122
+ User-Agent:
123
+ - Ruby
124
+ response:
125
+ status:
126
+ code: 409
127
+ message: Conflict
128
+ headers:
129
+ Content-Encoding:
130
+ - gzip
131
+ Expires:
132
+ - '0'
133
+ Cache-Control:
134
+ - no-cache, no-store, must-revalidate
135
+ X-Powered-By:
136
+ - Undertow/1
137
+ Server:
138
+ - WildFly/10
139
+ Pragma:
140
+ - no-cache
141
+ Date:
142
+ - Mon, 15 Feb 2016 09:08:19 GMT
143
+ Connection:
144
+ - keep-alive
145
+ Content-Type:
146
+ - application/json
147
+ Content-Length:
148
+ - '391'
149
+ body:
150
+ encoding: ASCII-8BIT
151
+ string: !binary |-
152
+ H4sIAAAAAAAAAJWRX2vCMBTF3/0Ul770pa2z7bRTfBoOfNgGboNBKSOa2zas
153
+ JiWJOhG/+5LWPw8b01EIveHeX+45Z9cBcFBKIR9V4cAQnAdEChumS2AUXFul
154
+ NdHl2O3qUZjchP151PeTHGM/jqLQT+JF4t+GMfYGEekn87ybj3Iz9NHrhZGi
155
+ fMHUivbDaLBi5kgGyd16Xby7mQslUTBH5EAqiYRuQWLBlEaJNIAJ10xvz3tc
156
+ gTxx8MtgFBANSiwRRA66RKiFYpoJroaQpq/bGlX6ipxwnXkwpSq9RptpnWFF
157
+ tPHEM+tWY3chuCaMK9fUosLxy/Pb7H5i+toXrH0H/mUFWZY5ns2DomFWysax
158
+ M7VNqLFjSpuELpMajBmzwTWY1Hwtytxqu1p76whZBCXZfK4qIgPG1+YhIbcB
159
+ qVmwFBSroPXIgayZ3ntnDKNHyDXW/UaQ1ksbScnqJ7LERt3R0YOGk/iZsbdp
160
+ aC12ftD+JcsG87eoK1w+zkPW/O07+2/wq+msTwMAAA==
161
+ http_version:
162
+ recorded_at: Mon, 15 Feb 2016 09:08:19 GMT
163
+ - request:
164
+ method: get
165
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_1123sdncisud6237ui2378789vvgX
166
+ body:
167
+ encoding: US-ASCII
168
+ string: ''
169
+ headers:
170
+ Accept:
171
+ - application/json
172
+ Accept-Encoding:
173
+ - gzip, deflate
174
+ Content-Type:
175
+ - application/json
176
+ User-Agent:
177
+ - Ruby
178
+ response:
179
+ status:
180
+ code: 200
181
+ message: OK
182
+ headers:
183
+ Content-Encoding:
184
+ - gzip
185
+ Expires:
186
+ - '0'
187
+ Cache-Control:
188
+ - no-cache, no-store, must-revalidate
189
+ X-Powered-By:
190
+ - Undertow/1
191
+ Server:
192
+ - WildFly/10
193
+ Pragma:
194
+ - no-cache
195
+ Date:
196
+ - Mon, 15 Feb 2016 09:08:19 GMT
197
+ Connection:
198
+ - keep-alive
199
+ Content-Type:
200
+ - application/json
201
+ Content-Length:
202
+ - '120'
203
+ body:
204
+ encoding: ASCII-8BIT
205
+ string: !binary |-
206
+ H4sIAAAAAAAAAI3MOQ6AIBBA0d5TEGqJMoMw6kXsDAgojTFxaYx3dzmBza9+
207
+ 3pkxxhe7TZw1jBdbC1SCdqgFxaCEQgRBaiBRgQrSoNXkYhHbGILvpQRc/Tyk
208
+ dfca0OzpCRmqj2PseP7SyX/wjz27bkwNEceMAAAA
209
+ http_version:
210
+ recorded_at: Mon, 15 Feb 2016 09:08:19 GMT
211
+ recorded_with: VCR 3.0.0