hawkular-client 2.2.1 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.rdoc +12 -0
  3. data/README.rdoc +5 -3
  4. data/Rakefile +8 -0
  5. data/hawkularclient.gemspec +1 -1
  6. data/lib/hawkular/base_client.rb +19 -1
  7. data/lib/hawkular/hawkular_client.rb +1 -1
  8. data/lib/hawkular/hawkular_client_utils.rb +1 -0
  9. data/lib/hawkular/inventory/entities.rb +234 -0
  10. data/lib/hawkular/inventory/inventory_api.rb +92 -311
  11. data/lib/hawkular/metrics/metric_api.rb +23 -10
  12. data/lib/hawkular/metrics/metrics_client.rb +14 -0
  13. data/lib/hawkular/operations/operations_api.rb +8 -2
  14. data/lib/hawkular/version.rb +1 -1
  15. data/spec/README.rdoc +62 -0
  16. data/spec/integration/alerts_spec.rb +18 -14
  17. data/spec/integration/hawkular_client_spec.rb +53 -14
  18. data/spec/integration/inventory_spec.rb +91 -44
  19. data/spec/integration/metric_spec.rb +574 -420
  20. data/spec/integration/operations_spec.rb +78 -5
  21. data/spec/integration/tokens_spec.rb +8 -4
  22. data/spec/spec_helper.rb +73 -13
  23. data/spec/unit/base_spec.rb +30 -1
  24. data/spec/unit/client_spec.rb +21 -9
  25. data/spec/vcr_cassettes/HawkularClient/Should_err_on_bad_credentials.yml +42 -0
  26. data/spec/vcr_cassettes/HawkularClient/and_Inventory_client/Should_both_create_and_delete_feed.yml +64 -34
  27. data/spec/vcr_cassettes/HawkularClient/and_Inventory_client/Should_both_list_WildFlys.yml +27 -43
  28. data/spec/vcr_cassettes/HawkularClient/and_Inventory_client/Should_both_list_types_with_bad_feed.yml +12 -8
  29. data/spec/vcr_cassettes/HawkularClient/and_Inventory_client/Should_list_same_types_when_param_is_given.yml +144 -64
  30. data/spec/vcr_cassettes/HawkularClient/and_Inventory_client/Should_list_the_same_feeds.yml +26 -14
  31. data/spec/vcr_cassettes/HawkularClient/and_Inventory_client/Should_list_the_same_resource_types.yml +20 -158
  32. data/spec/vcr_cassettes/HawkularClient/and_Operations_client/Should_both_work_the_same_way.yml +40 -30
  33. data/spec/vcr_cassettes/{Tenants/Should_Get_Tenant_For_Explicit_Credentials.yml → HawkularClient/and_Operations_client/Should_work_initializing_with_URI.yml} +18 -20
  34. data/spec/vcr_cassettes/HawkularClient/and_Operations_client_Should_both_work_the_same_way.json +8 -8
  35. data/spec/vcr_cassettes/HawkularClient/and_Operations_client_Should_work_initializing_with_URI.json +9 -0
  36. data/spec/vcr_cassettes/HawkularClient/and_URIs_as_input/Should_work_with_URI.yml +77 -20
  37. data/spec/vcr_cassettes/HawkularClient/and_URIs_as_input/Should_work_with_URI_on_metrics_client.yml +3 -3
  38. data/spec/vcr_cassettes/Inventory/Connection/Should_err_on_bad_credentials.yml +42 -0
  39. data/spec/vcr_cassettes/Inventory/Tenants/Should_Get_Tenant_For_Explicit_Credentials.yml +59 -12
  40. data/spec/vcr_cassettes/Inventory/Tenants/Should_Get_Tenant_For_Implicit_Credentials.yml +59 -12
  41. data/spec/vcr_cassettes/Inventory/{Helpers → inventory_0_17/Helpers}/create_url.yml +9 -7
  42. data/spec/vcr_cassettes/Inventory/{Templates/Should_list_feeds_when_using_SSL_without_certificate.yml → inventory_0_17/Helpers/get_feeds.yml} +23 -21
  43. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Client_should_listen_on_various_inventory_events.json +47 -0
  44. data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Client_should_listen_on_various_inventory_events.yml +48 -40
  45. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Helpers/generate_some_events_for_websocket.yml +397 -0
  46. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_List_datasources_with_no_props.yml +129 -0
  47. data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_create_a_feed.yml +13 -10
  48. data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_create_a_feed_again.yml +40 -29
  49. data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_create_a_nested_resource_and_metric_on_it.yml +193 -237
  50. data/spec/vcr_cassettes/Inventory/{Templates/Should_create_and_get_a_resource.yml → inventory_0_17/Templates/Should_create_a_resource.yml} +86 -172
  51. data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_create_a_resource_with_metric.yml +296 -158
  52. data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_create_a_resourcetype.yml +38 -29
  53. data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_create_and_delete_feed.yml +42 -27
  54. data/spec/vcr_cassettes/Inventory/{Templates/Should_create_a_resource.yml → inventory_0_17/Templates/Should_create_and_get_a_resource.yml} +109 -89
  55. data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_list_URLs.yml +20 -17
  56. data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_list_WildFlys.yml +19 -12
  57. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_WildFlys_with_props.yml +131 -0
  58. data/spec/vcr_cassettes/Inventory/{Helpers/get_feeds.yml → inventory_0_17/Templates/Should_list_all_the_resource_types.yml} +14 -11
  59. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_children_of_WildFly.yml +315 -0
  60. data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_list_children_of_nested_resource.yml +45 -30
  61. data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_list_feeds.yml +16 -10
  62. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_feeds_when_using_SSL_without_certificate.yml +60 -0
  63. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_heap_metrics_for_WildFlys.yml +935 -0
  64. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_metrics_for_WildFlys.yml +357 -0
  65. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_metrics_of_given_metric_type.yml +122 -0
  66. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_metrics_of_given_resource_type.yml +292 -0
  67. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_operation_definitions_of_given_resource.yml +235 -0
  68. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_operation_definitions_of_given_resource_type.yml +121 -0
  69. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_recursive_children_of_WildFly.yml +1099 -0
  70. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_relationships_of_WildFly.yml +377 -0
  71. data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_list_resources_for_feed.yml +19 -9
  72. data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_list_types_with_bad_feed.yml +10 -8
  73. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_types_with_feed.yml +164 -0
  74. data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_not_find_an_unknown_resource.yml +12 -10
  75. data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_return_config_data_of_given_nested_resource.yml +17 -11
  76. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_return_config_data_of_given_resource.yml +66 -0
  77. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_return_the_version.yml +48 -0
  78. data/spec/vcr_cassettes/Metric_ID_with_special_characters/Get_metric_definition_by_id.yml +49 -0
  79. data/spec/vcr_cassettes/Metric_ID_with_special_characters/Retrieve_metric_rate_points.yml +88 -0
  80. data/spec/vcr_cassettes/Metric_ID_with_special_characters/Should_create_Availability_definition.yml +97 -0
  81. data/spec/vcr_cassettes/Metric_ID_with_special_characters/Should_create_Counter_definition.yml +97 -0
  82. data/spec/vcr_cassettes/Metric_ID_with_special_characters/Should_create_gauge_definition.yml +97 -0
  83. data/spec/vcr_cassettes/Metric_ID_with_special_characters/Should_push_metric_data_to_existing_gauge.yml +48 -0
  84. data/spec/vcr_cassettes/Metric_ID_with_special_characters/Should_update_tags_for_Availability_definition.yml +140 -0
  85. data/spec/vcr_cassettes/Metric_ID_with_special_characters/Should_update_tags_for_gauge_definition.yml +140 -0
  86. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Availability_metrics/Should_create_Availability_definition_using_MetricDefinition_parameter.yml +95 -0
  87. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Availability_metrics/Should_create_and_return_Availability_using_Hash_parameter.yml +95 -0
  88. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Availability_metrics/Should_group_contiguous_values.yml +93 -0
  89. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Availability_metrics/Should_push_metric_data_to_non-existing_Availability.yml +138 -0
  90. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Availability_metrics/Should_update_tags_for_Availability_definition.yml +230 -0
  91. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Counter_metrics/Should_create_and_return_counter_using_Hash_parameter.yml +95 -0
  92. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Counter_metrics/Should_create_counter_definition_using_MetricDefinition_parameter.yml +95 -0
  93. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml +230 -0
  94. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_with_limit_and_order.yml +314 -0
  95. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_existing_counter.yml +269 -0
  96. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_non-existing_counter.yml +138 -0
  97. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_Hash.yml +95 -0
  98. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_MetricDefinition.yml +95 -0
  99. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_existing_gauge.yml +269 -0
  100. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_non-existing_gauge.yml +138 -0
  101. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Gauge_metrics/Should_return_periods.yml +93 -0
  102. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Gauge_metrics/Should_update_tags_for_gauge_definition.yml +230 -0
  103. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml +330 -0
  104. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml +300 -0
  105. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request_of_a_single_type.yml +273 -0
  106. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/No_Tenant/Should_fail.yml +48 -0
  107. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Simple/Should_be_Cool.yml +48 -0
  108. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Status/Should_return_the_version.yml +42 -0
  109. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Tenants/Should_create_and_return_tenant.yml +95 -0
  110. data/spec/vcr_cassettes/{Availability_metrics → Metrics/metrics_0_8_0/Templates/Availability_metrics}/Should_create_Availability_definition_using_MetricDefinition_parameter.yml +5 -9
  111. data/spec/vcr_cassettes/{Availability_metrics → Metrics/metrics_0_8_0/Templates/Availability_metrics}/Should_create_and_return_Availability_using_Hash_parameter.yml +5 -9
  112. data/spec/vcr_cassettes/{Availability_metrics → Metrics/metrics_0_8_0/Templates/Availability_metrics}/Should_push_metric_data_to_non-existing_Availability.yml +9 -15
  113. data/spec/vcr_cassettes/{Availability_metrics → Metrics/metrics_0_8_0/Templates/Availability_metrics}/Should_update_tags_for_Availability_definition.yml +11 -21
  114. data/spec/vcr_cassettes/{Counter_metrics → Metrics/metrics_0_8_0/Templates/Counter_metrics}/Should_create_and_return_counter_using_Hash_parameter.yml +5 -9
  115. data/spec/vcr_cassettes/{Counter_metrics → Metrics/metrics_0_8_0/Templates/Counter_metrics}/Should_create_counter_definition_using_MetricDefinition_parameter.yml +5 -9
  116. data/spec/vcr_cassettes/Metrics/metrics_0_8_0/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml +200 -0
  117. data/spec/vcr_cassettes/{Counter_metrics → Metrics/metrics_0_8_0/Templates/Counter_metrics}/Should_push_metric_data_to_existing_counter.yml +16 -28
  118. data/spec/vcr_cassettes/{Counter_metrics → Metrics/metrics_0_8_0/Templates/Counter_metrics}/Should_push_metric_data_to_non-existing_counter.yml +9 -15
  119. data/spec/vcr_cassettes/{Gauge_metrics → Metrics/metrics_0_8_0/Templates/Gauge_metrics}/Should_create_gauge_definition_using_Hash.yml +5 -9
  120. data/spec/vcr_cassettes/{Gauge_metrics → Metrics/metrics_0_8_0/Templates/Gauge_metrics}/Should_create_gauge_definition_using_MetricDefinition.yml +6 -10
  121. data/spec/vcr_cassettes/{Gauge_metrics → Metrics/metrics_0_8_0/Templates/Gauge_metrics}/Should_push_metric_data_to_existing_gauge.yml +18 -30
  122. data/spec/vcr_cassettes/{Gauge_metrics → Metrics/metrics_0_8_0/Templates/Gauge_metrics}/Should_push_metric_data_to_non-existing_gauge.yml +9 -15
  123. data/spec/vcr_cassettes/{Gauge_metrics → Metrics/metrics_0_8_0/Templates/Gauge_metrics}/Should_return_periods.yml +6 -10
  124. data/spec/vcr_cassettes/{Gauge_metrics → Metrics/metrics_0_8_0/Templates/Gauge_metrics}/Should_update_tags_for_gauge_definition.yml +11 -21
  125. data/spec/vcr_cassettes/{Mixed_metrics → Metrics/metrics_0_8_0/Templates/Mixed_metrics}/Should_send_mixed_metric_request.yml +19 -33
  126. data/spec/vcr_cassettes/{Mixed_metrics → Metrics/metrics_0_8_0/Templates/Mixed_metrics}/Should_send_mixed_metric_request_of_a_single_type.yml +19 -31
  127. data/spec/vcr_cassettes/Metrics/metrics_0_8_0/Templates/Simple/Should_be_Cool.yml +82 -0
  128. data/spec/vcr_cassettes/Metrics/{Status.yml → metrics_0_8_0/Templates/Status/Should_return_the_version.yml} +6 -8
  129. data/spec/vcr_cassettes/{Tenants → Metrics/metrics_0_8_0/Templates/Tenants}/Should_create_and_return_tenant.yml +12 -8
  130. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Availability_metrics/Should_create_Availability_definition_using_MetricDefinition_parameter.yml +95 -0
  131. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Availability_metrics/Should_create_and_return_Availability_using_Hash_parameter.yml +95 -0
  132. data/spec/vcr_cassettes/{Availability_metrics → Metrics/metrics_services/Templates/Availability_metrics}/Should_group_contiguous_values.yml +7 -7
  133. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Availability_metrics/Should_push_metric_data_to_non-existing_Availability.yml +138 -0
  134. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Availability_metrics/Should_update_tags_for_Availability_definition.yml +230 -0
  135. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Counter_metrics/Should_create_and_return_counter_using_Hash_parameter.yml +95 -0
  136. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Counter_metrics/Should_create_counter_definition_using_MetricDefinition_parameter.yml +95 -0
  137. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml +230 -0
  138. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Counter_metrics/Should_get_metrics_with_limit_and_order.yml +314 -0
  139. data/spec/vcr_cassettes/{Counter_metrics/Should_get_metrics_with_limit_and_order.yml → Metrics/metrics_services/Templates/Counter_metrics/Should_push_metric_data_to_existing_counter.yml} +72 -61
  140. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Counter_metrics/Should_push_metric_data_to_non-existing_counter.yml +138 -0
  141. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Gauge_metrics/Should_create_gauge_definition_using_Hash.yml +95 -0
  142. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Gauge_metrics/Should_create_gauge_definition_using_MetricDefinition.yml +95 -0
  143. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Gauge_metrics/Should_push_metric_data_to_existing_gauge.yml +269 -0
  144. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Gauge_metrics/Should_push_metric_data_to_non-existing_gauge.yml +138 -0
  145. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Gauge_metrics/Should_return_periods.yml +93 -0
  146. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Gauge_metrics/Should_return_platform_memory.yml +48 -0
  147. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Gauge_metrics/Should_return_platform_memory_def.yml +49 -0
  148. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Gauge_metrics/Should_update_tags_for_gauge_definition.yml +230 -0
  149. data/spec/vcr_cassettes/{Mixed_metrics → Metrics/metrics_services/Templates/Mixed_metrics}/Should_requests_raw_data_for_multiple_metrics.yml +25 -25
  150. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml +300 -0
  151. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Mixed_metrics/Should_send_mixed_metric_request_of_a_single_type.yml +273 -0
  152. data/spec/vcr_cassettes/{No_Tenant → Metrics/metrics_services/Templates/No_Tenant}/Should_fail.yml +16 -10
  153. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Simple/Should_be_Cool.yml +48 -0
  154. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Status/Should_return_the_version.yml +42 -0
  155. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Tenants/Should_create_and_return_tenant.yml +95 -0
  156. data/spec/vcr_cassettes/{Counter_metrics → New_API_Counter_metrics}/Should_get_metrics_as_bucketed_results.yml +73 -33
  157. data/spec/vcr_cassettes/New_API_Mixed_metrics/Should_send_mixed_metric_request.yml +300 -0
  158. data/spec/vcr_cassettes/Operation/Helpers/get_feed.yml +17 -11
  159. data/spec/vcr_cassettes/Operation/Helpers/get_tenant.yml +13 -11
  160. data/spec/vcr_cassettes/Operation/Operation/Add_JDBC_driver_should_add_the_driver.json +2 -2
  161. data/spec/vcr_cassettes/Operation/Operation/Add_datasource_should_be_doable.json +2 -2
  162. data/spec/vcr_cassettes/Operation/Operation/Add_deployment_should_be_doable.json +2 -2
  163. data/spec/vcr_cassettes/Operation/Operation/Redeploy_can_be_run_multiple_times_in_parallel.json +4 -4
  164. data/spec/vcr_cassettes/Operation/Operation/Redeploy_should_be_performed_and_eventually_respond_with_success.json +2 -2
  165. data/spec/vcr_cassettes/Operation/Operation/Redeploy_should_not_be_performed_if_resource_path_is_wrong.json +2 -2
  166. data/spec/vcr_cassettes/Operation/Operation/Remove_JDBC_driver_should_be_performed_and_eventually_respond_with_success.json +2 -2
  167. data/spec/vcr_cassettes/Operation/Operation/Remove_datasource_should_be_performed_and_eventually_respond_with_success.json +2 -2
  168. data/spec/vcr_cassettes/Operation/Operation/Remove_deployment_should_be_performed_and_eventually_respond_with_success.json +2 -2
  169. data/spec/vcr_cassettes/Operation/Operation/Undeploy_should_be_performed_and_eventually_respond_with_success.json +2 -2
  170. data/spec/vcr_cassettes/Operation/Websocket_connection/should_bail_with_hash_property_error_because_no_callback_at_all.json +9 -0
  171. data/spec/vcr_cassettes/Operation/Websocket_connection/should_bail_with_hash_property_error_because_no_error-callback_.json +9 -0
  172. data/spec/vcr_cassettes/Operation/Websocket_connection/should_run_into_error_callback_because_bad_hash_parameters.json +13 -0
  173. metadata +259 -139
  174. data/spec/vcr_cassettes/Gauge_metrics/Platform_mem.yml +0 -44
  175. data/spec/vcr_cassettes/Gauge_metrics/Platform_mem_def.yml +0 -45
  176. data/spec/vcr_cassettes/Inventory/Helpers/generate_some_events_for_websocket.yml +0 -4446
  177. data/spec/vcr_cassettes/Inventory/Templates/Client_should_listen_on_various_inventory_events.json +0 -47
  178. data/spec/vcr_cassettes/Inventory/Templates/Helpers/generate_some_events_for_websocket.yml +0 -542
  179. data/spec/vcr_cassettes/Inventory/Templates/Should_List_datasources_with_no_props.yml +0 -174
  180. data/spec/vcr_cassettes/Inventory/Templates/Should_list_WildFlys_with_props.yml +0 -115
  181. data/spec/vcr_cassettes/Inventory/Templates/Should_list_all_the_resource_types.yml +0 -126
  182. data/spec/vcr_cassettes/Inventory/Templates/Should_list_children_of_WildFly.yml +0 -308
  183. data/spec/vcr_cassettes/Inventory/Templates/Should_list_heap_metrics_for_WildFlys.yml +0 -712
  184. data/spec/vcr_cassettes/Inventory/Templates/Should_list_metrics_for_WildFlys.yml +0 -278
  185. data/spec/vcr_cassettes/Inventory/Templates/Should_list_metrics_of_given_metric_type.yml +0 -530
  186. data/spec/vcr_cassettes/Inventory/Templates/Should_list_metrics_of_given_resource_type.yml +0 -278
  187. data/spec/vcr_cassettes/Inventory/Templates/Should_list_operation_definitions_of_given_resource.yml +0 -185
  188. data/spec/vcr_cassettes/Inventory/Templates/Should_list_operation_definitions_of_given_resource_type.yml +0 -126
  189. data/spec/vcr_cassettes/Inventory/Templates/Should_list_recursive_children_of_WildFly.yml +0 -2369
  190. data/spec/vcr_cassettes/Inventory/Templates/Should_list_relationships_of_WildFly.yml +0 -415
  191. data/spec/vcr_cassettes/Inventory/Templates/Should_list_types_with_feed.yml +0 -124
  192. data/spec/vcr_cassettes/Inventory/Templates/Should_return_config_data_of_given_resource.yml +0 -57
  193. data/spec/vcr_cassettes/Simple/Should_be_Cool.yml +0 -208
  194. data/spec/vcr_cassettes/Tenants/Should_Get_Tenant_For_Implicit_Credentials.yml +0 -50
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/
5
+ uri: http://jdoe:<%= super_secret_password %>@localhost:8080/hawkular/inventory/entity/feed
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: '{"properties":{},"id":"feed_may_exist","name":null,"outgoing":{},"incoming":{}}'
@@ -10,13 +10,15 @@ http_interactions:
10
10
  Accept:
