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: 409
@@ -33,24 +35,24 @@ http_interactions:
33
35
  Pragma:
34
36
  - no-cache
35
37
  Date:
36
- - Thu, 05 May 2016 11:18:48 GMT
38
+ - Thu, 14 Jul 2016 16:23:44 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:48 GMT
67
+ recorded_at: Thu, 14 Jul 2016 16:23:44 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:48 GMT
101
+ - Thu, 14 Jul 2016 16:23:44 GMT
98
102
  Connection:
99
103
  - keep-alive
100
104
  Content-Type:
101
105
  - application/json
102
106
  Content-Length:
103
- - '100'
107
+ - '225'
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" : "95604cd341ec20d5a059792fbc18603bf754fbcc"
115
+ },
116
+ "identityHash" : "95604cd341ec20d5a059792fbc18603bf754fbcc",
109
117
  "id" : "feed_may_exist"
110
118
  }
111
119
  http_version:
112
- recorded_at: Thu, 05 May 2016 11:18:48 GMT
120
+ recorded_at: Thu, 14 Jul 2016 16:23:44 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:48 GMT
156
+ - Thu, 14 Jul 2016 16:23:44 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:48 GMT
171
+ recorded_at: Thu, 14 Jul 2016 16:23:44 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:48 GMT
205
+ - Thu, 14 Jul 2016 16:23:44 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:48 GMT
222
+ recorded_at: Thu, 14 Jul 2016 16:23:44 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":"r125","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":"r123","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,92 +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/r125
258
+ - http://localhost:8080/hawkular/inventory/entity/f;feed_may_exist/r;r123
244
259
  Date:
245
- - Thu, 05 May 2016 11:18:48 GMT
260
+ - Thu, 14 Jul 2016 16:23:44 GMT
246
261
  Connection:
247
262
  - keep-alive
248
263
  Content-Type:
249
264
  - application/json
250
265
  Content-Length:
251
- - '317'
266
+ - '383'
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;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
- },
271
+ "path" : "/t;hawkular/f;feed_may_exist/r;r123",
262
272
  "properties" : {
263
273
  "version" : 1.0
264
274
  },
265
275
  "name" : "My Resource",
266
- "id" : "r125"
267
- }
268
- http_version:
269
- recorded_at: Thu, 05 May 2016 11:18:48 GMT
270
- - request:
271
- method: get
272
- uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resources/r125
273
- body:
274
- encoding: US-ASCII
275
- string: ''
276
- headers:
277
- Accept:
278
- - application/json
279
- Accept-Encoding:
280
- - gzip, deflate
281
- Content-Type:
282
- - application/json
283
- User-Agent:
284
- - Ruby
285
- response:
286
- status:
287
- code: 200
288
- message: OK
289
- headers:
290
- Expires:
291
- - '0'
292
- Cache-Control:
293
- - no-cache, no-store, must-revalidate
294
- X-Powered-By:
295
- - Undertow/1
296
- Server:
297
- - WildFly/10
298
- Pragma:
299
- - no-cache
300
- Date:
301
- - Thu, 05 May 2016 11:18:48 GMT
302
- Connection:
303
- - keep-alive
304
- Content-Type:
305
- - application/json
306
- Content-Length:
307
- - '317'
308
- body:
309
- encoding: ASCII-8BIT
310
- string: |-
311
- {
312
- "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/r;r125",
276
+ "identityHash" : "3be2debda577083937e8830525b1bef4fa48",
313
277
  "type" : {
314
- "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/rt;rt-123",
278
+ "path" : "/t;hawkular/f;feed_may_exist/rt;rt-123",
315
279
  "name" : "ResourceType",
280
+ "identityHash" : "30a52c53a93cb102e499367ecc55ed8a03b0b1",
316
281
  "id" : "rt-123"
317
282
  },
318
- "properties" : {
319
- "version" : 1.0
320
- },
321
- "name" : "My Resource",
322
- "id" : "r125"
283
+ "id" : "r123"
323
284
  }
324
285
  http_version:
325
- recorded_at: Thu, 05 May 2016 11:18:48 GMT
286
+ recorded_at: Thu, 14 Jul 2016 16:23:44 GMT
326
287
  - request:
327
288
  method: get
328
- uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resources/r125
289
+ uri: http://jdoe:<%= super_secret_password %>@localhost:8080/hawkular/inventory/entity/f;feed_may_exist/r;r123
329
290
  body:
330
291
  encoding: US-ASCII
331
292
  string: ''
@@ -333,11 +294,13 @@ http_interactions:
333
294
  Accept:
334
295
  - application/json
335
296
  Accept-Encoding:
336
- - gzip, deflate
297
+ - identity
298
+ User-Agent:
299
+ - hawkular-client-ruby
300
+ Hawkular-Tenant:
301
+ - hawkular
337
302
  Content-Type:
338
303
  - application/json
339
- User-Agent:
340
- - Ruby
341
304
  response:
342
305
  status:
343
306
  code: 200
@@ -354,81 +317,32 @@ http_interactions:
354
317
  Pragma:
355
318
  - no-cache
356
319
  Date:
357
- - Thu, 05 May 2016 11:18:48 GMT
320
+ - Thu, 14 Jul 2016 16:23:44 GMT
358
321
  Connection:
359
322
  - keep-alive
360
323
  Content-Type:
361
324
  - application/json
362
325
  Content-Length:
363
- - '317'
326
+ - '446'
364
327
  body:
365
- encoding: ASCII-8BIT
328
+ encoding: UTF-8
366
329
  string: |-
367
330
  {
368
- "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/r;r125",
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
- },
331
+ "path" : "/t;hawkular/f;feed_may_exist/r;r123",
374
332
  "properties" : {
333
+ "__identityHash" : "3be2debda577083937e8830525b1bef4fa48",
375
334
  "version" : 1.0
376
335
  },
377
336
  "name" : "My Resource",
378
- "id" : "r125"
379
- }
380
- http_version:
381
- recorded_at: Thu, 05 May 2016 11:18:48 GMT
382
- - request:
383
- method: get
384
- uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resources/r125/data?dataType=configuration
385
- body:
386
- encoding: US-ASCII
387
- string: ''
388
- headers:
389
- Accept:
390
- - application/json
391
- Accept-Encoding:
392
- - gzip, deflate
393
- Content-Type:
394
- - application/json
395
- User-Agent:
396
- - Ruby
397
- response:
398
- status:
399
- code: 404
400
- message: Not Found
401
- headers:
402
- Expires:
403
- - '0'
404
- Cache-Control:
405
- - no-cache, no-store, must-revalidate
406
- X-Powered-By:
407
- - Undertow/1
408
- Server:
409
- - WildFly/10
410
- Pragma:
411
- - no-cache
412
- Date:
413
- - Thu, 05 May 2016 11:18:48 GMT
414
- Connection:
415
- - keep-alive
416
- Content-Type:
417
- - application/json
418
- Content-Length:
419
- - '356'
420
- body:
421
- encoding: ASCII-8BIT
422
- string: |-
423
- {
424
- "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]]]",
425
- "details" : {
426
- "entityType" : "DataEntity",
427
- "path" : [ [ {
428
- "paths" : [ "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/r;r125/d;configuration" ]
429
- } ] ]
430
- }
337
+ "identityHash" : "3be2debda577083937e8830525b1bef4fa48",
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" : "r123"
431
345
  }
432
346
  http_version:
433
- recorded_at: Thu, 05 May 2016 11:18:48 GMT
347
+ recorded_at: Thu, 14 Jul 2016 16:23:44 GMT
434
348
  recorded_with: VCR 3.0.1