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.
- checksums.yaml +4 -4
- data/.coveralls.yml +1 -0
- data/.gitignore +2 -1
- data/.rubocop.yml +19 -6
- data/CHANGES.rdoc +13 -3
- data/README.rdoc +9 -3
- data/hawkularclient.gemspec +8 -4
- data/lib/alerts/alerts_api.rb +202 -32
- data/lib/hawkular.rb +35 -67
- data/lib/hawkular_all.rb +2 -0
- data/lib/inventory/inventory_api.rb +459 -130
- data/lib/metrics/metric_api.rb +14 -9
- data/lib/operations/operations_api.rb +247 -0
- data/lib/tokens/tokens_api.rb +33 -0
- data/lib/version.rb +1 -1
- data/spec/integration/alerts_spec.rb +272 -20
- data/spec/integration/hello-world-definitions.json +46 -0
- data/spec/integration/inventory_spec.rb +253 -89
- data/spec/integration/metric_spec.rb +36 -0
- data/spec/integration/operations_spec.rb +420 -0
- data/spec/integration/tokens_spec.rb +45 -0
- data/spec/resources/driver.jar +0 -0
- data/spec/resources/sample.war +0 -0
- data/spec/spec_helper.rb +30 -6
- data/spec/unit/base_spec.rb +22 -1
- data/spec/unit/canonical_path_spec.rb +92 -0
- data/spec/vcr/vcr_setup.rb +3 -4
- data/spec/vcr_cassettes/Alert/EndToEnd/Should_create_and_fire_a_trigger.yml +1187 -0
- data/spec/vcr_cassettes/Alert/Events/Should_list_events.yml +101 -0
- data/spec/vcr_cassettes/Alert/Events/Should_list_events_using_criteria.yml +79 -0
- data/spec/vcr_cassettes/Alert/Events/Should_not_list_events_using_criteria.yml +49 -0
- data/spec/vcr_cassettes/Alert/Triggers/Should_bulk_load_triggers.yml +225 -0
- data/spec/vcr_cassettes/Alert/Triggers/Should_create_a_basic_trigger_with_action.yml +355 -0
- data/spec/vcr_cassettes/Alert/Triggers/Should_create_an_action.yml +134 -0
- data/spec/vcr_cassettes/Alert/Triggers/Should_create_an_action_for_webhooks.yml +220 -0
- data/spec/vcr_cassettes/Alert/Triggers/Should_get_the_action_definitions.yml +218 -0
- data/spec/vcr_cassettes/Alert/Triggers/Should_not_create_an_action_for_unknown_plugin.yml +46 -0
- data/spec/vcr_cassettes/Alert/Triggers/Should_not_create_an_action_for_unknown_properties.yml +134 -0
- data/spec/vcr_cassettes/Counter_metrics/Should_get_metrics_with_limit_and_order.yml +270 -0
- data/spec/vcr_cassettes/Inventory/Client_should_listen_on_various_inventory_events.json +47 -0
- data/spec/vcr_cassettes/Inventory/Client_should_listen_on_various_inventory_events.yml +191 -0
- data/spec/vcr_cassettes/Inventory/Helpers/generate_some_events_for_websocket.yml +507 -0
- data/spec/vcr_cassettes/Inventory/Should_List_datasources_with_no_props.yml +74 -69
- data/spec/vcr_cassettes/Inventory/{Should_list_types_without_feed.yml → Should_create_a_feed.yml} +29 -32
- data/spec/vcr_cassettes/Inventory/Should_create_a_feed_again.yml +211 -0
- data/spec/vcr_cassettes/Inventory/Should_create_a_resource_.yml +355 -0
- data/spec/vcr_cassettes/Inventory/Should_create_a_resource_with_metric.yml +786 -0
- data/spec/vcr_cassettes/Inventory/Should_create_a_resourcetype.yml +205 -0
- data/spec/vcr_cassettes/Inventory/Should_create_and_delete_feed.yml +201 -0
- data/spec/vcr_cassettes/Inventory/Should_create_and_get_a_resource.yml +419 -0
- data/spec/vcr_cassettes/Inventory/Should_list_URLs.yml +39 -27
- data/spec/vcr_cassettes/Inventory/Should_list_WildFlys.yml +37 -29
- data/spec/vcr_cassettes/Inventory/Should_list_WildFlys_with_props.yml +53 -45
- data/spec/vcr_cassettes/Inventory/Should_list_all_the_resource_types.yml +177 -0
- data/spec/vcr_cassettes/Inventory/Should_list_children_of_WildFly.yml +230 -56
- data/spec/vcr_cassettes/Inventory/Should_list_feeds.yml +27 -24
- data/spec/vcr_cassettes/Inventory/Should_list_heap_metrics_for_WildFlys.yml +586 -119
- data/spec/vcr_cassettes/Inventory/Should_list_metrics_for_WildFlys.yml +220 -59
- data/spec/vcr_cassettes/Inventory/Should_list_metrics_of_given_metric_type.yml +613 -0
- data/spec/vcr_cassettes/Inventory/Should_list_metrics_of_given_resource_type.yml +333 -0
- data/spec/vcr_cassettes/Inventory/Should_list_recursive_children_of_WildFly.yml +2064 -0
- data/spec/vcr_cassettes/Inventory/Should_list_relationships_of_WildFly.yml +460 -0
- data/spec/vcr_cassettes/Inventory/Should_list_types_with_bad_feed.yml +26 -25
- data/spec/vcr_cassettes/Inventory/Should_list_types_with_feed.yml +102 -36
- data/spec/vcr_cassettes/Inventory/Should_not_find_an_unknown_resource.yml +54 -0
- data/spec/vcr_cassettes/Inventory/Tenants/Should_Get_Tenant_For_Explicit_Credentials.yml +50 -0
- data/spec/vcr_cassettes/Inventory/Tenants/Should_Get_Tenant_For_Implicit_Credentials.yml +50 -0
- data/spec/vcr_cassettes/Operation/Helpers/get_tenant.yml +50 -0
- data/spec/vcr_cassettes/Operation/Operation/Add_JDBC_driver_should_add_the_driver.json +26 -0
- data/spec/vcr_cassettes/Operation/Operation/Add_datasource_should_be_doable.json +26 -0
- data/spec/vcr_cassettes/Operation/Operation/Add_deployment_should_be_doable.json +26 -0
- data/spec/vcr_cassettes/Operation/Operation/Redeploy_can_be_run_multiple_times_in_parallel.json +40 -0
- data/spec/vcr_cassettes/Operation/Operation/Redeploy_should_be_performed_and_eventually_respond_with_success.json +26 -0
- data/spec/vcr_cassettes/Operation/Operation/Redeploy_should_not_be_performed_if_resource_path_is_wrong.json +26 -0
- data/spec/vcr_cassettes/Operation/Operation/Remove_JDBC_driver_should_be_performed_and_eventually_respond_with_success.json +26 -0
- data/spec/vcr_cassettes/Operation/Operation/Remove_datasource_should_be_performed_and_eventually_respond_with_success.json +26 -0
- data/spec/vcr_cassettes/Operation/Operation/Remove_deployment_should_be_performed_and_eventually_respond_with_success.json +26 -0
- data/spec/vcr_cassettes/Operation/Operation/Undeploy_should_be_performed_and_eventually_respond_with_success.json +26 -0
- data/spec/vcr_cassettes/Operation/Operation/should_not_be_possible_to_perform_on_closed_client.json +12 -0
- data/spec/vcr_cassettes/Operation/Websocket_connection/should_be_established.json +9 -0
- data/spec/vcr_cassettes/Tokens/Should_be_able_to_create_a_new_token_for_an_actual_user.yml +57 -0
- data/spec/vcr_cassettes/Tokens/Should_be_able_to_list_the_available_tokens.yml +49 -0
- data/spec/vcr_cassettes/Tokens/Should_get_a_401_when_attempting_to_create_a_token_with_a_wrong_password.yml +56 -0
- data/spec/vcr_cassettes/Tokens/Should_get_a_401_when_attempting_to_create_a_token_without_a_password.yml +55 -0
- metadata +175 -11
- data/lib/metrics/version.rb +0 -7
@@ -0,0 +1,205 @@
|
|
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_may_exist","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
|
+
- '35'
|
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
|
+
- '370'
|
45
|
+
body:
|
46
|
+
encoding: ASCII-8BIT
|
47
|
+
string: !binary |-
|
48
|
+
H4sIAAAAAAAAAJWQzW7CMBCE7zzFKpdcktAmKY1AnCoqcWgrUXqKImTwhlhN
|
49
|
+
4sh2SyPEu9d2+BG0qqh88do7szvftgfgoBBcPMm1A0NwHhEpbJgqgFFwTZU2
|
50
|
+
RBVjt69GYXITDpbRwE9yjP04ikI/iVeJfxfGeHsfkUGyzPv5KNeiRUXaBX4x
|
51
|
+
qdzMhYJIWCLWQEqBhLYgcK2/UCANYFIrptrTzAv5UWNLCUSB5BUCz0EVCA2X
|
52
|
+
TDFeyyGk6bxtUKZzrEmtMg+mVKbX7KxbZ1gSpbN6erVy7K54rQirpatrXuL4
|
53
|
+
9eVt9jDRfd0Eg2Xvf75tlmWOZ5hS1PpSGqRbXRvKNuaUWsrnKivRLQa0laT6
|
54
|
+
dDL9qszI7tXhYh0UZPP+URIRsPpTm3LRBqRhQcUplkGX3YHMqnfeyYbRg8k1
|
55
|
+
SH5zEIaRQV2w5plUaJMcSO0zHIPONDbb0KFzfrj9K5YB/neoC6KHXsjsbdfb
|
56
|
+
fQOfEN7S6wIAAA==
|
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_may_exist
|
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:20 GMT
|
93
|
+
Connection:
|
94
|
+
- keep-alive
|
95
|
+
Content-Type:
|
96
|
+
- application/json
|
97
|
+
Content-Length:
|
98
|
+
- '102'
|
99
|
+
body:
|
100
|
+
encoding: ASCII-8BIT
|
101
|
+
string: !binary |-
|
102
|
+
H4sIAAAAAAAAAKvmUlBQKkgsyVBSsFJQ0i+xNrIwMDJLMjbTtUhLNdE1MTY2
|
103
|
+
0rUwSbbQNTUySTU0N040s0hK00+zTktNTYnPTayMT63ILC5R0gEZk5kCNgRN
|
104
|
+
iqsWADiVKMdkAAAA
|
105
|
+
http_version:
|
106
|
+
recorded_at: Mon, 15 Feb 2016 09:08:20 GMT
|
107
|
+
- request:
|
108
|
+
method: post
|
109
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resourceTypes
|
110
|
+
body:
|
111
|
+
encoding: UTF-8
|
112
|
+
string: '{"id":"rt-123","name":"ResourceType"}'
|
113
|
+
headers:
|
114
|
+
Accept:
|
115
|
+
- application/json
|
116
|
+
Accept-Encoding:
|
117
|
+
- gzip, deflate
|
118
|
+
Content-Type:
|
119
|
+
- application/json
|
120
|
+
Content-Length:
|
121
|
+
- '37'
|
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:20 GMT
|
143
|
+
Connection:
|
144
|
+
- keep-alive
|
145
|
+
Content-Type:
|
146
|
+
- application/json
|
147
|
+
Content-Length:
|
148
|
+
- '109'
|
149
|
+
body:
|
150
|
+
encoding: ASCII-8BIT
|
151
|
+
string: !binary |-
|
152
|
+
H4sIAAAAAAAAABXMMQqAMAwF0L2n+HTp4gncHT1EodEGaiNNRIt4d+n+eK8D
|
153
|
+
PLUmbdXdY4ZfqrF13GwZnBDqVUpALI1i6qCH1RTRoHIQZINlwinKxlJ1xuB+
|
154
|
+
Gmsii1x0pC8+9/2FU7bnawAAAA==
|
155
|
+
http_version:
|
156
|
+
recorded_at: Mon, 15 Feb 2016 09:08:20 GMT
|
157
|
+
- request:
|
158
|
+
method: get
|
159
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resourceTypes/rt-123
|
160
|
+
body:
|
161
|
+
encoding: US-ASCII
|
162
|
+
string: ''
|
163
|
+
headers:
|
164
|
+
Accept:
|
165
|
+
- application/json
|
166
|
+
Accept-Encoding:
|
167
|
+
- gzip, deflate
|
168
|
+
Content-Type:
|
169
|
+
- application/json
|
170
|
+
User-Agent:
|
171
|
+
- Ruby
|
172
|
+
response:
|
173
|
+
status:
|
174
|
+
code: 200
|
175
|
+
message: OK
|
176
|
+
headers:
|
177
|
+
Content-Encoding:
|
178
|
+
- gzip
|
179
|
+
Expires:
|
180
|
+
- '0'
|
181
|
+
Cache-Control:
|
182
|
+
- no-cache, no-store, must-revalidate
|
183
|
+
X-Powered-By:
|
184
|
+
- Undertow/1
|
185
|
+
Server:
|
186
|
+
- WildFly/10
|
187
|
+
Pragma:
|
188
|
+
- no-cache
|
189
|
+
Date:
|
190
|
+
- Mon, 15 Feb 2016 09:08:20 GMT
|
191
|
+
Connection:
|
192
|
+
- keep-alive
|
193
|
+
Content-Type:
|
194
|
+
- application/json
|
195
|
+
Content-Length:
|
196
|
+
- '130'
|
197
|
+
body:
|
198
|
+
encoding: ASCII-8BIT
|
199
|
+
string: !binary |-
|
200
|
+
H4sIAAAAAAAAAC3MQQ6CMBBA0T2naLp2UpmpdWJvYdyTAtPIAiVlTCTGuxPQ
|
201
|
+
9fv5n8oYOyW9W3Mx1mlEPmJoKQBn8eCJENh3DCf0Up8pBW6zyzGL9M2Ylkbe
|
202
|
+
w6yuaCwKNZI9bMNHGmUfXmV+vkont2WSHw39Dv+6+q5ugH8sgQAAAA==
|
203
|
+
http_version:
|
204
|
+
recorded_at: Mon, 15 Feb 2016 09:08:20 GMT
|
205
|
+
recorded_with: VCR 3.0.0
|
@@ -0,0 +1,201 @@
|
|
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":"feed_1123sdn","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
|
+
- '77'
|
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 11:35:10 GMT
|
39
|
+
Connection:
|
40
|
+
- keep-alive
|
41
|
+
Content-Type:
|
42
|
+
- application/json
|
43
|
+
Content-Length:
|
44
|
+
- '369'
|
45
|
+
body:
|
46
|
+
encoding: ASCII-8BIT
|
47
|
+
string: !binary |-
|
48
|
+
H4sIAAAAAAAAAJWQzW7CMBCE7zzFKpdcQihJSiMQp4pKHNpKlJ6iqDJ4Q6wG
|
49
|
+
O7Ld0gjx7rUdftWqosola83M7nzbDoCHUgr5qFYeDMF7QKSwYboERsG3U1YT
|
50
|
+
XY79nh5F6U00WMSDblpg0k3iOOqmyTLt3kYJ9u9iMkgXRa8YFcb01u9HsaLc
|
51
|
+
z30oiYIFIgdSSSS0AYkrpjRKpCFMuGa6OW28MB8d+GUMCogGJdYIogBdItRC
|
52
|
+
Mc0EV0PIsnlTo8rmyAnXeQBTqrJr7jXSGVZEm56BOawa+0vBNWFc+WYWFY5f
|
53
|
+
nl9n9xOjazdYJPv881vzPPcCS5OicVfKwtya2fJ1FafU8T33OIMRWMDOkJmv
|
54
|
+
NZlXbde1r56Qq7Akm/ePisiQ8U8TKWQTkpqFa0GxCtveHuTOvQtOMYweQq7B
|
55
|
+
8VuCtHws5pLVT2SNrseB0r7DsebMIHOCFpv3I+1ftSzsv0td8DwoIXd/u87u
|
56
|
+
G4TKPEThAgAA
|
57
|
+
http_version:
|
58
|
+
recorded_at: Mon, 15 Feb 2016 11:35:10 GMT
|
59
|
+
- request:
|
60
|
+
method: get
|
61
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_1123sdn
|
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 11:35:10 GMT
|
93
|
+
Connection:
|
94
|
+
- keep-alive
|
95
|
+
Content-Type:
|
96
|
+
- application/json
|
97
|
+
Content-Length:
|
98
|
+
- '100'
|
99
|
+
body:
|
100
|
+
encoding: ASCII-8BIT
|
101
|
+
string: !binary |-
|
102
|
+
H4sIAAAAAAAAAKvmUlBQKkgsyVBSsFJQ0i+xNrIwMDJLMjbTtUhLNdE1MTY2
|
103
|
+
0rUwSbbQNTUySTU0N040s0hK00+zTktNTYk3NDQyLk7JU9IBGZKZAjYCRYKr
|
104
|
+
FgCP+2d1YAAAAA==
|
105
|
+
http_version:
|
106
|
+
recorded_at: Mon, 15 Feb 2016 11:35:10 GMT
|
107
|
+
- request:
|
108
|
+
method: delete
|
109
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_1123sdn
|
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: 204
|
125
|
+
message: No Content
|
126
|
+
headers:
|
127
|
+
Expires:
|
128
|
+
- '0'
|
129
|
+
Cache-Control:
|
130
|
+
- no-cache, no-store, must-revalidate
|
131
|
+
X-Powered-By:
|
132
|
+
- Undertow/1
|
133
|
+
Server:
|
134
|
+
- WildFly/10
|
135
|
+
Pragma:
|
136
|
+
- no-cache
|
137
|
+
Date:
|
138
|
+
- Mon, 15 Feb 2016 11:35:11 GMT
|
139
|
+
body:
|
140
|
+
encoding: UTF-8
|
141
|
+
string: ''
|
142
|
+
http_version:
|
143
|
+
recorded_at: Mon, 15 Feb 2016 11:35:11 GMT
|
144
|
+
- request:
|
145
|
+
method: get
|
146
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds
|
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
|
+
Content-Encoding:
|
165
|
+
- gzip
|
166
|
+
Expires:
|
167
|
+
- '0'
|
168
|
+
Cache-Control:
|
169
|
+
- no-cache, no-store, must-revalidate
|
170
|
+
X-Powered-By:
|
171
|
+
- Undertow/1
|
172
|
+
Server:
|
173
|
+
- WildFly/10
|
174
|
+
Pragma:
|
175
|
+
- no-cache
|
176
|
+
Date:
|
177
|
+
- Mon, 15 Feb 2016 11:35:11 GMT
|
178
|
+
X-Total-Count:
|
179
|
+
- '11'
|
180
|
+
Connection:
|
181
|
+
- keep-alive
|
182
|
+
Content-Type:
|
183
|
+
- application/json
|
184
|
+
Content-Length:
|
185
|
+
- '328'
|
186
|
+
Link:
|
187
|
+
- <http://localhost:8080/hawkular/inventory/feeds>; rel="current"
|
188
|
+
body:
|
189
|
+
encoding: ASCII-8BIT
|
190
|
+
string: !binary |-
|
191
|
+
H4sIAAAAAAAAALWT22rDMAyG7/sUIdcVtS1LttcXKYxRfFwzaBmkKTvQd1/X
|
192
|
+
FbrswLJlvZX86f+Q8HX1PKmq+t5vV3V1VdWz7VxZoTgggy1Zg0ZUYHW0QEpn
|
193
|
+
adCzDWVW5qHkrIQwUKJE0J4YvLcJHLqQTBYxe6qnr8ObdBw9CJjsp382Ip04
|
194
|
+
5oiQqGTQhA6cjQVkOSBIOamSekaDgDFGjj2KEhJkjwa0MAmCSA6EDWQU6ahE
|
195
|
+
7BkNAsYYrWMnFb5lbvw6H/H3xZPIqTQm6nDutJSaSDOxsr3xH3v/lMOO+buc
|
196
|
+
Y298zmErbdrEpu0SKzRdo3B1F1Ibu6fWpy/CfwAuYmSssW63u90N8zk/v6jN
|
197
|
+
4nc2i1E21jvDURnwSA60IQtBMgJJJZxnEUTof71BwOj9rP3jMj807fbzLs6t
|
198
|
+
yb66eQFLybIxmQUAAA==
|
199
|
+
http_version:
|
200
|
+
recorded_at: Mon, 15 Feb 2016 11:35:11 GMT
|
201
|
+
recorded_with: VCR 3.0.0
|
@@ -0,0 +1,419 @@
|
|
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":"feed_may_exist","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
|
+
- '79'
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 409
|
23
|
+
message: Conflict
|
24
|
+
headers:
|
25
|
+
Expires:
|
26
|
+
- '0'
|
27
|
+
Cache-Control:
|
28
|
+
- no-cache, no-store, must-revalidate
|
29
|
+
X-Powered-By:
|
30
|
+
- Undertow/1
|
31
|
+
Server:
|
32
|
+
- WildFly/10
|
33
|
+
Pragma:
|
34
|
+
- no-cache
|
35
|
+
Date:
|
36
|
+
- Mon, 22 Feb 2016 20:48:14 GMT
|
37
|
+
Connection:
|
38
|
+
- keep-alive
|
39
|
+
Content-Type:
|
40
|
+
- application/json
|
41
|
+
Content-Length:
|
42
|
+
- '747'
|
43
|
+
body:
|
44
|
+
encoding: ASCII-8BIT
|
45
|
+
string: |-
|
46
|
+
{
|
47
|
+
"errorMsg" : "Feed with id 'Feed[path='/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist']' has been already registered. Entity with id 'feed_may_exist' already exists at some of the positions: [[Types[Tenant], Ids[28026b36-8fe4-4332-84c8-524e173a68bf], Related[, rel='contains', role=SOURCE], Types[Feed], Ids[feed_may_exist]]]",
|
48
|
+
"details" : {
|
49
|
+
"entityId" : "feed_may_exist",
|
50
|
+
"paths" : [ [ {
|
51
|
+
"types" : [ "org.hawkular.inventory.api.model.Tenant" ]
|
52
|
+
}, {
|
53
|
+
"ids" : [ "28026b36-8fe4-4332-84c8-524e173a68bf" ]
|
54
|
+
}, {
|
55
|
+
"relationshipName" : "contains",
|
56
|
+
"entityRole" : "SOURCE"
|
57
|
+
}, {
|
58
|
+
"types" : [ "org.hawkular.inventory.api.model.Feed" ]
|
59
|
+
}, {
|
60
|
+
"ids" : [ "feed_may_exist" ]
|
61
|
+
} ] ]
|
62
|
+
}
|
63
|
+
}
|
64
|
+
http_version:
|
65
|
+
recorded_at: Mon, 22 Feb 2016 20:48:14 GMT
|
66
|
+
- request:
|
67
|
+
method: get
|
68
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist
|
69
|
+
body:
|
70
|
+
encoding: US-ASCII
|
71
|
+
string: ''
|
72
|
+
headers:
|
73
|
+
Accept:
|
74
|
+
- application/json
|
75
|
+
Accept-Encoding:
|
76
|
+
- gzip, deflate
|
77
|
+
Content-Type:
|
78
|
+
- application/json
|
79
|
+
User-Agent:
|
80
|
+
- Ruby
|
81
|
+
response:
|
82
|
+
status:
|
83
|
+
code: 200
|
84
|
+
message: OK
|
85
|
+
headers:
|
86
|
+
Expires:
|
87
|
+
- '0'
|
88
|
+
Cache-Control:
|
89
|
+
- no-cache, no-store, must-revalidate
|
90
|
+
X-Powered-By:
|
91
|
+
- Undertow/1
|
92
|
+
Server:
|
93
|
+
- WildFly/10
|
94
|
+
Pragma:
|
95
|
+
- no-cache
|
96
|
+
Date:
|
97
|
+
- Mon, 22 Feb 2016 20:48:14 GMT
|
98
|
+
Connection:
|
99
|
+
- keep-alive
|
100
|
+
Content-Type:
|
101
|
+
- application/json
|
102
|
+
Content-Length:
|
103
|
+
- '100'
|
104
|
+
body:
|
105
|
+
encoding: ASCII-8BIT
|
106
|
+
string: |-
|
107
|
+
{
|
108
|
+
"path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist",
|
109
|
+
"id" : "feed_may_exist"
|
110
|
+
}
|
111
|
+
http_version:
|
112
|
+
recorded_at: Mon, 22 Feb 2016 20:48:14 GMT
|
113
|
+
- request:
|
114
|
+
method: post
|
115
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resourceTypes
|
116
|
+
body:
|
117
|
+
encoding: UTF-8
|
118
|
+
string: '{"properties":{},"id":"rt-123","name":"ResourceType","outgoing":{},"incoming":{}}'
|
119
|
+
headers:
|
120
|
+
Accept:
|
121
|
+
- application/json
|
122
|
+
Accept-Encoding:
|
123
|
+
- gzip, deflate
|
124
|
+
Content-Type:
|
125
|
+
- application/json
|
126
|
+
Content-Length:
|
127
|
+
- '81'
|
128
|
+
User-Agent:
|
129
|
+
- Ruby
|
130
|
+
response:
|
131
|
+
status:
|
132
|
+
code: 409
|
133
|
+
message: Conflict
|
134
|
+
headers:
|
135
|
+
Expires:
|
136
|
+
- '0'
|
137
|
+
Cache-Control:
|
138
|
+
- no-cache, no-store, must-revalidate
|
139
|
+
X-Powered-By:
|
140
|
+
- Undertow/1
|
141
|
+
Server:
|
142
|
+
- WildFly/10
|
143
|
+
Pragma:
|
144
|
+
- no-cache
|
145
|
+
Date:
|
146
|
+
- Mon, 22 Feb 2016 20:48:14 GMT
|
147
|
+
Connection:
|
148
|
+
- keep-alive
|
149
|
+
Content-Type:
|
150
|
+
- application/json
|
151
|
+
Content-Length:
|
152
|
+
- '107'
|
153
|
+
body:
|
154
|
+
encoding: ASCII-8BIT
|
155
|
+
string: |-
|
156
|
+
{
|
157
|
+
"errorMsg" : "Entity with id 'null' already exists at some of the positions: null",
|
158
|
+
"details" : { }
|
159
|
+
}
|
160
|
+
http_version:
|
161
|
+
recorded_at: Mon, 22 Feb 2016 20:48:14 GMT
|
162
|
+
- request:
|
163
|
+
method: get
|
164
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resourceTypes/rt-123
|
165
|
+
body:
|
166
|
+
encoding: US-ASCII
|
167
|
+
string: ''
|
168
|
+
headers:
|
169
|
+
Accept:
|
170
|
+
- application/json
|
171
|
+
Accept-Encoding:
|
172
|
+
- gzip, deflate
|
173
|
+
Content-Type:
|
174
|
+
- application/json
|
175
|
+
User-Agent:
|
176
|
+
- Ruby
|
177
|
+
response:
|
178
|
+
status:
|
179
|
+
code: 200
|
180
|
+
message: OK
|
181
|
+
headers:
|
182
|
+
Expires:
|
183
|
+
- '0'
|
184
|
+
Cache-Control:
|
185
|
+
- no-cache, no-store, must-revalidate
|
186
|
+
X-Powered-By:
|
187
|
+
- Undertow/1
|
188
|
+
Server:
|
189
|
+
- WildFly/10
|
190
|
+
Pragma:
|
191
|
+
- no-cache
|
192
|
+
Date:
|
193
|
+
- Mon, 22 Feb 2016 20:48:14 GMT
|
194
|
+
Connection:
|
195
|
+
- keep-alive
|
196
|
+
Content-Type:
|
197
|
+
- application/json
|
198
|
+
Content-Length:
|
199
|
+
- '129'
|
200
|
+
body:
|
201
|
+
encoding: ASCII-8BIT
|
202
|
+
string: |-
|
203
|
+
{
|
204
|
+
"path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/rt;rt-123",
|
205
|
+
"name" : "ResourceType",
|
206
|
+
"id" : "rt-123"
|
207
|
+
}
|
208
|
+
http_version:
|
209
|
+
recorded_at: Mon, 22 Feb 2016 20:48:14 GMT
|
210
|
+
- request:
|
211
|
+
method: post
|
212
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resources
|
213
|
+
body:
|
214
|
+
encoding: UTF-8
|
215
|
+
string: '{"properties":{"version":1.0},"id":"r125","name":"My Resource","outgoing":{},"incoming":{},"resourceTypePath":"/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/rt;rt-123"}'
|
216
|
+
headers:
|
217
|
+
Accept:
|
218
|
+
- application/json
|
219
|
+
Accept-Encoding:
|
220
|
+
- gzip, deflate
|
221
|
+
Content-Type:
|
222
|
+
- application/json
|
223
|
+
Content-Length:
|
224
|
+
- '179'
|
225
|
+
User-Agent:
|
226
|
+
- Ruby
|
227
|
+
response:
|
228
|
+
status:
|
229
|
+
code: 201
|
230
|
+
message: Created
|
231
|
+
headers:
|
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
|
+
Location:
|
243
|
+
- http://localhost:8080/hawkular/inventory/feeds/feed_may_exist/resources/r125
|
244
|
+
Date:
|
245
|
+
- Mon, 22 Feb 2016 20:48:15 GMT
|
246
|
+
Connection:
|
247
|
+
- keep-alive
|
248
|
+
Content-Length:
|
249
|
+
- '0'
|
250
|
+
body:
|
251
|
+
encoding: UTF-8
|
252
|
+
string: ''
|
253
|
+
http_version:
|
254
|
+
recorded_at: Mon, 22 Feb 2016 20:48:15 GMT
|
255
|
+
- request:
|
256
|
+
method: get
|
257
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resources/r125
|
258
|
+
body:
|
259
|
+
encoding: US-ASCII
|
260
|
+
string: ''
|
261
|
+
headers:
|
262
|
+
Accept:
|
263
|
+
- application/json
|
264
|
+
Accept-Encoding:
|
265
|
+
- gzip, deflate
|
266
|
+
Content-Type:
|
267
|
+
- application/json
|
268
|
+
User-Agent:
|
269
|
+
- Ruby
|
270
|
+
response:
|
271
|
+
status:
|
272
|
+
code: 200
|
273
|
+
message: OK
|
274
|
+
headers:
|
275
|
+
Expires:
|
276
|
+
- '0'
|
277
|
+
Cache-Control:
|
278
|
+
- no-cache, no-store, must-revalidate
|
279
|
+
X-Powered-By:
|
280
|
+
- Undertow/1
|
281
|
+
Server:
|
282
|
+
- WildFly/10
|
283
|
+
Pragma:
|
284
|
+
- no-cache
|
285
|
+
Date:
|
286
|
+
- Mon, 22 Feb 2016 20:48:15 GMT
|
287
|
+
Connection:
|
288
|
+
- keep-alive
|
289
|
+
Content-Type:
|
290
|
+
- application/json
|
291
|
+
Content-Length:
|
292
|
+
- '317'
|
293
|
+
body:
|
294
|
+
encoding: ASCII-8BIT
|
295
|
+
string: |-
|
296
|
+
{
|
297
|
+
"path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/r;r125",
|
298
|
+
"type" : {
|
299
|
+
"path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/rt;rt-123",
|
300
|
+
"name" : "ResourceType",
|
301
|
+
"id" : "rt-123"
|
302
|
+
},
|
303
|
+
"properties" : {
|
304
|
+
"version" : 1.0
|
305
|
+
},
|
306
|
+
"name" : "My Resource",
|
307
|
+
"id" : "r125"
|
308
|
+
}
|
309
|
+
http_version:
|
310
|
+
recorded_at: Mon, 22 Feb 2016 20:48:15 GMT
|
311
|
+
- request:
|
312
|
+
method: get
|
313
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resources/r125
|
314
|
+
body:
|
315
|
+
encoding: US-ASCII
|
316
|
+
string: ''
|
317
|
+
headers:
|
318
|
+
Accept:
|
319
|
+
- application/json
|
320
|
+
Accept-Encoding:
|
321
|
+
- gzip, deflate
|
322
|
+
Content-Type:
|
323
|
+
- application/json
|
324
|
+
User-Agent:
|
325
|
+
- Ruby
|
326
|
+
response:
|
327
|
+
status:
|
328
|
+
code: 200
|
329
|
+
message: OK
|
330
|
+
headers:
|
331
|
+
Expires:
|
332
|
+
- '0'
|
333
|
+
Cache-Control:
|
334
|
+
- no-cache, no-store, must-revalidate
|
335
|
+
X-Powered-By:
|
336
|
+
- Undertow/1
|
337
|
+
Server:
|
338
|
+
- WildFly/10
|
339
|
+
Pragma:
|
340
|
+
- no-cache
|
341
|
+
Date:
|
342
|
+
- Mon, 22 Feb 2016 20:48:15 GMT
|
343
|
+
Connection:
|
344
|
+
- keep-alive
|
345
|
+
Content-Type:
|
346
|
+
- application/json
|
347
|
+
Content-Length:
|
348
|
+
- '317'
|
349
|
+
body:
|
350
|
+
encoding: ASCII-8BIT
|
351
|
+
string: |-
|
352
|
+
{
|
353
|
+
"path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/r;r125",
|
354
|
+
"type" : {
|
355
|
+
"path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/rt;rt-123",
|
356
|
+
"name" : "ResourceType",
|
357
|
+
"id" : "rt-123"
|
358
|
+
},
|
359
|
+
"properties" : {
|
360
|
+
"version" : 1.0
|
361
|
+
},
|
362
|
+
"name" : "My Resource",
|
363
|
+
"id" : "r125"
|
364
|
+
}
|
365
|
+
http_version:
|
366
|
+
recorded_at: Mon, 22 Feb 2016 20:48:15 GMT
|
367
|
+
- request:
|
368
|
+
method: get
|
369
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resources/r125/data?dataType=configuration
|
370
|
+
body:
|
371
|
+
encoding: US-ASCII
|
372
|
+
string: ''
|
373
|
+
headers:
|
374
|
+
Accept:
|
375
|
+
- application/json
|
376
|
+
Accept-Encoding:
|
377
|
+
- gzip, deflate
|
378
|
+
Content-Type:
|
379
|
+
- application/json
|
380
|
+
User-Agent:
|
381
|
+
- Ruby
|
382
|
+
response:
|
383
|
+
status:
|
384
|
+
code: 404
|
385
|
+
message: Not Found
|
386
|
+
headers:
|
387
|
+
Expires:
|
388
|
+
- '0'
|
389
|
+
Cache-Control:
|
390
|
+
- no-cache, no-store, must-revalidate
|
391
|
+
X-Powered-By:
|
392
|
+
- Undertow/1
|
393
|
+
Server:
|
394
|
+
- WildFly/10
|
395
|
+
Pragma:
|
396
|
+
- no-cache
|
397
|
+
Date:
|
398
|
+
- Mon, 22 Feb 2016 20:48:15 GMT
|
399
|
+
Connection:
|
400
|
+
- keep-alive
|
401
|
+
Content-Type:
|
402
|
+
- application/json
|
403
|
+
Content-Length:
|
404
|
+
- '356'
|
405
|
+
body:
|
406
|
+
encoding: ASCII-8BIT
|
407
|
+
string: |-
|
408
|
+
{
|
409
|
+
"errorMsg" : "No DataEntity found on any of the following paths: [[CanonicalPaths[/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/r;r125/d;configuration]]]",
|
410
|
+
"details" : {
|
411
|
+
"entityType" : "DataEntity",
|
412
|
+
"path" : [ [ {
|
413
|
+
"paths" : [ "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/r;r125/d;configuration" ]
|
414
|
+
} ] ]
|
415
|
+
}
|
416
|
+
}
|
417
|
+
http_version:
|
418
|
+
recorded_at: Mon, 22 Feb 2016 20:48:15 GMT
|
419
|
+
recorded_with: VCR 3.0.0
|