11
11
  - application/json
12
12
  Accept-Encoding:
13
- - gzip, deflate
13
+ - identity
14
+ User-Agent:
15
+ - hawkular-client-ruby
16
+ Hawkular-Tenant:
17
+ - hawkular
14
18
  Content-Type:
15
19
  - application/json
16
20
  Content-Length:
17
21
  - '79'
18
- User-Agent:
19
- - Ruby
20
22
  response:
21
23
  status:
22
24
  code: 201
@@ -33,27 +35,28 @@ http_interactions:
33
35
  Pragma:
34
36
  - no-cache
35
37
  Location:
36
- - http://localhost:8080/hawkular/inventory/feeds/feed_may_exist
38
+ - http://localhost:8080/hawkular/inventory/entity/f;feed_may_exist
37
39
  Date:
38
- - Thu, 05 May 2016 11:18:45 GMT
40
+ - Thu, 14 Jul 2016 16:23:44 GMT
39
41
  Connection:
40
42
  - keep-alive
41
43
  Content-Type:
42
44
  - application/json
43
45
  Content-Length:
44
- - '100'
46
+ - '135'
45
47
  body:
46
- encoding: ASCII-8BIT
48
+ encoding: UTF-8
47
49
  string: |-
48
50
  {
49
- "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist",
51
+ "path" : "/t;hawkular/f;feed_may_exist",
52
+ "identityHash" : "18a4f8a18a8012f826e2dbe4cb768d14c391a59b",
50
53
  "id" : "feed_may_exist"
51
54
  }
