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.
- checksums.yaml +4 -4
- data/CHANGES.rdoc +12 -0
- data/README.rdoc +5 -3
- data/Rakefile +8 -0
- data/hawkularclient.gemspec +1 -1
- data/lib/hawkular/base_client.rb +19 -1
- data/lib/hawkular/hawkular_client.rb +1 -1
- data/lib/hawkular/hawkular_client_utils.rb +1 -0
- data/lib/hawkular/inventory/entities.rb +234 -0
- data/lib/hawkular/inventory/inventory_api.rb +92 -311
- data/lib/hawkular/metrics/metric_api.rb +23 -10
- data/lib/hawkular/metrics/metrics_client.rb +14 -0
- data/lib/hawkular/operations/operations_api.rb +8 -2
- data/lib/hawkular/version.rb +1 -1
- data/spec/README.rdoc +62 -0
- data/spec/integration/alerts_spec.rb +18 -14
- data/spec/integration/hawkular_client_spec.rb +53 -14
- data/spec/integration/inventory_spec.rb +91 -44
- data/spec/integration/metric_spec.rb +574 -420
- data/spec/integration/operations_spec.rb +78 -5
- data/spec/integration/tokens_spec.rb +8 -4
- data/spec/spec_helper.rb +73 -13
- data/spec/unit/base_spec.rb +30 -1
- data/spec/unit/client_spec.rb +21 -9
- data/spec/vcr_cassettes/HawkularClient/Should_err_on_bad_credentials.yml +42 -0
- data/spec/vcr_cassettes/HawkularClient/and_Inventory_client/Should_both_create_and_delete_feed.yml +64 -34
- data/spec/vcr_cassettes/HawkularClient/and_Inventory_client/Should_both_list_WildFlys.yml +27 -43
- data/spec/vcr_cassettes/HawkularClient/and_Inventory_client/Should_both_list_types_with_bad_feed.yml +12 -8
- data/spec/vcr_cassettes/HawkularClient/and_Inventory_client/Should_list_same_types_when_param_is_given.yml +144 -64
- data/spec/vcr_cassettes/HawkularClient/and_Inventory_client/Should_list_the_same_feeds.yml +26 -14
- data/spec/vcr_cassettes/HawkularClient/and_Inventory_client/Should_list_the_same_resource_types.yml +20 -158
- data/spec/vcr_cassettes/HawkularClient/and_Operations_client/Should_both_work_the_same_way.yml +40 -30
- data/spec/vcr_cassettes/{Tenants/Should_Get_Tenant_For_Explicit_Credentials.yml → HawkularClient/and_Operations_client/Should_work_initializing_with_URI.yml} +18 -20
- data/spec/vcr_cassettes/HawkularClient/and_Operations_client_Should_both_work_the_same_way.json +8 -8
- data/spec/vcr_cassettes/HawkularClient/and_Operations_client_Should_work_initializing_with_URI.json +9 -0
- data/spec/vcr_cassettes/HawkularClient/and_URIs_as_input/Should_work_with_URI.yml +77 -20
- data/spec/vcr_cassettes/HawkularClient/and_URIs_as_input/Should_work_with_URI_on_metrics_client.yml +3 -3
- data/spec/vcr_cassettes/Inventory/Connection/Should_err_on_bad_credentials.yml +42 -0
- data/spec/vcr_cassettes/Inventory/Tenants/Should_Get_Tenant_For_Explicit_Credentials.yml +59 -12
- data/spec/vcr_cassettes/Inventory/Tenants/Should_Get_Tenant_For_Implicit_Credentials.yml +59 -12
- data/spec/vcr_cassettes/Inventory/{Helpers → inventory_0_17/Helpers}/create_url.yml +9 -7
- data/spec/vcr_cassettes/Inventory/{Templates/Should_list_feeds_when_using_SSL_without_certificate.yml → inventory_0_17/Helpers/get_feeds.yml} +23 -21
- data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Client_should_listen_on_various_inventory_events.json +47 -0
- data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Client_should_listen_on_various_inventory_events.yml +48 -40
- data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Helpers/generate_some_events_for_websocket.yml +397 -0
- data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_List_datasources_with_no_props.yml +129 -0
- data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_create_a_feed.yml +13 -10
- data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_create_a_feed_again.yml +40 -29
- data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_create_a_nested_resource_and_metric_on_it.yml +193 -237
- data/spec/vcr_cassettes/Inventory/{Templates/Should_create_and_get_a_resource.yml → inventory_0_17/Templates/Should_create_a_resource.yml} +86 -172
- data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_create_a_resource_with_metric.yml +296 -158
- data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_create_a_resourcetype.yml +38 -29
- data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_create_and_delete_feed.yml +42 -27
- data/spec/vcr_cassettes/Inventory/{Templates/Should_create_a_resource.yml → inventory_0_17/Templates/Should_create_and_get_a_resource.yml} +109 -89
- data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_list_URLs.yml +20 -17
- data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_list_WildFlys.yml +19 -12
- data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_WildFlys_with_props.yml +131 -0
- data/spec/vcr_cassettes/Inventory/{Helpers/get_feeds.yml → inventory_0_17/Templates/Should_list_all_the_resource_types.yml} +14 -11
- data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_children_of_WildFly.yml +315 -0
- data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_list_children_of_nested_resource.yml +45 -30
- data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_list_feeds.yml +16 -10
- data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_feeds_when_using_SSL_without_certificate.yml +60 -0
- data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_heap_metrics_for_WildFlys.yml +935 -0
- data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_metrics_for_WildFlys.yml +357 -0
- data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_metrics_of_given_metric_type.yml +122 -0
- data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_metrics_of_given_resource_type.yml +292 -0
- data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_operation_definitions_of_given_resource.yml +235 -0
- data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_operation_definitions_of_given_resource_type.yml +121 -0
- data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_recursive_children_of_WildFly.yml +1099 -0
- data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_relationships_of_WildFly.yml +377 -0
- data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_list_resources_for_feed.yml +19 -9
- data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_list_types_with_bad_feed.yml +10 -8
- data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_types_with_feed.yml +164 -0
- data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_not_find_an_unknown_resource.yml +12 -10
- data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_return_config_data_of_given_nested_resource.yml +17 -11
- data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_return_config_data_of_given_resource.yml +66 -0
- data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_return_the_version.yml +48 -0
- data/spec/vcr_cassettes/Metric_ID_with_special_characters/Get_metric_definition_by_id.yml +49 -0
- data/spec/vcr_cassettes/Metric_ID_with_special_characters/Retrieve_metric_rate_points.yml +88 -0
- data/spec/vcr_cassettes/Metric_ID_with_special_characters/Should_create_Availability_definition.yml +97 -0
- data/spec/vcr_cassettes/Metric_ID_with_special_characters/Should_create_Counter_definition.yml +97 -0
- data/spec/vcr_cassettes/Metric_ID_with_special_characters/Should_create_gauge_definition.yml +97 -0
- data/spec/vcr_cassettes/Metric_ID_with_special_characters/Should_push_metric_data_to_existing_gauge.yml +48 -0
- data/spec/vcr_cassettes/Metric_ID_with_special_characters/Should_update_tags_for_Availability_definition.yml +140 -0
- data/spec/vcr_cassettes/Metric_ID_with_special_characters/Should_update_tags_for_gauge_definition.yml +140 -0
- data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Availability_metrics/Should_create_Availability_definition_using_MetricDefinition_parameter.yml +95 -0
- data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Availability_metrics/Should_create_and_return_Availability_using_Hash_parameter.yml +95 -0
- data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Availability_metrics/Should_group_contiguous_values.yml +93 -0
- data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Availability_metrics/Should_push_metric_data_to_non-existing_Availability.yml +138 -0
- data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Availability_metrics/Should_update_tags_for_Availability_definition.yml +230 -0
- data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Counter_metrics/Should_create_and_return_counter_using_Hash_parameter.yml +95 -0
- data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Counter_metrics/Should_create_counter_definition_using_MetricDefinition_parameter.yml +95 -0
- data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml +230 -0
- data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_with_limit_and_order.yml +314 -0
- data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_existing_counter.yml +269 -0
- data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_non-existing_counter.yml +138 -0
- data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_Hash.yml +95 -0
- data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_MetricDefinition.yml +95 -0
- data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_existing_gauge.yml +269 -0
- data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_non-existing_gauge.yml +138 -0
- data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Gauge_metrics/Should_return_periods.yml +93 -0
- data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Gauge_metrics/Should_update_tags_for_gauge_definition.yml +230 -0
- data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml +330 -0
- data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml +300 -0
- data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request_of_a_single_type.yml +273 -0
- data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/No_Tenant/Should_fail.yml +48 -0
- data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Simple/Should_be_Cool.yml +48 -0
- data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Status/Should_return_the_version.yml +42 -0
- data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Tenants/Should_create_and_return_tenant.yml +95 -0
- data/spec/vcr_cassettes/{Availability_metrics → Metrics/metrics_0_8_0/Templates/Availability_metrics}/Should_create_Availability_definition_using_MetricDefinition_parameter.yml +5 -9
- 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
- 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
- data/spec/vcr_cassettes/{Availability_metrics → Metrics/metrics_0_8_0/Templates/Availability_metrics}/Should_update_tags_for_Availability_definition.yml +11 -21
- 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
- data/spec/vcr_cassettes/{Counter_metrics → Metrics/metrics_0_8_0/Templates/Counter_metrics}/Should_create_counter_definition_using_MetricDefinition_parameter.yml +5 -9
- data/spec/vcr_cassettes/Metrics/metrics_0_8_0/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml +200 -0
- data/spec/vcr_cassettes/{Counter_metrics → Metrics/metrics_0_8_0/Templates/Counter_metrics}/Should_push_metric_data_to_existing_counter.yml +16 -28
- 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
- data/spec/vcr_cassettes/{Gauge_metrics → Metrics/metrics_0_8_0/Templates/Gauge_metrics}/Should_create_gauge_definition_using_Hash.yml +5 -9
- data/spec/vcr_cassettes/{Gauge_metrics → Metrics/metrics_0_8_0/Templates/Gauge_metrics}/Should_create_gauge_definition_using_MetricDefinition.yml +6 -10
- data/spec/vcr_cassettes/{Gauge_metrics → Metrics/metrics_0_8_0/Templates/Gauge_metrics}/Should_push_metric_data_to_existing_gauge.yml +18 -30
- 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
- data/spec/vcr_cassettes/{Gauge_metrics → Metrics/metrics_0_8_0/Templates/Gauge_metrics}/Should_return_periods.yml +6 -10
- data/spec/vcr_cassettes/{Gauge_metrics → Metrics/metrics_0_8_0/Templates/Gauge_metrics}/Should_update_tags_for_gauge_definition.yml +11 -21
- data/spec/vcr_cassettes/{Mixed_metrics → Metrics/metrics_0_8_0/Templates/Mixed_metrics}/Should_send_mixed_metric_request.yml +19 -33
- 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
- data/spec/vcr_cassettes/Metrics/metrics_0_8_0/Templates/Simple/Should_be_Cool.yml +82 -0
- data/spec/vcr_cassettes/Metrics/{Status.yml → metrics_0_8_0/Templates/Status/Should_return_the_version.yml} +6 -8
- data/spec/vcr_cassettes/{Tenants → Metrics/metrics_0_8_0/Templates/Tenants}/Should_create_and_return_tenant.yml +12 -8
- data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Availability_metrics/Should_create_Availability_definition_using_MetricDefinition_parameter.yml +95 -0
- data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Availability_metrics/Should_create_and_return_Availability_using_Hash_parameter.yml +95 -0
- data/spec/vcr_cassettes/{Availability_metrics → Metrics/metrics_services/Templates/Availability_metrics}/Should_group_contiguous_values.yml +7 -7
- data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Availability_metrics/Should_push_metric_data_to_non-existing_Availability.yml +138 -0
- data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Availability_metrics/Should_update_tags_for_Availability_definition.yml +230 -0
- data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Counter_metrics/Should_create_and_return_counter_using_Hash_parameter.yml +95 -0
- data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Counter_metrics/Should_create_counter_definition_using_MetricDefinition_parameter.yml +95 -0
- data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml +230 -0
- data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Counter_metrics/Should_get_metrics_with_limit_and_order.yml +314 -0
- 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
- data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Counter_metrics/Should_push_metric_data_to_non-existing_counter.yml +138 -0
- data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Gauge_metrics/Should_create_gauge_definition_using_Hash.yml +95 -0
- data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Gauge_metrics/Should_create_gauge_definition_using_MetricDefinition.yml +95 -0
- data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Gauge_metrics/Should_push_metric_data_to_existing_gauge.yml +269 -0
- data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Gauge_metrics/Should_push_metric_data_to_non-existing_gauge.yml +138 -0
- data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Gauge_metrics/Should_return_periods.yml +93 -0
- data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Gauge_metrics/Should_return_platform_memory.yml +48 -0
- data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Gauge_metrics/Should_return_platform_memory_def.yml +49 -0
- data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Gauge_metrics/Should_update_tags_for_gauge_definition.yml +230 -0
- data/spec/vcr_cassettes/{Mixed_metrics → Metrics/metrics_services/Templates/Mixed_metrics}/Should_requests_raw_data_for_multiple_metrics.yml +25 -25
- data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml +300 -0
- data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Mixed_metrics/Should_send_mixed_metric_request_of_a_single_type.yml +273 -0
- data/spec/vcr_cassettes/{No_Tenant → Metrics/metrics_services/Templates/No_Tenant}/Should_fail.yml +16 -10
- data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Simple/Should_be_Cool.yml +48 -0
- data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Status/Should_return_the_version.yml +42 -0
- data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Tenants/Should_create_and_return_tenant.yml +95 -0
- data/spec/vcr_cassettes/{Counter_metrics → New_API_Counter_metrics}/Should_get_metrics_as_bucketed_results.yml +73 -33
- data/spec/vcr_cassettes/New_API_Mixed_metrics/Should_send_mixed_metric_request.yml +300 -0
- data/spec/vcr_cassettes/Operation/Helpers/get_feed.yml +17 -11
- data/spec/vcr_cassettes/Operation/Helpers/get_tenant.yml +13 -11
- data/spec/vcr_cassettes/Operation/Operation/Add_JDBC_driver_should_add_the_driver.json +2 -2
- data/spec/vcr_cassettes/Operation/Operation/Add_datasource_should_be_doable.json +2 -2
- data/spec/vcr_cassettes/Operation/Operation/Add_deployment_should_be_doable.json +2 -2
- data/spec/vcr_cassettes/Operation/Operation/Redeploy_can_be_run_multiple_times_in_parallel.json +4 -4
- data/spec/vcr_cassettes/Operation/Operation/Redeploy_should_be_performed_and_eventually_respond_with_success.json +2 -2
- data/spec/vcr_cassettes/Operation/Operation/Redeploy_should_not_be_performed_if_resource_path_is_wrong.json +2 -2
- data/spec/vcr_cassettes/Operation/Operation/Remove_JDBC_driver_should_be_performed_and_eventually_respond_with_success.json +2 -2
- data/spec/vcr_cassettes/Operation/Operation/Remove_datasource_should_be_performed_and_eventually_respond_with_success.json +2 -2
- data/spec/vcr_cassettes/Operation/Operation/Remove_deployment_should_be_performed_and_eventually_respond_with_success.json +2 -2
- data/spec/vcr_cassettes/Operation/Operation/Undeploy_should_be_performed_and_eventually_respond_with_success.json +2 -2
- data/spec/vcr_cassettes/Operation/Websocket_connection/should_bail_with_hash_property_error_because_no_callback_at_all.json +9 -0
- data/spec/vcr_cassettes/Operation/Websocket_connection/should_bail_with_hash_property_error_because_no_error-callback_.json +9 -0
- data/spec/vcr_cassettes/Operation/Websocket_connection/should_run_into_error_callback_because_bad_hash_parameters.json +13 -0
- metadata +259 -139
- data/spec/vcr_cassettes/Gauge_metrics/Platform_mem.yml +0 -44
- data/spec/vcr_cassettes/Gauge_metrics/Platform_mem_def.yml +0 -45
- data/spec/vcr_cassettes/Inventory/Helpers/generate_some_events_for_websocket.yml +0 -4446
- data/spec/vcr_cassettes/Inventory/Templates/Client_should_listen_on_various_inventory_events.json +0 -47
- data/spec/vcr_cassettes/Inventory/Templates/Helpers/generate_some_events_for_websocket.yml +0 -542
- data/spec/vcr_cassettes/Inventory/Templates/Should_List_datasources_with_no_props.yml +0 -174
- data/spec/vcr_cassettes/Inventory/Templates/Should_list_WildFlys_with_props.yml +0 -115
- data/spec/vcr_cassettes/Inventory/Templates/Should_list_all_the_resource_types.yml +0 -126
- data/spec/vcr_cassettes/Inventory/Templates/Should_list_children_of_WildFly.yml +0 -308
- data/spec/vcr_cassettes/Inventory/Templates/Should_list_heap_metrics_for_WildFlys.yml +0 -712
- data/spec/vcr_cassettes/Inventory/Templates/Should_list_metrics_for_WildFlys.yml +0 -278
- data/spec/vcr_cassettes/Inventory/Templates/Should_list_metrics_of_given_metric_type.yml +0 -530
- data/spec/vcr_cassettes/Inventory/Templates/Should_list_metrics_of_given_resource_type.yml +0 -278
- data/spec/vcr_cassettes/Inventory/Templates/Should_list_operation_definitions_of_given_resource.yml +0 -185
- data/spec/vcr_cassettes/Inventory/Templates/Should_list_operation_definitions_of_given_resource_type.yml +0 -126
- data/spec/vcr_cassettes/Inventory/Templates/Should_list_recursive_children_of_WildFly.yml +0 -2369
- data/spec/vcr_cassettes/Inventory/Templates/Should_list_relationships_of_WildFly.yml +0 -415
- data/spec/vcr_cassettes/Inventory/Templates/Should_list_types_with_feed.yml +0 -124
- data/spec/vcr_cassettes/Inventory/Templates/Should_return_config_data_of_given_resource.yml +0 -57
- data/spec/vcr_cassettes/Simple/Should_be_Cool.yml +0 -208
- 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
|
|
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
|
-
-
|
|
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/
|
|
38
|
+
- http://localhost:8080/hawkular/inventory/entity/f;feed_may_exist
|
|
37
39
|
Date:
|
|
38
|
-
- Thu,
|
|
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
|
-
- '
|
|
46
|
+
- '135'
|
|
45
47
|
body:
|
|
46
|
-
encoding:
|
|
48
|
+
encoding: UTF-8
|
|
47
49
|
string: |-
|
|
48
50
|
{
|
|
49
|
-
"path" : "/t;
|
|
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,
|
|
56
|
+
recorded_at: Thu, 14 Jul 2016 16:23:44 GMT
|
|
54
57
|
- request:
|
|
55
58
|
method: post
|
|
56
|
-
uri: http://jdoe
|
|
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
|
-
-
|
|
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/
|
|
92
|
+
- http://localhost:8080/hawkular/inventory/entity/f;feed_may_exist/rt;rt-123
|
|
88
93
|
Date:
|
|
89
|
-
- Thu,
|
|
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
|
-
- '
|
|
100
|
+
- '162'
|
|
96
101
|
body:
|
|
97
|
-
encoding:
|
|
102
|
+
encoding: UTF-8
|
|
98
103
|
string: |-
|
|
99
104
|
{
|
|
100
|
-
"path" : "/t;
|
|
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,
|
|
111
|
+
recorded_at: Thu, 14 Jul 2016 16:23:44 GMT
|
|
106
112
|
- request:
|
|
107
113
|
method: get
|
|
108
|
-
uri: http://jdoe
|
|
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
|
-
-
|
|
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,
|
|
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
|
-
- '
|
|
151
|
+
- '162'
|
|
144
152
|
body:
|
|
145
|
-
encoding:
|
|
153
|
+
encoding: UTF-8
|
|
146
154
|
string: |-
|
|
147
155
|
{
|
|
148
|
-
"path" : "/t;
|
|
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,
|
|
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
|
|
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
|
-
-
|
|
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/
|
|
38
|
+
- http://localhost:8080/hawkular/inventory/entity/f;feed_1123sdn
|
|
37
39
|
Date:
|
|
38
|
-
- Thu,
|
|
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
|
-
- '
|
|
46
|
+
- '131'
|
|
45
47
|
body:
|
|
46
|
-
encoding:
|
|
48
|
+
encoding: UTF-8
|
|
47
49
|
string: |-
|
|
48
50
|
{
|
|
49
|
-
"path" : "/t;
|
|
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,
|
|
56
|
+
recorded_at: Thu, 14 Jul 2016 16:23:43 GMT
|
|
54
57
|
- request:
|
|
55
58
|
method: delete
|
|
56
|
-
uri: http://jdoe
|
|
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
|
-
-
|
|
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,
|
|
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,
|
|
95
|
+
recorded_at: Thu, 14 Jul 2016 16:23:44 GMT
|
|
91
96
|
- request:
|
|
92
97
|
method: get
|
|
93
|
-
uri: http://jdoe
|
|
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
|
-
-
|
|
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,
|
|
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
|
-
- '
|
|
137
|
+
- '536'
|
|
131
138
|
Link:
|
|
132
|
-
- <http://localhost:8080/hawkular/inventory/
|
|
139
|
+
- <http://localhost:8080/hawkular/inventory/traversal/type=f>; rel="current"
|
|
133
140
|
body:
|
|
134
|
-
encoding:
|
|
141
|
+
encoding: UTF-8
|
|
135
142
|
string: |-
|
|
136
143
|
[ {
|
|
137
|
-
"path" : "/t;
|
|
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;
|
|
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,
|
|
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
|
|
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
|
-
-
|
|
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,
|
|
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
|
-
- '
|
|
44
|
+
- '663'
|
|
43
45
|
body:
|
|
44
|
-
encoding:
|
|
46
|
+
encoding: UTF-8
|
|
45
47
|
string: |-
|
|
46
48
|
{
|
|
47
|
-
"errorMsg" : "Feed with id 'Feed[path='/t;
|
|
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" : [ "
|
|
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,
|
|
67
|
+
recorded_at: Thu, 14 Jul 2016 16:23:46 GMT
|
|
66
68
|
- request:
|
|
67
69
|
method: get
|
|
68
|
-
uri: http://jdoe
|
|
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
|
-
-
|
|
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,
|
|
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
|
-
- '
|
|
107
|
+
- '223'
|
|
104
108
|
body:
|
|
105
|
-
encoding:
|
|
109
|
+
encoding: UTF-8
|
|
106
110
|
string: |-
|
|
107
111
|
{
|
|
108
|
-
"path" : "/t;
|
|
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,
|
|
120
|
+
recorded_at: Thu, 14 Jul 2016 16:23:46 GMT
|
|
113
121
|
- request:
|
|
114
122
|
method: post
|
|
115
|
-
uri: http://jdoe
|
|
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
|
-
-
|
|
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,
|
|
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:
|
|
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,
|
|
171
|
+
recorded_at: Thu, 14 Jul 2016 16:23:46 GMT
|
|
162
172
|
- request:
|
|
163
173
|
method: get
|
|
164
|
-
uri: http://jdoe
|
|
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
|
-
-
|
|
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,
|
|
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
|
-
- '
|
|
211
|
+
- '162'
|
|
200
212
|
body:
|
|
201
|
-
encoding:
|
|
213
|
+
encoding: UTF-8
|
|
202
214
|
string: |-
|
|
203
215
|
{
|
|
204
|
-
"path" : "/t;
|
|
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,
|
|
222
|
+
recorded_at: Thu, 14 Jul 2016 16:23:46 GMT
|
|
210
223
|
- request:
|
|
211
224
|
method: post
|
|
212
|
-
uri: http://jdoe
|
|
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":"
|
|
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
|
-
-
|
|
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
|
-
- '
|
|
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/
|
|
258
|
+
- http://localhost:8080/hawkular/inventory/entity/f;feed_may_exist/r;r125
|
|
244
259
|
Date:
|
|
245
|
-
- Thu,
|
|
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
|
-
- '
|
|
266
|
+
- '386'
|
|
252
267
|
body:
|
|
253
|
-
encoding:
|
|
268
|
+
encoding: UTF-8
|
|
254
269
|
string: |-
|
|
255
270
|
{
|
|
256
|
-
"path" : "/t;
|
|
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
|
-
"
|
|
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,
|
|
286
|
+
recorded_at: Thu, 14 Jul 2016 16:23:46 GMT
|
|
270
287
|
- request:
|
|
271
288
|
method: get
|
|
272
|
-
uri: http://jdoe
|
|
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
|
-
-
|
|
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,
|
|
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
|
-
- '
|
|
326
|
+
- '452'
|
|
308
327
|
body:
|
|
309
|
-
encoding:
|
|
328
|
+
encoding: UTF-8
|
|
310
329
|
string: |-
|
|
311
330
|
{
|
|
312
|
-
"path" : "/t;
|
|
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
|
-
"
|
|
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,
|
|
347
|
+
recorded_at: Thu, 14 Jul 2016 16:23:47 GMT
|
|
326
348
|
- request:
|
|
327
349
|
method: get
|
|
328
|
-
uri: http://jdoe
|
|
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
|
-
-
|
|
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:
|
|
344
|
-
message:
|
|
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,
|
|
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
|
-
- '
|
|
387
|
+
- '300'
|
|
364
388
|
body:
|
|
365
|
-
encoding:
|
|
389
|
+
encoding: UTF-8
|
|
366
390
|
string: |-
|
|
367
391
|
{
|
|
368
|
-
"
|
|
369
|
-
"
|
|
370
|
-
"
|
|
371
|
-
"
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
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,
|
|
401
|
+
recorded_at: Thu, 14 Jul 2016 16:23:47 GMT
|
|
382
402
|
recorded_with: VCR 3.0.1
|