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,154 @@
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: 201
23
+ message: Created
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
+ Location:
36
+ - http://localhost:8080/hawkular/inventory/feeds/feed_may_exist
37
+ Date:
38
+ - Thu, 05 May 2016 11:18:45 GMT
39
+ Connection:
40
+ - keep-alive
41
+ Content-Type:
42
+ - application/json
43
+ Content-Length:
44
+ - '100'
45
+ body:
46
+ encoding: ASCII-8BIT
47
+ string: |-
48
+ {
49
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist",
50
+ "id" : "feed_may_exist"
51
+ }
52
+ http_version:
53
+ recorded_at: Thu, 05 May 2016 11:18:45 GMT
54
+ - request:
55
+ method: post
56
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resourceTypes
57
+ body:
58
+ encoding: UTF-8
59
+ string: '{"properties":{},"id":"rt-123","name":"ResourceType","outgoing":{},"incoming":{}}'
60
+ headers:
61
+ Accept:
62
+ - application/json
63
+ Accept-Encoding:
64
+ - gzip, deflate
65
+ Content-Type:
66
+ - application/json
67
+ Content-Length:
68
+ - '81'
69
+ User-Agent:
70
+ - Ruby
71
+ response:
72
+ status:
73
+ code: 201
74
+ message: Created
75
+ headers:
76
+ Expires:
77
+ - '0'
78
+ Cache-Control:
79
+ - no-cache, no-store, must-revalidate
80
+ X-Powered-By:
81
+ - Undertow/1
82
+ Server:
83
+ - WildFly/10
84
+ Pragma:
85
+ - no-cache
86
+ Location:
87
+ - http://localhost:8080/hawkular/inventory/feeds/feed_may_exist/resourceTypes/rt-123
88
+ Date:
89
+ - Thu, 05 May 2016 11:18:45 GMT
90
+ Connection:
91
+ - keep-alive
92
+ Content-Type:
93
+ - application/json
94
+ Content-Length:
95
+ - '129'
96
+ body:
97
+ encoding: ASCII-8BIT
98
+ string: |-
99
+ {
100
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/rt;rt-123",
101
+ "name" : "ResourceType",
102
+ "id" : "rt-123"
103
+ }
104
+ http_version:
105
+ recorded_at: Thu, 05 May 2016 11:18:45 GMT
106
+ - request:
107
+ method: get
108
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resourceTypes/rt-123
109
+ body:
110
+ encoding: US-ASCII
111
+ string: ''
112
+ headers:
113
+ Accept:
114
+ - application/json
115
+ Accept-Encoding:
116
+ - gzip, deflate
117
+ Content-Type:
118
+ - application/json
119
+ User-Agent:
120
+ - Ruby
121
+ response:
122
+ status:
123
+ code: 200
124
+ message: OK
125
+ headers:
126
+ Expires:
127
+ - '0'
128
+ Cache-Control:
129
+ - no-cache, no-store, must-revalidate
130
+ X-Powered-By:
131
+ - Undertow/1
132
+ Server:
133
+ - WildFly/10
134
+ Pragma:
135
+ - no-cache
136
+ Date:
137
+ - Thu, 05 May 2016 11:18:45 GMT
138
+ Connection:
139
+ - keep-alive
140
+ Content-Type:
141
+ - application/json
142
+ Content-Length:
143
+ - '129'
144
+ body:
145
+ encoding: ASCII-8BIT
146
+ string: |-
147
+ {
148
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/rt;rt-123",
149
+ "name" : "ResourceType",
150
+ "id" : "rt-123"
151
+ }
152
+ http_version:
153
+ recorded_at: Thu, 05 May 2016 11:18:45 GMT
154
+ recorded_with: VCR 3.0.1
@@ -0,0 +1,145 @@
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: 201
23
+ message: Created
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
+ Location:
36
+ - http://localhost:8080/hawkular/inventory/feeds/feed_1123sdn
37
+ Date:
38
+ - Thu, 05 May 2016 11:18:45 GMT
39
+ Connection:
40
+ - keep-alive
41
+ Content-Type:
42
+ - application/json
43
+ Content-Length:
44
+ - '96'
45
+ body:
46
+ encoding: ASCII-8BIT
47
+ string: |-
48
+ {
49
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_1123sdn",
50
+ "id" : "feed_1123sdn"
51
+ }
52
+ http_version:
53
+ recorded_at: Thu, 05 May 2016 11:18:45 GMT
54
+ - request:
55
+ method: delete
56
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_1123sdn
57
+ body:
58
+ encoding: US-ASCII
59
+ string: ''
60
+ headers:
61
+ Accept:
62
+ - application/json
63
+ Accept-Encoding:
64
+ - gzip, deflate
65
+ Content-Type:
66
+ - application/json
67
+ User-Agent:
68
+ - Ruby
69
+ response:
70
+ status:
71
+ code: 204
72
+ message: No Content
73
+ headers:
74
+ Expires:
75
+ - '0'
76
+ Cache-Control:
77
+ - no-cache, no-store, must-revalidate
78
+ X-Powered-By:
79
+ - Undertow/1
80
+ Server:
81
+ - WildFly/10
82
+ Pragma:
83
+ - no-cache
84
+ Date:
85
+ - Thu, 05 May 2016 11:18:45 GMT
86
+ body:
87
+ encoding: UTF-8
88
+ string: ''
89
+ http_version:
90
+ recorded_at: Thu, 05 May 2016 11:18:45 GMT
91
+ - request:
92
+ method: get
93
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds
94
+ body:
95
+ encoding: US-ASCII
96
+ string: ''
97
+ headers:
98
+ Accept:
99
+ - application/json
100
+ Accept-Encoding:
101
+ - gzip, deflate
102
+ Content-Type:
103
+ - application/json
104
+ User-Agent:
105
+ - Ruby
106
+ response:
107
+ status:
108
+ code: 200
109
+ message: OK
110
+ headers:
111
+ Expires:
112
+ - '0'
113
+ Cache-Control:
114
+ - no-cache, no-store, must-revalidate
115
+ X-Powered-By:
116
+ - Undertow/1
117
+ Server:
118
+ - WildFly/10
119
+ Pragma:
120
+ - no-cache
121
+ Date:
122
+ - Thu, 05 May 2016 11:18:45 GMT
123
+ X-Total-Count:
124
+ - '2'
125
+ Connection:
126
+ - keep-alive
127
+ Content-Type:
128
+ - application/json
129
+ Content-Length:
130
+ - '294'
131
+ Link:
132
+ - <http://localhost:8080/hawkular/inventory/feeds>; rel="current"
133
+ body:
134
+ encoding: ASCII-8BIT
135
+ string: |-
136
+ [ {
137
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;<%= feed_uuid %>",
138
+ "id" : "<%= feed_uuid %>"
139
+ }, {
140
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_1123sdncisud6237ui23hjbdscuzsad",
141
+ "id" : "feed_1123sdncisud6237ui23hjbdscuzsad"
142
+ } ]
143
+ http_version:
144
+ recorded_at: Thu, 05 May 2016 11:18:45 GMT
145
+ recorded_with: VCR 3.0.1
@@ -33,7 +33,7 @@ http_interactions:
33
33
  Pragma:
34
34
  - no-cache
35
35
  Date:
36
- - Mon, 22 Feb 2016 20:48:14 GMT
36
+ - Thu, 05 May 2016 11:18:48 GMT
37
37
  Connection:
38
38
  - keep-alive
39
39
  Content-Type:
@@ -62,7 +62,7 @@ http_interactions:
62
62
  }
63
63
  }
64
64
  http_version:
65
- recorded_at: Mon, 22 Feb 2016 20:48:14 GMT
65
+ recorded_at: Thu, 05 May 2016 11:18:48 GMT
66
66
  - request:
67
67
  method: get
68
68
  uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist
@@ -94,7 +94,7 @@ http_interactions:
94
94
  Pragma:
95
95
  - no-cache
96
96
  Date:
97
- - Mon, 22 Feb 2016 20:48:14 GMT
97
+ - Thu, 05 May 2016 11:18:48 GMT
98
98
  Connection:
99
99
  - keep-alive
100
100
  Content-Type:
@@ -109,7 +109,7 @@ http_interactions:
109
109
  "id" : "feed_may_exist"
110
110
  }
111
111
  http_version:
112
- recorded_at: Mon, 22 Feb 2016 20:48:14 GMT
112
+ recorded_at: Thu, 05 May 2016 11:18:48 GMT
113
113
  - request:
114
114
  method: post
115
115
  uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resourceTypes
@@ -143,7 +143,7 @@ http_interactions:
143
143
  Pragma:
144
144
  - no-cache
145
145
  Date:
146
- - Mon, 22 Feb 2016 20:48:14 GMT
146
+ - Thu, 05 May 2016 11:18:48 GMT
147
147
  Connection:
148
148
  - keep-alive
149
149
  Content-Type:
@@ -158,7 +158,7 @@ http_interactions:
158
158
  "details" : { }