52
55
  http_version:
53
- recorded_at: Thu, 05 May 2016 11:18:45 GMT
56
+ recorded_at: Thu, 14 Jul 2016 16:23:44 GMT
54
57
  - request:
55
58
  method: post
56
- uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resourceTypes
59
+ uri: http://jdoe:<%= super_secret_password %>@localhost:8080/hawkular/inventory/entity/f;feed_may_exist/resourceType
57
60
  body:
58
61
  encoding: UTF-8
59
62
  string: '{"properties":{},"id":"rt-123","name":"ResourceType","outgoing":{},"incoming":{}}'
@@ -61,13 +64,15 @@ http_interactions:
61
64
  Accept:
62
65
  - application/json
63
66
  Accept-Encoding:
64
- - gzip, deflate
67
+ - identity
68
+ User-Agent:
69
+ - hawkular-client-ruby
70
+ Hawkular-Tenant:
71
+ - hawkular
65
72
  Content-Type:
66
73
  - application/json
67
74
  Content-Length:
68
75
  - '81'
69
- User-Agent:
70
- - Ruby
71
76
  response:
72
77
  status:
73
78
  code: 201
@@ -84,28 +89,29 @@ http_interactions:
84
89
  Pragma:
85
90
  - no-cache
86
91
  Location:
87
- - http://localhost:8080/hawkular/inventory/feeds/feed_may_exist/resourceTypes/rt-123
92
+ - http://localhost:8080/hawkular/inventory/entity/f;feed_may_exist/rt;rt-123
88
93
  Date:
89
- - Thu, 05 May 2016 11:18:45 GMT
94
+ - Thu, 14 Jul 2016 16:23:44 GMT
90
95
  Connection:
91
96
  - keep-alive
92
97
  Content-Type:
93
98
  - application/json
94
99
  Content-Length:
95
- - '129'
100
+ - '162'
96
101
  body:
97
- encoding: ASCII-8BIT
102
+ encoding: UTF-8
98
103
  string: |-
99
104
  {
100
- "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/rt;rt-123",
105
+ "path" : "/t;hawkular/f;feed_may_exist/rt;rt-123",
101
106
  "name" : "ResourceType",
107
+ "identityHash" : "30a52c53a93cb102e499367ecc55ed8a03b0b1",
102
108
  "id" : "rt-123"
103
109
  }
104
110
  http_version:
105
- recorded_at: Thu, 05 May 2016 11:18:45 GMT
111
+ recorded_at: Thu, 14 Jul 2016 16:23:44 GMT
106
112
  - request:
107
113
  method: get
108
- uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resourceTypes/rt-123
114
+ uri: http://jdoe:<%= super_secret_password %>@localhost:8080/hawkular/inventory/entity/f;feed_may_exist/rt;rt-123
109
115
  body:
