hawkular-client 0.2.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +3 -0
  3. data/.yardopts +1 -0
  4. data/CHANGES.rdoc +17 -4
  5. data/README.rdoc +15 -6
  6. data/api_breaking_changes.rdoc +79 -0
  7. data/hawkularclient.gemspec +6 -5
  8. data/lib/{alerts → hawkular/alerts}/alerts_api.rb +168 -7
  9. data/lib/{hawkular.rb → hawkular/base_client.rb} +7 -44
  10. data/lib/hawkular/hawkular_client.rb +60 -0
  11. data/lib/hawkular/hawkular_client_utils.rb +40 -0
  12. data/lib/{inventory → hawkular/inventory}/inventory_api.rb +167 -142
  13. data/lib/{metrics → hawkular/metrics}/metric_api.rb +1 -0
  14. data/lib/{metrics → hawkular/metrics}/metrics_client.rb +4 -4
  15. data/lib/{metrics → hawkular/metrics}/tenant_api.rb +0 -0
  16. data/lib/{metrics → hawkular/metrics}/types.rb +0 -0
  17. data/lib/{operations → hawkular/operations}/operations_api.rb +11 -8
  18. data/lib/{tokens → hawkular/tokens}/tokens_api.rb +1 -1
  19. data/lib/{version.rb → hawkular/version.rb} +1 -1
  20. data/spec/integration/alerts_spec.rb +200 -0
  21. data/spec/integration/hawkular_client_spec.rb +228 -0
  22. data/spec/integration/inventory_spec.rb +246 -160
  23. data/spec/integration/metric_spec.rb +52 -59
  24. data/spec/integration/operations_spec.rb +53 -29
  25. data/spec/spec_helper.rb +109 -8
  26. data/spec/unit/base_spec.rb +9 -0
  27. data/spec/unit/canonical_path_spec.rb +2 -2
  28. data/spec/vcr/vcr_setup.rb +6 -0
  29. data/spec/vcr_cassettes/Alert/Events/Should_create_an_event.yml +50 -0
  30. data/spec/vcr_cassettes/Alert/Groups/Should_operate_a_complex_group_trigger.yml +1726 -0
  31. data/spec/vcr_cassettes/Counter_metrics/Should_get_metrics_as_bucketed_results.yml +190 -0
  32. data/spec/vcr_cassettes/Counter_metrics/Should_get_metrics_with_limit_and_order.yml +30 -42
  33. data/spec/vcr_cassettes/HawkularClient/and_Inventory_client/Should_both_create_and_delete_feed.yml +287 -0
  34. data/spec/vcr_cassettes/{Inventory/Should_list_URLs.yml → HawkularClient/and_Inventory_client/Should_both_list_WildFlys.yml} +35 -33
  35. data/spec/vcr_cassettes/{Inventory/Should_list_types_with_bad_feed.yml → HawkularClient/and_Inventory_client/Should_both_list_types_with_bad_feed.yml} +16 -19
  36. data/spec/vcr_cassettes/HawkularClient/and_Inventory_client/Should_list_same_types_when_param_is_given.yml +245 -0
  37. data/spec/vcr_cassettes/{Inventory/Should_list_feeds.yml → HawkularClient/and_Inventory_client/Should_list_the_same_feeds.yml} +20 -20
  38. data/spec/vcr_cassettes/HawkularClient/and_Inventory_client/Should_list_the_same_resource_types.yml +249 -0
  39. data/spec/vcr_cassettes/HawkularClient/and_Metrics_client/Should_both_create_and_retrieve_tags_for_Availability.yml +155 -0
  40. data/spec/vcr_cassettes/HawkularClient/and_Metrics_client/Should_both_create_and_return_Availability_using_Hash_parameter.yml +155 -0
  41. data/spec/vcr_cassettes/HawkularClient/and_Metrics_client/Should_both_return_the_version.yml +89 -0
  42. data/spec/vcr_cassettes/HawkularClient/and_Metrics_client/Should_both_work_the_same_way_when_pushing_metric_data_to_non-existing_counter.yml +114 -0
  43. data/spec/vcr_cassettes/{Inventory/Should_list_WildFlys_with_props.yml → HawkularClient/and_Operations_client/Should_both_work_the_same_way.yml} +28 -50
  44. data/spec/vcr_cassettes/HawkularClient/and_Operations_client_Should_both_work_the_same_way.json +44 -0
  45. data/spec/vcr_cassettes/Inventory/Helpers/create_url.yml +48 -0
  46. data/spec/vcr_cassettes/Inventory/Helpers/generate_some_events_for_websocket.yml +4446 -0
  47. data/spec/vcr_cassettes/Inventory/Helpers/get_feeds.yml +54 -0
  48. data/spec/vcr_cassettes/Inventory/Templates/Client_should_listen_on_various_inventory_events.json +47 -0
  49. data/spec/vcr_cassettes/Inventory/{Should_create_a_resourcetype.yml → Templates/Client_should_listen_on_various_inventory_events.yml} +47 -61
  50. data/spec/vcr_cassettes/Inventory/Templates/Helpers/generate_some_events_for_websocket.yml +542 -0
  51. data/spec/vcr_cassettes/Inventory/{Should_List_datasources_with_no_props.yml → Templates/Should_List_datasources_with_no_props.yml} +26 -85
  52. data/spec/vcr_cassettes/Inventory/Templates/Should_create_a_feed.yml +54 -0
  53. data/spec/vcr_cassettes/Inventory/Templates/Should_create_a_feed_again.yml +164 -0
  54. data/spec/vcr_cassettes/Inventory/{Should_create_a_nested_resource_and_metric_on_it.yml → Templates/Should_create_a_nested_resource_and_metric_on_it.yml} +93 -74
  55. data/spec/vcr_cassettes/Inventory/{Should_create_a_resource_.yml → Templates/Should_create_a_resource.yml} +103 -76
  56. data/spec/vcr_cassettes/Inventory/{Should_create_a_resource_with_metric.yml → Templates/Should_create_a_resource_with_metric.yml} +91 -197
  57. data/spec/vcr_cassettes/Inventory/Templates/Should_create_a_resourcetype.yml +154 -0
  58. data/spec/vcr_cassettes/Inventory/Templates/Should_create_and_delete_feed.yml +145 -0
  59. data/spec/vcr_cassettes/Inventory/{Should_create_and_get_a_resource.yml → Templates/Should_create_and_get_a_resource.yml} +35 -20
  60. data/spec/vcr_cassettes/Inventory/Templates/Should_list_URLs.yml +65 -0
  61. data/spec/vcr_cassettes/Inventory/Templates/Should_list_WildFlys.yml +61 -0
  62. data/spec/vcr_cassettes/Inventory/{Should_list_WildFlys.yml → Templates/Should_list_WildFlys_with_props.yml} +36 -33
  63. data/spec/vcr_cassettes/Inventory/Templates/Should_list_all_the_resource_types.yml +126 -0
  64. data/spec/vcr_cassettes/Inventory/{Should_list_children_of_WildFly.yml → Templates/Should_list_children_of_WildFly.yml} +66 -112
  65. data/spec/vcr_cassettes/Inventory/{Should_list_children_of_nested_resource.yml → Templates/Should_list_children_of_nested_resource.yml} +13 -13
  66. data/spec/vcr_cassettes/Inventory/Templates/Should_list_feeds.yml +54 -0
  67. data/spec/vcr_cassettes/Inventory/Templates/Should_list_heap_metrics_for_WildFlys.yml +712 -0
  68. data/spec/vcr_cassettes/Inventory/Templates/Should_list_metrics_for_WildFlys.yml +278 -0
  69. data/spec/vcr_cassettes/Inventory/Templates/Should_list_metrics_of_given_metric_type.yml +530 -0
  70. data/spec/vcr_cassettes/Inventory/Templates/Should_list_metrics_of_given_resource_type.yml +278 -0
  71. data/spec/vcr_cassettes/Inventory/Templates/Should_list_operation_definitions_of_given_resource.yml +185 -0
  72. data/spec/vcr_cassettes/Inventory/Templates/Should_list_operation_definitions_of_given_resource_type.yml +126 -0
  73. data/spec/vcr_cassettes/Inventory/Templates/Should_list_recursive_children_of_WildFly.yml +2369 -0
  74. data/spec/vcr_cassettes/Inventory/Templates/Should_list_relationships_of_WildFly.yml +415 -0
  75. data/spec/vcr_cassettes/Inventory/Templates/Should_list_types_with_bad_feed.yml +51 -0
  76. data/spec/vcr_cassettes/Inventory/Templates/Should_list_types_with_feed.yml +124 -0
  77. data/spec/vcr_cassettes/Inventory/{Should_not_find_an_unknown_resource.yml → Templates/Should_not_find_an_unknown_resource.yml} +14 -13
  78. data/spec/vcr_cassettes/Inventory/{Should_return_config_data_of_given_nested_resource.yml → Templates/Should_return_config_data_of_given_nested_resource.yml} +4 -4
  79. data/spec/vcr_cassettes/Inventory/{Should_return_config_data_of_given_resource.yml → Templates/Should_return_config_data_of_given_resource.yml} +4 -4
  80. data/spec/vcr_cassettes/Inventory/Tenants/Should_Get_Tenant_For_Explicit_Credentials.yml +50 -0
  81. data/spec/vcr_cassettes/Inventory/Tenants/Should_Get_Tenant_For_Implicit_Credentials.yml +50 -0
  82. data/spec/vcr_cassettes/Operation/Helpers/get_feed.yml +54 -0
  83. data/spec/vcr_cassettes/Operation/Helpers/get_tenant.yml +50 -0
  84. data/spec/vcr_cassettes/Operation/Operation/Add_JDBC_driver_should_add_the_driver.json +26 -0
  85. data/spec/vcr_cassettes/Operation/Operation/Add_datasource_should_be_doable.json +26 -0
  86. data/spec/vcr_cassettes/Operation/Operation/Add_deployment_should_be_doable.json +26 -0
  87. data/spec/vcr_cassettes/Operation/Operation/Redeploy_can_be_run_multiple_times_in_parallel.json +40 -0
  88. data/spec/vcr_cassettes/Operation/Operation/Redeploy_should_be_performed_and_eventually_respond_with_success.json +26 -0
  89. data/spec/vcr_cassettes/Operation/Operation/Redeploy_should_not_be_performed_if_resource_path_is_wrong.json +26 -0
  90. data/spec/vcr_cassettes/Operation/Operation/Remove_JDBC_driver_should_be_performed_and_eventually_respond_with_success.json +26 -0
  91. data/spec/vcr_cassettes/Operation/Operation/Remove_datasource_should_be_performed_and_eventually_respond_with_success.json +26 -0
  92. data/spec/vcr_cassettes/Operation/Operation/Remove_deployment_should_be_performed_and_eventually_respond_with_success.json +26 -0
  93. data/spec/vcr_cassettes/Operation/Operation/Undeploy_should_be_performed_and_eventually_respond_with_success.json +26 -0
  94. data/spec/vcr_cassettes/Operation/Operation/should_not_be_possible_to_perform_on_closed_client.json +12 -0
  95. data/spec/vcr_cassettes/Operation/Websocket_connection/should_be_established.json +9 -0
  96. metadata +171 -72
  97. data/lib/hawkular_all.rb +0 -9
  98. data/spec/vcr_cassettes/Inventory/Should_create_a_feed.yml +0 -107
  99. data/spec/vcr_cassettes/Inventory/Should_create_a_feed_again.yml +0 -211
  100. data/spec/vcr_cassettes/Inventory/Should_create_and_delete_feed.yml +0 -201
  101. data/spec/vcr_cassettes/Inventory/Should_list_all_the_resource_types.yml +0 -177
  102. data/spec/vcr_cassettes/Inventory/Should_list_heap_metrics_for_WildFlys.yml +0 -775
  103. data/spec/vcr_cassettes/Inventory/Should_list_metrics_for_WildFlys.yml +0 -333
  104. data/spec/vcr_cassettes/Inventory/Should_list_metrics_of_given_metric_type.yml +0 -613
  105. data/spec/vcr_cassettes/Inventory/Should_list_metrics_of_given_resource_type.yml +0 -333
  106. data/spec/vcr_cassettes/Inventory/Should_list_recursive_children_of_WildFly.yml +0 -2064
  107. data/spec/vcr_cassettes/Inventory/Should_list_relationships_of_WildFly.yml +0 -460
  108. data/spec/vcr_cassettes/Inventory/Should_list_types_with_feed.yml +0 -175