159
159
  }
160
160
  http_version:
161
- recorded_at: Mon, 22 Feb 2016 20:48:14 GMT
161
+ recorded_at: Thu, 05 May 2016 11:18:48 GMT
162
162
  - request:
163
163
  method: get
164
164
  uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resourceTypes/rt-123
@@ -190,7 +190,7 @@ http_interactions:
190
190
  Pragma:
191
191
  - no-cache
192
192
  Date:
193
- - Mon, 22 Feb 2016 20:48:14 GMT
193
+ - Thu, 05 May 2016 11:18:48 GMT
194
194
  Connection:
195
195
  - keep-alive
196
196
  Content-Type:
@@ -206,7 +206,7 @@ http_interactions:
206
206
  "id" : "rt-123"
207
207
  }
208
208
  http_version:
209
- recorded_at: Mon, 22 Feb 2016 20:48:14 GMT
209
+ recorded_at: Thu, 05 May 2016 11:18:48 GMT
210
210
  - request:
211
211
  method: post
212
212
  uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resources
@@ -242,16 +242,31 @@ http_interactions:
242
242
  Location:
243
243
  - http://localhost:8080/hawkular/inventory/feeds/feed_may_exist/resources/r125
244
244
  Date:
245
- - Mon, 22 Feb 2016 20:48:15 GMT
245
+ - Thu, 05 May 2016 11:18:48 GMT
246
246
  Connection:
247
247
  - keep-alive
248
+ Content-Type:
249
+ - application/json
248
250
  Content-Length:
249
- - '0'
251
+ - '317'
250
252
  body:
251
- encoding: UTF-8
252
- string: ''
253
+ encoding: ASCII-8BIT
254
+ string: |-
255
+ {
256
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/r;r125",
257
+ "type" : {
258
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/rt;rt-123",
259
+ "name" : "ResourceType",
260
+ "id" : "rt-123"
261
+ },
262
+ "properties" : {
263
+ "version" : 1.0
264
+ },
265
+ "name" : "My Resource",
266
+ "id" : "r125"
267
+ }
253
268
  http_version:
254
- recorded_at: Mon, 22 Feb 2016 20:48:15 GMT
269
+ recorded_at: Thu, 05 May 2016 11:18:48 GMT
255
270
  - request:
256
271
  method: get
257
272
  uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resources/r125
@@ -283,7 +298,7 @@ http_interactions:
283
298
  Pragma:
284
299
  - no-cache
285
300
  Date:
286
- - Mon, 22 Feb 2016 20:48:15 GMT
301
+ - Thu, 05 May 2016 11:18:48 GMT
287
302
  Connection:
288
303
  - keep-alive
289
304
  Content-Type:
@@ -307,7 +322,7 @@ http_interactions:
307
322
  "id" : "r125"
308
323
  }
309
324
  http_version:
310
- recorded_at: Mon, 22 Feb 2016 20:48:15 GMT
325
+ recorded_at: Thu, 05 May 2016 11:18:48 GMT
311
326
  - request:
312
327
  method: get
313
328
  uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resources/r125
@@ -339,7 +354,7 @@ http_interactions:
339
354
  Pragma:
340
355
  - no-cache
341
356
  Date:
342
- - Mon, 22 Feb 2016 20:48:15 GMT
357
+ - Thu, 05 May 2016 11:18:48 GMT
343
358
  Connection:
344
359
  - keep-alive
345
360
  Content-Type:
@@ -363,7 +378,7 @@ http_interactions:
363
378
  "id" : "r125"
364
379
  }
365
380
  http_version:
366
- recorded_at: Mon, 22 Feb 2016 20:48:15 GMT
381
+ recorded_at: Thu, 05 May 2016 11:18:48 GMT
367
382
  - request:
368
383
  method: get
369
384
  uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resources/r125/data?dataType=configuration
@@ -395,7 +410,7 @@ http_interactions:
395
410
  Pragma:
396
411
  - no-cache
397
412
  Date:
398
- - Mon, 22 Feb 2016 20:48:15 GMT
413
+ - Thu, 05 May 2016 11:18:48 GMT
399
414
  Connection:
400
415
  - keep-alive
401
416
  Content-Type:
@@ -415,5 +430,5 @@ http_interactions:
415
430
  }
416
431
  }
417
432
  http_version:
418
- recorded_at: Mon, 22 Feb 2016 20:48:15 GMT
419
- recorded_with: VCR 3.0.0
433
+ recorded_at: Thu, 05 May 2016 11:18:48 GMT
434
+ recorded_with: VCR 3.0.1