110
116
  encoding: US-ASCII
111
117
  string: ''
@@ -113,11 +119,13 @@ http_interactions:
113
119
  Accept:
114
120
  - application/json
115
121
  Accept-Encoding:
116
- - gzip, deflate
122
+ - identity
123
+ User-Agent:
124
+ - hawkular-client-ruby
125
+ Hawkular-Tenant:
126
+ - hawkular
117
127
  Content-Type:
118
128
  - application/json
119
- User-Agent:
120
- - Ruby
121
129
  response:
122
130
  status:
123
131
  code: 200
@@ -134,21 +142,22 @@ http_interactions:
134
142
  Pragma:
135
143
  - no-cache
136
144
  Date:
137
- - Thu, 05 May 2016 11:18:45 GMT
145
+ - Thu, 14 Jul 2016 16:23:44 GMT
138
146
  Connection:
139
147
  - keep-alive
140
148
  Content-Type:
141
149
  - application/json
142
150
  Content-Length:
143
- - '129'
151
+ - '162'
144
152
  body:
145
- encoding: ASCII-8BIT
153
+ encoding: UTF-8
146
154
  string: |-
147
155
  {
148
- "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/rt;rt-123",
156
+ "path" : "/t;hawkular/f;feed_may_exist/rt;rt-123",
149
157
  "name" : "ResourceType",
158
+ "identityHash" : "30a52c53a93cb102e499367ecc55ed8a03b0b1",
150
159
  "id" : "rt-123"
151
160
  }
152
161
  http_version:
153
- recorded_at: Thu, 05 May 2016 11:18:45 GMT
162
+ recorded_at: Thu, 14 Jul 2016 16:23:44 GMT
154
163
  recorded_with: VCR 3.0.1
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/
5
+ uri: http://jdoe:<%= super_secret_password %>@localhost:8080/hawkular/inventory/entity/feed
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: '{"properties":{},"id":"feed_1123sdn","name":null,"outgoing":{},"incoming":{}}'
@@ -10,13 +10,15 @@ http_interactions:
10
10
  Accept:
11
11
  - application/json
12
12
  Accept-Encoding:
13
- - gzip, deflate
13
+ - identity
14
+ User-Agent:
15
+ - hawkular-client-ruby
16
+ Hawkular-Tenant:
17
+ - hawkular
14
18
  Content-Type:
15
19
  - application/json
16
20
  Content-Length:
17
21
  - '77'
18
- User-Agent:
19
- - Ruby
20
22
  response:
21
23
  status:
22
24
  code: 201
@@ -33,27 +35,28 @@ http_interactions:
33
35
  Pragma:
34
36
  - no-cache
35
37
  Location:
36
- - http://localhost:8080/hawkular/inventory/feeds/feed_1123sdn
38
+ - http://localhost:8080/hawkular/inventory/entity/f;feed_1123sdn
37
39
  Date:
38
- - Thu, 05 May 2016 11:18:45 GMT
40
+ - Thu, 14 Jul 2016 16:23:43 GMT
39
41
  Connection:
40
42
  - keep-alive
41
43
  Content-Type:
42
44
  - application/json
43
45
  Content-Length:
44
- - '96'
46
+ - '131'
45
47
  body:
46
- encoding: ASCII-8BIT
48
+ encoding: UTF-8
47
49
  string: |-
48
50
  {
49
- "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_1123sdn",
51
+ "path" : "/t;hawkular/f;feed_1123sdn",
52
+ "identityHash" : "e153d6e14c5bd12f51dcdc16a0493afbd0298dcb",
50
53
  "id" : "feed_1123sdn"
51
54
  }
52
55
  http_version:
53
- recorded_at: Thu, 05 May 2016 11:18:45 GMT
56
+ recorded_at: Thu, 14 Jul 2016 16:23:43 GMT
54
57
  - request:
55
58
  method: delete
56
- uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_1123sdn
59
+ uri: http://jdoe:<%= super_secret_password %>@localhost:8080/hawkular/inventory/entity/f;feed_1123sdn
57
60
  body:
58
61
  encoding: US-ASCII
59
62
  string: ''
@@ -61,11 +64,13 @@ http_interactions:
61
64
  Accept:
62
65
  - application/json
63
66
  Accept-Encoding:
64
- - gzip, deflate
67
+ - identity
68
+ User-Agent:
69
+ - hawkular-client-ruby
70
+ Hawkular-Tenant:
71
+ - hawkular
65
72
  Content-Type:
66
73
  - application/json
67
- User-Agent:
68
- - Ruby
69
74
  response:
70
75
  status:
71
76
  code: 204
@@ -82,15 +87,15 @@ http_interactions:
82
87
  Pragma:
83
88
  - no-cache
84
89
  Date:
85
- - Thu, 05 May 2016 11:18:45 GMT
90
+ - Thu, 14 Jul 2016 16:23:44 GMT
86
91
  body:
87
92
  encoding: UTF-8
88
93
  string: ''
89
94
  http_version:
90
- recorded_at: Thu, 05 May 2016 11:18:45 GMT
95
+ recorded_at: Thu, 14 Jul 2016 16:23:44 GMT
91
96
  - request:
92
97
  method: get
93
- uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds
98
+ uri: http://jdoe:<%= super_secret_password %>@localhost:8080/hawkular/inventory/traversal/type=f
94
99
  body:
95
100
  encoding: US-ASCII
96
101
  string: ''
@@ -98,11 +103,13 @@ http_interactions:
98
103
  Accept:
99
104
  - application/json
100
105
  Accept-Encoding:
101
- - gzip, deflate
106
+ - identity
107
+ User-Agent:
108
+ - hawkular-client-ruby
109
+ Hawkular-Tenant:
110
+ - hawkular
102
111
  Content-Type:
103
112
  - application/json
104
- User-Agent:
105
- - Ruby
106
113
  response:
107
114
  status:
108
115
  code: 200
@@ -119,7 +126,7 @@ http_interactions:
119
126
  Pragma:
120
127
  - no-cache
121
128
  Date:
122
- - Thu, 05 May 2016 11:18:45 GMT
129
+ - Thu, 14 Jul 2016 16:23:44 GMT
123
130
  X-Total-Count:
124
131
  - '2'
125
132
  Connection:
@@ -127,19 +134,27 @@ http_interactions:
127
134
  Content-Type:
128
135
  - application/json
129
136
  Content-Length:
130
- - '294'
137
+ - '536'
131
138
  Link:
132
- - <http://localhost:8080/hawkular/inventory/feeds>; rel="current"
139
+ - <http://localhost:8080/hawkular/inventory/traversal/type=f>; rel="current"
133
140
  body:
134
- encoding: ASCII-8BIT
141
+ encoding: UTF-8
135
142
  string: |-
136
143
  [ {
137
- "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;<%= feed_uuid %>",
144
+ "path" : "/t;hawkular/f;<%= feed_uuid %>",
145
+ "properties" : {
146
+ "__identityHash" : "1529b824c466776d4f26aba71db7cb4788d0d"
147
+ },
148
+ "identityHash" : "1529b824c466776d4f26aba71db7cb4788d0d",
138
149
  "id" : "<%= feed_uuid %>"
139
150
  }, {
140
- "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_1123sdncisud6237ui23hjbdscuzsad",
151
+ "path" : "/t;hawkular/f;feed_1123sdncisud6237ui23hjbdscuzsad",
152
+ "properties" : {
153
+ "__identityHash" : "c5ef96a36ea11f6a72066f685b5d1d8b9d1daaf"
154
+ },
155
+ "identityHash" : "c5ef96a36ea11f6a72066f685b5d1d8b9d1daaf",
141
156
  "id" : "feed_1123sdncisud6237ui23hjbdscuzsad"
142
157
  } ]
143
158
  http_version:
144
- recorded_at: Thu, 05 May 2016 11:18:45 GMT
159
+ recorded_at: Thu, 14 Jul 2016 16:23:44 GMT
145
160
  recorded_with: VCR 3.0.1
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/
5
+ uri: http://jdoe:<%= super_secret_password %>@localhost:8080/hawkular/inventory/entity/feed
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: '{"properties":{},"id":"feed_may_exist","name":null,"outgoing":{},"incoming":{}}'
@@ -10,13 +10,15 @@ http_interactions:
10
10
  Accept:
11
11
  - application/json
12
12
  Accept-Encoding:
13
- - gzip, deflate
13
+ - identity
14
+ User-Agent:
15
+ - hawkular-client-ruby
16
+ Hawkular-Tenant:
17
+ - hawkular
14
18
  Content-Type:
15
19
  - application/json
16
20
  Content-Length:
17
21
  - '79'
18
- User-Agent:
19
- - Ruby
20
22
  response:
21
23
  status:
22
24
  code: 409
@@ -33,24 +35,24 @@ http_interactions:
33
35
  Pragma:
34
36
  - no-cache
35
37
  Date:
36
- - Thu, 05 May 2016 11:18:45 GMT
38
+ - Thu, 14 Jul 2016 16:23:46 GMT
37
39
  Connection:
38
40
  - keep-alive
39
41
  Content-Type:
40
42
  - application/json
41
43
  Content-Length:
42
- - '747'
44
+ - '663'
43
45
  body:
44
- encoding: ASCII-8BIT
46
+ encoding: UTF-8
45
47
  string: |-