@@ -0,0 +1,155 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"id":"<%= id1 %>","dataRetention":123,"tags":{"some":"value"}}'
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Type:
15
+ - application/json
16
+ Content-Length:
17
+ - '89'
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 201
23
+ message: Created
24
+ headers:
25
+ Connection:
26
+ - keep-alive
27
+ X-Powered-By:
28
+ - Undertow/1
29
+ Server:
30
+ - WildFly/10
31
+ Location:
32
+ - http://localhost:8080/hawkular/metrics/availability/<%= id1 %>
33
+ Content-Length:
34
+ - '0'
35
+ Date:
36
+ - Tue, 22 Mar 2016 21:35:55 GMT
37
+ body:
38
+ encoding: UTF-8
39
+ string: ''
40
+ http_version:
41
+ recorded_at: Tue, 22 Mar 2016 21:35:55 GMT
42
+ - request:
43
+ method: get
44
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id1 %>
45
+ body:
46
+ encoding: US-ASCII
47
+ string: ''
48
+ headers:
49
+ Accept:
50
+ - application/json
51
+ Accept-Encoding:
52
+ - gzip, deflate
53
+ Content-Type:
54
+ - application/json
55
+ User-Agent:
56
+ - Ruby
57
+ response:
58
+ status:
59
+ code: 200
60
+ message: OK
61
+ headers:
62
+ Connection:
63
+ - keep-alive
64
+ X-Powered-By:
65
+ - Undertow/1
66
+ Server:
67
+ - WildFly/10
68
+ Content-Type:
69
+ - application/json
70
+ Content-Length:
71
+ - '161'
72
+ Date:
73
+ - Tue, 22 Mar 2016 21:35:55 GMT
74
+ body:
75
+ encoding: ASCII-8BIT
76
+ string: '{"id":"<%= id1 %>","tags":{"some":"value"},"dataRetention":123,"type":"availability","tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf"}'
77
+ http_version:
78
+ recorded_at: Tue, 22 Mar 2016 21:35:55 GMT
79
+ - request:
80
+ method: post
81
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability
82
+ body:
83
+ encoding: UTF-8
84
+ string: '{"id":"<%= id2 %>","dataRetention":321,"tags":{"some":"value"}}'
85
+ headers:
86
+ Accept:
87
+ - application/json
88
+ Accept-Encoding:
89
+ - gzip, deflate
90
+ Content-Type:
91
+ - application/json
92
+ Content-Length:
93
+ - '89'
94
+ User-Agent:
95
+ - Ruby
96
+ response:
97
+ status:
98
+ code: 201
99
+ message: Created
100
+ headers:
101
+ Connection:
102
+ - keep-alive
103
+ X-Powered-By:
104
+ - Undertow/1
105
+ Server:
106
+ - WildFly/10
107
+ Location:
108
+ - http://localhost:8080/hawkular/metrics/availability/<%= id2 %>
109
+ Content-Length:
110
+ - '0'
111
+ Date:
112
+ - Tue, 22 Mar 2016 21:35:55 GMT
113
+ body:
114
+ encoding: UTF-8
115
+ string: ''
116
+ http_version:
117
+ recorded_at: Tue, 22 Mar 2016 21:35:55 GMT
118
+ - request:
119
+ method: get
120
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id2 %>
121
+ body:
122
+ encoding: US-ASCII
123
+ string: ''
124
+ headers:
125
+ Accept:
126
+ - application/json
127
+ Accept-Encoding:
128
+ - gzip, deflate
129
+ Content-Type:
130
+ - application/json
131
+ User-Agent:
132
+ - Ruby
133
+ response:
134
+ status:
135
+ code: 200
136
+ message: OK
137
+ headers:
138
+ Connection:
139
+ - keep-alive
140
+ X-Powered-By:
141
+ - Undertow/1
142
+ Server:
143
+ - WildFly/10
144
+ Content-Type:
145
+ - application/json
146
+ Content-Length:
147
+ - '161'
148
+ Date:
149
+ - Tue, 22 Mar 2016 21:35:55 GMT
150
+ body:
151
+ encoding: ASCII-8BIT
152
+ string: '{"id":"<%= id2 %>","tags":{"some":"value"},"dataRetention":321,"type":"availability","tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf"}'
153
+ http_version:
154
+ recorded_at: Tue, 22 Mar 2016 21:35:55 GMT
155
+ recorded_with: VCR 3.0.1
@@ -0,0 +1,89 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/status
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
+ Content-Encoding:
24
+ - gzip
25
+ Connection:
26
+ - keep-alive
27
+ X-Powered-By:
28
+ - Undertow/1
29
+ Server:
30
+ - WildFly/10
31
+ Content-Type:
32
+ - application/json
33
+ Content-Length:
34
+ - '142'
35
+ Date:
36
+ - Tue, 29 Mar 2016 15:25:01 GMT
37
+ body:
38
+ encoding: ASCII-8BIT
39
+ string: !binary |-
40
+ H4sIAAAAAAAAAA3Kuw7CIBQA0H+5sxCopS1uNVp1cJHGncdtQgLUUHQx/rtM
41
+ ZzlfuGPJ3m4K88dbhAOoeXzM5xPs4BZfASOmootfE3li3qq1MMr3lNHJJx3q
42
+ O759KGTKayQXX4i6jrymfjANN91gOt20mvWLk44L44Q0Wljk0rWS8cHC7w/2
43
+ 87rIhQAAAA==
44
+ http_version:
45
+ recorded_at: Tue, 29 Mar 2016 15:25:01 GMT
46
+ - request:
47
+ method: get
48
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/status
49
+ body:
50
+ encoding: US-ASCII
51
+ string: ''
52
+ headers:
53
+ Accept:
54
+ - application/json
55
+ Accept-Encoding:
56
+ - gzip, deflate
57
+ Content-Type:
58
+ - application/json
59
+ User-Agent:
60
+ - Ruby
61
+ response:
62
+ status:
63
+ code: 200
64
+ message: OK
65
+ headers:
66
+ Content-Encoding:
67
+ - gzip
68
+ Connection:
69
+ - keep-alive
70
+ X-Powered-By:
71
+ - Undertow/1
72
+ Server:
73
+ - WildFly/10
74
+ Content-Type:
75
+ - application/json
76
+ Content-Length:
77
+ - '142'
78
+ Date:
79
+ - Tue, 29 Mar 2016 15:25:02 GMT
80
+ body:
81
+ encoding: ASCII-8BIT
82
+ string: !binary |-
83
+ H4sIAAAAAAAAAA3Kuw7CIBQA0H+5sxCopS1uNVp1cJHGncdtQgLUUHQx/rtM
84
+ ZzlfuGPJ3m4K88dbhAOoeXzM5xPs4BZfASOmootfE3li3qq1MMr3lNHJJx3q
85
+ O759KGTKayQXX4i6jrymfjANN91gOt20mvWLk44L44Q0Wljk0rWS8cHC7w/2
86
+ 87rIhQAAAA==
87
+ http_version:
88
+ recorded_at: Tue, 29 Mar 2016 15:25:02 GMT
89
+ recorded_with: VCR 3.0.1
@@ -0,0 +1,114 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data
6
+ body:
7
+ encoding: UTF-8
8
+ string: '[{"value":4,"timestamp":1458682555177}]'
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Type:
15
+ - application/json
16
+ Content-Length:
17
+ - '39'
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Connection:
26
+ - keep-alive
27
+ X-Powered-By:
28
+ - Undertow/1
29
+ Server:
30
+ - WildFly/10
31
+ Content-Length:
32
+ - '0'
33
+ Date:
34
+ - Tue, 22 Mar 2016 21:35:55 GMT
35
+ body:
36
+ encoding: UTF-8
37
+ string: ''
38
+ http_version:
39
+ recorded_at: Tue, 22 Mar 2016 21:35:55 GMT
40
+ - request:
41
+ method: get
42
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/
43
+ body:
44
+ encoding: US-ASCII
45
+ string: ''
46
+ headers:
47
+ Accept:
48
+ - application/json
49
+ Accept-Encoding:
50
+ - gzip, deflate
51
+ Content-Type:
52
+ - application/json
53
+ User-Agent:
54
+ - Ruby
55
+ response:
56
+ status:
57
+ code: 200
58
+ message: OK
59
+ headers:
60
+ Connection:
61
+ - keep-alive
62
+ X-Powered-By:
63
+ - Undertow/1
64
+ Server:
65
+ - WildFly/10
66
+ Content-Type:
67
+ - application/json
68
+ Content-Length:
69
+ - '39'
70
+ Date:
71
+ - Tue, 22 Mar 2016 21:35:55 GMT
72
+ body:
73
+ encoding: ASCII-8BIT
74
+ string: '[{"timestamp":1458682555177,"value":4}]'
75
+ http_version:
76
+ recorded_at: Tue, 22 Mar 2016 21:35:55 GMT
77
+ - request:
78
+ method: get
79
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>
80
+ body:
81
+ encoding: US-ASCII
82
+ string: ''
83
+ headers:
84
+ Accept:
85
+ - application/json
86
+ Accept-Encoding:
87
+ - gzip, deflate
88
+ Content-Type:
89
+ - application/json
90
+ User-Agent:
91
+ - Ruby
92
+ response:
93
+ status:
94
+ code: 200
95
+ message: OK
96
+ headers:
97
+ Connection:
98
+ - keep-alive
99
+ X-Powered-By:
100
+ - Undertow/1
101
+ Server:
102
+ - WildFly/10
103
+ Content-Type:
104
+ - application/json
105
+ Content-Length:
106
+ - '130'
107
+ Date:
108
+ - Tue, 22 Mar 2016 21:35:55 GMT
109
+ body:
110
+ encoding: ASCII-8BIT
111
+ string: '{"id":"<%= id %>","dataRetention":7,"type":"counter","tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf"}'
112
+ http_version:
113
+ recorded_at: Tue, 22 Mar 2016 21:35:55 GMT
114
+ recorded_with: VCR 3.0.1
@@ -11,10 +11,10 @@ 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
16
14
  Content-Type:
17
15
  - application/json
16
+ User-Agent:
17
+ - Ruby
18
18
  response:
19
19
  status:
20
20
  code: 200
@@ -31,7 +31,7 @@ http_interactions:
31
31
  Pragma:
32
32
  - no-cache
33
33
  Date:
34
- - Thu, 18 Feb 2016 22:30:15 GMT
34
+ - Tue, 29 Mar 2016 15:32:12 GMT
35
35
  Connection:
36
36
  - keep-alive
37
37
  Content-Type:
@@ -46,10 +46,10 @@ http_interactions:
46
46
  "id" : "28026b36-8fe4-4332-84c8-524e173a68bf"
47
47
  }
48
48
  http_version:
49
- recorded_at: Thu, 18 Feb 2016 22:30:15 GMT
49
+ recorded_at: Tue, 29 Mar 2016 15:32:12 GMT
50
50
  - request:
51
51
  method: get
52
- uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/resourceTypes/WildFly%20Server/resources
52
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/tenant
53
53
  body:
54
54
  encoding: US-ASCII
55
55
  string: ''
@@ -58,14 +58,10 @@ 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
63
- Hawkular-Tenant:
64
- - 28026b36-8fe4-4332-84c8-524e173a68bf
65
- Tenantid:
66
- - 28026b36-8fe4-4332-84c8-524e173a68bf
67
61
  Content-Type:
68
62
  - application/json
63
+ User-Agent:
64
+ - Ruby
69
65
  response:
70
66
  status:
71
67
  code: 200
@@ -82,36 +78,25 @@ http_interactions:
82
78
  Pragma:
83
79
  - no-cache
84
80
  Date:
85
- - Thu, 18 Feb 2016 22:30:15 GMT
86
- X-Total-Count:
87
- - '1'
81
+ - Tue, 29 Mar 2016 15:32:12 GMT
88
82
  Connection:
89
83
  - keep-alive
90
84
  Content-Type:
91
85
  - application/json
92
86
  Content-Length:
93
- - '351'
94
- Link:
95
- - <http://localhost:8080/hawkular/inventory/feeds/f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/resourceTypes/WildFly%20Server/resources>;
96
- rel="current"
87
+ - '105'
97
88
  body:
98
89
  encoding: ASCII-8BIT
99
90
  string: |-
100
- [ {
101
- "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/r;Local~~",
102
- "type" : {
103
- "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/rt;WildFly%20Server",
104
- "name" : "WildFly Server",
105
- "id" : "WildFly Server"
106
- },
107
- "name" : "localhost/Local",
108
- "id" : "Local~~"
109
- } ]
91
+ {
92
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf",
93
+ "id" : "28026b36-8fe4-4332-84c8-524e173a68bf"
94
+ }
110
95
  http_version:
111
- recorded_at: Thu, 18 Feb 2016 22:30:15 GMT
96
+ recorded_at: Tue, 29 Mar 2016 15:32:12 GMT
112
97
  - request:
113
98
  method: get
114
- uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/resources/Local~~/data?dataType=configuration
99
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds
115
100
  body:
116
101
  encoding: US-ASCII
117
102
  string: ''
@@ -120,14 +105,10 @@ http_interactions:
120
105
  - application/json
121
106
  Accept-Encoding:
122
107
  - gzip, deflate
123
- User-Agent:
124
- - rest-client/2.0.0.rc1 (linux-gnu x86_64) ruby/2.2.4p230
125
- Hawkular-Tenant:
126
- - 28026b36-8fe4-4332-84c8-524e173a68bf
127
- Tenantid:
128
- - 28026b36-8fe4-4332-84c8-524e173a68bf
129
108
  Content-Type:
130
109
  - application/json
110
+ User-Agent:
111
+ - Ruby
131
112
  response:
132
113
  status:
133
114
  code: 200
@@ -144,27 +125,24 @@ http_interactions:
144
125
  Pragma:
145
126
  - no-cache
146
127
  Date:
147
- - Thu, 18 Feb 2016 22:30:15 GMT
128
+ - Tue, 29 Mar 2016 15:32:12 GMT
129
+ X-Total-Count:
130
+ - '1'
148
131
  Connection:
149
132
  - keep-alive
150
133
  Content-Type:
151
134
  - application/json
152
135
  Content-Length:
153
- - '351'
136
+ - '148'
137
+ Link:
138
+ - <http://localhost:8080/hawkular/inventory/feeds>; rel="current"
154
139
  body:
155
140
  encoding: ASCII-8BIT
156
141
  string: |-
157
- {
158
- "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/r;Local~~/d;configuration",
159
- "value" : {
160
- "Bound Address" : "127.0.0.1",
161
- "Version" : "1.0.0.Alpha10-SNAPSHOT",
162
- "Server State" : "running",
163
- "Product Name" : "Hawkular",
164
- "Hostname" : "localhost.localdomain"
165
- },
166
- "name" : "configuration"
167
- }
142
+ [ {
143
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061",
144
+ "id" : "a43ec2b3-94bf-4120-a91b-3a2f63914061"
145
+ } ]
168
146
  http_version:
169
- recorded_at: Thu, 18 Feb 2016 22:30:15 GMT
147
+ recorded_at: Tue, 29 Mar 2016 15:32:12 GMT
170
148
  recorded_with: VCR 3.0.1