46
48
  {
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]]]",
49
+ "errorMsg" : "Feed with id 'Feed[path='/t;hawkular/f;feed_may_exist']' has been already registered. Entity with id 'feed_may_exist' already exists at some of the positions: [[Types[Tenant], Ids[hawkular], Related[, rel='contains', role=SOURCE], Types[Feed], Ids[feed_may_exist]]]",
48
50
  "details" : {
49
51
  "entityId" : "feed_may_exist",
50
52
  "paths" : [ [ {
51
53
  "types" : [ "org.hawkular.inventory.api.model.Tenant" ]
52
54
  }, {
53
- "ids" : [ "28026b36-8fe4-4332-84c8-524e173a68bf" ]
55
+ "ids" : [ "hawkular" ]
54
56
  }, {
55
57
  "relationshipName" : "contains",
56
58
  "entityRole" : "SOURCE"
@@ -62,10 +64,10 @@ http_interactions:
62
64
  }
63
65
  }
64
66
  http_version:
65
- recorded_at: Thu, 05 May 2016 11:18:45 GMT
67
+ recorded_at: Thu, 14 Jul 2016 16:23:46 GMT
66
68
  - request:
67
69
  method: get
68
- uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist
70
+ uri: http://jdoe:<%= super_secret_password %>@localhost:8080/hawkular/inventory/entity/f;feed_may_exist
69
71
  body:
70
72
  encoding: US-ASCII
71
73
  string: ''
@@ -73,11 +75,13 @@ http_interactions:
73
75
  Accept:
74
76
  - application/json
75
77
  Accept-Encoding:
76
- - gzip, deflate
78
+ - identity
79
+ User-Agent:
80
+ - hawkular-client-ruby
81
+ Hawkular-Tenant:
82
+ - hawkular
77
83
  Content-Type:
78
84
  - application/json
79
- User-Agent:
80
- - Ruby
81
85
  response:
82
86
  status:
83
87
  code: 200
@@ -94,25 +98,29 @@ http_interactions:
94
98
  Pragma:
95
99
  - no-cache
96
100
  Date:
97
- - Thu, 05 May 2016 11:18:45 GMT
101
+ - Thu, 14 Jul 2016 16:23:46 GMT
98
102
  Connection:
99
103
  - keep-alive
100
104
  Content-Type:
101
105
  - application/json
102
106
  Content-Length:
103
- - '100'
107
+ - '223'
104
108
  body:
105
- encoding: ASCII-8BIT
109
+ encoding: UTF-8
106
110
  string: |-
107
111
  {
108
- "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist",
112
+ "path" : "/t;hawkular/f;feed_may_exist",
113
+ "properties" : {
114
+ "__identityHash" : "55affa87de54513afac93594fab92745c814eea"
115
+ },
116
+ "identityHash" : "55affa87de54513afac93594fab92745c814eea",
109
117
  "id" : "feed_may_exist"
110
118
  }
111
119
  http_version:
112
- recorded_at: Thu, 05 May 2016 11:18:45 GMT
120
+ recorded_at: Thu, 14 Jul 2016 16:23:46 GMT
113
121
  - request:
114
122
  method: post
115
- uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resourceTypes
123
+ uri: http://jdoe:<%= super_secret_password %>@localhost:8080/hawkular/inventory/entity/f;feed_may_exist/resourceType
116
124
  body:
117
125
  encoding: UTF-8
118
126
  string: '{"properties":{},"id":"rt-123","name":"ResourceType","outgoing":{},"incoming":{}}'
@@ -120,13 +128,15 @@ http_interactions:
120
128
  Accept:
121
129
  - application/json
122
130
  Accept-Encoding:
123
- - gzip, deflate
131
+ - identity
132
+ User-Agent:
133
+ - hawkular-client-ruby
134
+ Hawkular-Tenant:
135
+ - hawkular
124
136
  Content-Type:
125
137
  - application/json
126
138
  Content-Length:
127
139
  - '81'
128
- User-Agent:
129
- - Ruby
130
140
  response:
131
141
  status:
132
142
  code: 409
@@ -143,7 +153,7 @@ http_interactions:
143
153
  Pragma:
144
154
  - no-cache
145
155
  Date:
146
- - Thu, 05 May 2016 11:18:45 GMT
156
+ - Thu, 14 Jul 2016 16:23:46 GMT
147
157
  Connection:
148
158
  - keep-alive
149
159
  Content-Type:
@@ -151,17 +161,17 @@ http_interactions:
151
161
  Content-Length:
152
162
  - '107'
153
163
  body:
154
- encoding: ASCII-8BIT
164
+ encoding: UTF-8
155
165
  string: |-
156
166
  {
157
167
  "errorMsg" : "Entity with id 'null' already exists at some of the positions: null",
158
168
  "details" : { }
159
169
  }
160
170
  http_version:
161
- recorded_at: Thu, 05 May 2016 11:18:45 GMT
171
+ recorded_at: Thu, 14 Jul 2016 16:23:46 GMT
162
172
  - request:
163
173
  method: get
164
- uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resourceTypes/rt-123
174
+ uri: http://jdoe:<%= super_secret_password %>@localhost:8080/hawkular/inventory/entity/f;feed_may_exist/rt;rt-123
165
175
  body:
166
176
  encoding: US-ASCII
167
177
  string: ''
@@ -169,11 +179,13 @@ http_interactions:
169
179
  Accept:
170
180
  - application/json
171
181
  Accept-Encoding:
172
- - gzip, deflate
182
+ - identity
183
+ User-Agent:
184
+ - hawkular-client-ruby
185
+ Hawkular-Tenant:
186
+ - hawkular
173
187
  Content-Type:
174
188
  - application/json
175
- User-Agent:
176
- - Ruby
177
189
  response:
178
190
  status:
179
191
  code: 200
@@ -190,40 +202,43 @@ http_interactions:
190
202
  Pragma:
191
203
  - no-cache
192
204
  Date:
193
- - Thu, 05 May 2016 11:18:45 GMT
205
+ - Thu, 14 Jul 2016 16:23:46 GMT
194
206
  Connection:
195
207
  - keep-alive
196
208
  Content-Type:
197
209
  - application/json
198
210
  Content-Length:
199
- - '129'
211
+ - '162'
200
212
  body:
201
- encoding: ASCII-8BIT
213
+ encoding: UTF-8
202
214
  string: |-
203
215
  {
204
- "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/rt;rt-123",
216
+ "path" : "/t;hawkular/f;feed_may_exist/rt;rt-123",
205
217
  "name" : "ResourceType",
218
+ "identityHash" : "30a52c53a93cb102e499367ecc55ed8a03b0b1",
206
219
  "id" : "rt-123"
207
220
  }
208
221
  http_version:
209
- recorded_at: Thu, 05 May 2016 11:18:45 GMT
222
+ recorded_at: Thu, 14 Jul 2016 16:23:46 GMT
210
223
  - request:
211
224
  method: post
212
- uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resources
225
+ uri: http://jdoe:<%= super_secret_password %>@localhost:8080/hawkular/inventory/entity/f;feed_may_exist/resource
213
226
  body:
214
227
  encoding: UTF-8
215
- string: '{"properties":{"version":1.0},"id":"r123","name":"My Resource","outgoing":{},"incoming":{},"resourceTypePath":"/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/rt;rt-123"}'
228
+ string: '{"properties":{"version":1.0},"id":"r125","name":"My Resource","outgoing":{},"incoming":{},"resourceTypePath":"/t;hawkular/f;feed_may_exist/rt;rt-123"}'
216
229
  headers:
217
230
  Accept:
218
231
  - application/json
219
232
  Accept-Encoding:
220
- - gzip, deflate
233
+ - identity
234
+ User-Agent:
235
+ - hawkular-client-ruby
236
+ Hawkular-Tenant:
237
+ - hawkular
221
238
  Content-Type:
222
239
  - application/json
223
240
  Content-Length:
224
- - '179'
225
- User-Agent:
226
- - Ruby
241
+ - '151'
227
242
  response:
228
243
  status:
229
244
  code: 201
@@ -240,36 +255,38 @@ http_interactions:
240
255
  Pragma:
241
256
  - no-cache
242
257
  Location:
243
- - http://localhost:8080/hawkular/inventory/feeds/feed_may_exist/resources/r123
258
+ - http://localhost:8080/hawkular/inventory/entity/f;feed_may_exist/r;r125
244
259
  Date:
245
- - Thu, 05 May 2016 11:18:46 GMT
260
+ - Thu, 14 Jul 2016 16:23:46 GMT
246
261
  Connection:
247
262
  - keep-alive
248
263
  Content-Type:
249
264
  - application/json
250
265
  Content-Length:
251
- - '317'
266
+ - '386'
252
267
  body:
253
- encoding: ASCII-8BIT
268
+ encoding: UTF-8
254
269
  string: |-
255
270
  {
256
- "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/r;r123",
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
- },
271
+ "path" : "/t;hawkular/f;feed_may_exist/r;r125",
262
272
  "properties" : {
263
273
  "version" : 1.0
264
274
  },
265
275
  "name" : "My Resource",
266
- "id" : "r123"
276
+ "identityHash" : "4f6d7ec5cdd2f75ca2cb9e4d0499c7bc0f5c5a2",
277
+ "type" : {
278
+ "path" : "/t;hawkular/f;feed_may_exist/rt;rt-123",
279
+ "name" : "ResourceType",
280
+ "identityHash" : "30a52c53a93cb102e499367ecc55ed8a03b0b1",
281
+ "id" : "rt-123"
282
+ },
283
+ "id" : "r125"
267
284
  }
268
285
  http_version:
269
- recorded_at: Thu, 05 May 2016 11:18:46 GMT
286
+ recorded_at: Thu, 14 Jul 2016 16:23:46 GMT
270
287
  - request:
271
288
  method: get
272
- uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resources/r123
289
+ uri: http://jdoe:<%= super_secret_password %>@localhost:8080/hawkular/inventory/entity/f;feed_may_exist/r;r125
273
290
  body:
274
291
  encoding: US-ASCII
275
292
  string: ''
@@ -277,11 +294,13 @@ http_interactions:
277
294
  Accept:
278
295
  - application/json
279
296
  Accept-Encoding:
280
- - gzip, deflate
297
+ - identity
298
+ User-Agent:
299
+ - hawkular-client-ruby
300
+ Hawkular-Tenant:
301
+ - hawkular
281
302
  Content-Type:
282
303
  - application/json
283
- User-Agent:
284
- - Ruby
285
304
  response:
286
305
  status:
287
306
  code: 200
@@ -298,34 +317,37 @@ http_interactions:
298
317
  Pragma:
299
318
  - no-cache
300
319
  Date:
301
- - Thu, 05 May 2016 11:18:46 GMT
320
+ - Thu, 14 Jul 2016 16:23:47 GMT
302
321
  Connection:
303
322
  - keep-alive
304
323
  Content-Type:
305
324
  - application/json
306
325
  Content-Length:
307
- - '317'
326
+ - '452'
308
327
  body:
309
- encoding: ASCII-8BIT
328
+ encoding: UTF-8
310
329
  string: |-
311
330
  {
312
- "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/r;r123",
313
- "type" : {
314
- "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/rt;rt-123",
315
- "name" : "ResourceType",
316
- "id" : "rt-123"
317
- },
331
+ "path" : "/t;hawkular/f;feed_may_exist/r;r125",
318
332
  "properties" : {
333
+ "__identityHash" : "4f6d7ec5cdd2f75ca2cb9e4d0499c7bc0f5c5a2",
319
334
  "version" : 1.0
320
335
  },
321
336
  "name" : "My Resource",
322
- "id" : "r123"
337
+ "identityHash" : "4f6d7ec5cdd2f75ca2cb9e4d0499c7bc0f5c5a2",
338
+ "type" : {
339
+ "path" : "/t;hawkular/f;feed_may_exist/rt;rt-123",
340
+ "name" : "ResourceType",
341
+ "identityHash" : "30a52c53a93cb102e499367ecc55ed8a03b0b1",
342
+ "id" : "rt-123"
343
+ },
344
+ "id" : "r125"
323
345
  }
324
346
  http_version:
325
- recorded_at: Thu, 05 May 2016 11:18:46 GMT
347
+ recorded_at: Thu, 14 Jul 2016 16:23:47 GMT
326
348
  - request:
327
349
  method: get
328
- uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resources/r123
350
+ uri: http://jdoe:<%= super_secret_password %>@localhost:8080/hawkular/inventory/entity/f;feed_may_exist/r;r125/d;configuration
329
351
  body:
330
352
  encoding: US-ASCII
331
353
  string: ''
@@ -333,15 +355,17 @@ http_interactions:
333
355
  Accept:
334
356
  - application/json
335
357
  Accept-Encoding:
336
- - gzip, deflate
358
+ - identity
359
+ User-Agent:
360
+ - hawkular-client-ruby
361
+ Hawkular-Tenant:
362
+ - hawkular
337
363
  Content-Type:
338
364
  - application/json
339
- User-Agent:
340
- - Ruby
341
365
  response:
342
366
  status:
343
- code: 200
344
- message: OK
367
+ code: 404
368
+ message: Not Found
345
369
  headers:
346
370
  Expires:
347
371
  - '0'
@@ -354,29 +378,25 @@ http_interactions:
354
378
  Pragma:
355
379
  - no-cache
356
380
  Date:
357
- - Thu, 05 May 2016 11:18:46 GMT
381
+ - Thu, 14 Jul 2016 16:23:47 GMT
358
382
  Connection:
359
383
  - keep-alive
360
384
  Content-Type:
361
385
  - application/json
362
386
  Content-Length:
363
- - '317'
387
+ - '300'
364
388
  body:
365
- encoding: ASCII-8BIT
389
+ encoding: UTF-8
366
390
  string: |-
367
391
  {
368
- "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/r;r123",
369
- "type" : {
370
- "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/rt;rt-123",
371
- "name" : "ResourceType",
372
- "id" : "rt-123"
373
- },
374
- "properties" : {
375
- "version" : 1.0
376
- },
377
- "name" : "My Resource",
378
- "id" : "r123"
392
+ "errorMsg" : "No DataEntity found on any of the following paths: [[CanonicalPaths[/t;hawkular/f;feed_may_exist/r;r125/d;configuration]]]",
393
+ "details" : {
394
+ "entityType" : "DataEntity",
395
+ "path" : [ [ {
396
+ "paths" : [ "/t;hawkular/f;feed_may_exist/r;r125/d;configuration" ]
397
+ } ] ]
398
+ }
379
399
  }
380
400
  http_version:
381
- recorded_at: Thu, 05 May 2016 11:18:46 GMT
401
+ recorded_at: Thu, 14 Jul 2016 16:23:47 GMT
382
402
  recorded_with: VCR 3.0.1