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
|
@@ -8,15 +8,17 @@ http_interactions:
|
|
|
8
8
|
string: '{"url":"http://bsd.de"}'
|
|
9
9
|
headers:
|
|
10
10
|
Accept:
|
|
11
|
-
- "
|
|
11
|
+
- "*/*"
|
|
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
|
- '23'
|
|
18
|
-
User-Agent:
|
|
19
|
-
- Ruby
|
|
20
22
|
response:
|
|
21
23
|
status:
|
|
22
24
|
code: 201
|
|
@@ -33,9 +35,9 @@ http_interactions:
|
|
|
33
35
|
Pragma:
|
|
34
36
|
- no-cache
|
|
35
37
|
Location:
|
|
36
|
-
- http://127.0.0.1:8080/hawkular/inventory/test/resources/536cc3ede5769b60a49774425aedba24
|
|
38
|
+
- http://127.0.0.1:8080/hawkular/inventory/deprecated/test/resources/536cc3ede5769b60a49774425aedba24
|
|
37
39
|
Date:
|
|
38
|
-
- Thu,
|
|
40
|
+
- Thu, 14 Jul 2016 16:23:37 GMT
|
|
39
41
|
Connection:
|
|
40
42
|
- keep-alive
|
|
41
43
|
Content-Length:
|
|
@@ -44,5 +46,5 @@ http_interactions:
|
|
|
44
46
|
encoding: UTF-8
|
|
45
47
|
string: ''
|
|
46
48
|
http_version:
|
|
47
|
-
recorded_at: Thu,
|
|
49
|
+
recorded_at: Thu, 14 Jul 2016 16:23:37 GMT
|
|
48
50
|
recorded_with: VCR 3.0.1
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
http_interactions:
|
|
3
3
|
- request:
|
|
4
4
|
method: get
|
|
5
|
-
uri:
|
|
5
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/traversal/type=f
|
|
6
6
|
body:
|
|
7
7
|
encoding: US-ASCII
|
|
8
8
|
string: ''
|
|
@@ -10,49 +10,51 @@ http_interactions:
|
|
|
10
10
|
Accept:
|
|
11
11
|
- application/json
|
|
12
12
|
Accept-Encoding:
|
|
13
|
-
-
|
|
13
|
+
- identity
|
|
14
|
+
User-Agent:
|
|
15
|
+
- hawkular-client-ruby
|
|
14
16
|
Hawkular-Tenant:
|
|
15
17
|
- hawkular
|
|
16
18
|
Content-Type:
|
|
17
19
|
- application/json
|
|
18
|
-
User-Agent:
|
|
19
|
-
- Ruby
|
|
20
20
|
response:
|
|
21
21
|
status:
|
|
22
22
|
code: 200
|
|
23
23
|
message: OK
|
|
24
24
|
headers:
|
|
25
|
-
Server:
|
|
26
|
-
- nginx/1.6.3
|
|
27
|
-
Date:
|
|
28
|
-
- Fri, 27 May 2016 17:17:09 GMT
|
|
29
|
-
Content-Type:
|
|
30
|
-
- application/json
|
|
31
|
-
Content-Length:
|
|
32
|
-
- '148'
|
|
33
|
-
Connection:
|
|
34
|
-
- keep-alive
|
|
35
25
|
Expires:
|
|
36
26
|
- '0'
|
|
37
27
|
Cache-Control:
|
|
38
28
|
- no-cache, no-store, must-revalidate
|
|
39
29
|
X-Powered-By:
|
|
40
30
|
- Undertow/1
|
|
31
|
+
Server:
|
|
32
|
+
- WildFly/10
|
|
41
33
|
Pragma:
|
|
42
34
|
- no-cache
|
|
35
|
+
Date:
|
|
36
|
+
- Thu, 14 Jul 2016 16:23:36 GMT
|
|
43
37
|
X-Total-Count:
|
|
44
38
|
- '1'
|
|
39
|
+
Connection:
|
|
40
|
+
- keep-alive
|
|
41
|
+
Content-Type:
|
|
42
|
+
- application/json
|
|
43
|
+
Content-Length:
|
|
44
|
+
- '267'
|
|
45
45
|
Link:
|
|
46
|
-
- <http://
|
|
47
|
-
Strict-Transport-Security:
|
|
48
|
-
- max-age=31536000
|
|
46
|
+
- <http://localhost:8080/hawkular/inventory/traversal/type=f>; rel="current"
|
|
49
47
|
body:
|
|
50
|
-
encoding:
|
|
48
|
+
encoding: UTF-8
|
|
51
49
|
string: |-
|
|
52
50
|
[ {
|
|
53
|
-
"path" : "/t;
|
|
54
|
-
"
|
|
51
|
+
"path" : "/t;hawkular/f;1e8450c5-ef31-4760-ac82-0295dd337ed7",
|
|
52
|
+
"properties" : {
|
|
53
|
+
"__identityHash" : "1529b824c466776d4f26aba71db7cb4788d0d"
|
|
54
|
+
},
|
|
55
|
+
"identityHash" : "1529b824c466776d4f26aba71db7cb4788d0d",
|
|
56
|
+
"id" : "1e8450c5-ef31-4760-ac82-0295dd337ed7"
|
|
55
57
|
} ]
|
|
56
58
|
http_version:
|
|
57
|
-
recorded_at:
|
|
59
|
+
recorded_at: Thu, 14 Jul 2016 16:23:36 GMT
|
|
58
60
|
recorded_with: VCR 3.0.1
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
[
|
|
2
|
+
[
|
|
3
|
+
{
|
|
4
|
+
"operation": "read",
|
|
5
|
+
"type": "text",
|
|
6
|
+
"data": "{\n \"path\" : \"/t;hawkular/f;<%= uuid_prefix %>-feed/r;<%= uuid_prefix %>-r126\",\n \"properties\" : {\n \"version\" : 1.0\n },\n \"name\" : \"My Resource 1\",\n \"identityHash\" : \"97b5e40adef778ab8346c6f94fe54fa76033\",\n \"type\" : {\n \"path\" : \"/t;hawkular/f;<%= uuid_prefix %>-feed/rt;<%= uuid_prefix %>-rt-123\",\n \"name\" : \"ResourceType\",\n \"identityHash\" : \"e9c230bbc9d7c8403fe2cac5da66a8ff5b829\",\n \"id\" : \"<%= uuid_prefix %>-rt-123\"\n },\n \"id\" : \"<%= uuid_prefix %>-r126\"\n}"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"operation": "read",
|
|
10
|
+
"type": "text",
|
|
11
|
+
"data": "{\n \"path\" : \"/t;hawkular/f;<%= uuid_prefix %>-feed/r;<%= uuid_prefix %>-r127\",\n \"properties\" : {\n \"version\" : 1.1\n },\n \"name\" : \"My Resource 2\",\n \"identityHash\" : \"ea33ef47915a14e7d645d639d6f8bc38c7172\",\n \"type\" : {\n \"path\" : \"/t;hawkular/f;<%= uuid_prefix %>-feed/rt;<%= uuid_prefix %>-rt-123\",\n \"name\" : \"ResourceType\",\n \"identityHash\" : \"e9c230bbc9d7c8403fe2cac5da66a8ff5b829\",\n \"id\" : \"<%= uuid_prefix %>-rt-123\"\n },\n \"id\" : \"<%= uuid_prefix %>-r127\"\n}"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"operation": "close"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
[
|
|
18
|
+
{
|
|
19
|
+
"operation": "read",
|
|
20
|
+
"type": "text",
|
|
21
|
+
"data": "{\n \"path\" : \"/t;hawkular/f;<%= uuid_prefix %>-feed\",\n \"properties\" : {\n \"__identityHash\" : \"1597c0dbd421b7267a3751a4b7871cb19646d4f\"\n },\n \"identityHash\" : \"1597c0dbd421b7267a3751a4b7871cb19646d4f\",\n \"id\" : \"<%= uuid_prefix %>-feed\"\n}"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"operation": "close"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
[
|
|
28
|
+
{
|
|
29
|
+
"operation": "read",
|
|
30
|
+
"type": "text",
|
|
31
|
+
"data": "{\n \"path\" : \"/t;hawkular/f;<%= uuid_prefix %>-feed/rt;<%= uuid_prefix %>-rt-123\",\n \"name\" : \"ResourceType\",\n \"identityHash\" : \"e9c230bbc9d7c8403fe2cac5da66a8ff5b829\",\n \"id\" : \"<%= uuid_prefix %>-rt-123\"\n}"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"operation": "close"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
[
|
|
38
|
+
{
|
|
39
|
+
"operation": "read",
|
|
40
|
+
"type": "text",
|
|
41
|
+
"data": "{\n \"path\" : \"/t;hawkular/f;<%= uuid_prefix %>-feed\",\n \"identityHash\" : \"23c0965c645ea9a9ff8a68c9332d3b64058a52\",\n \"id\" : \"<%= uuid_prefix %>-feed\"\n}"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"operation": "close"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
]
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
http_interactions:
|
|
3
3
|
- request:
|
|
4
4
|
method: get
|
|
5
|
-
uri: http://jdoe
|
|
5
|
+
uri: http://jdoe:<%= super_secret_password %>@localhost:8080/hawkular/inventory/tenant
|
|
6
6
|
body:
|
|
7
7
|
encoding: US-ASCII
|
|
8
8
|
string: ''
|
|
@@ -10,11 +10,13 @@ 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
|
-
User-Agent:
|
|
17
|
-
- Ruby
|
|
18
20
|
response:
|
|
19
21
|
status:
|
|
20
22
|
code: 200
|
|
@@ -31,25 +33,25 @@ http_interactions:
|
|
|
31
33
|
Pragma:
|
|
32
34
|
- no-cache
|
|
33
35
|
Date:
|
|
34
|
-
- Thu,
|
|
36
|
+
- Thu, 14 Jul 2016 16:23:47 GMT
|
|
35
37
|
Connection:
|
|
36
38
|
- keep-alive
|
|
37
39
|
Content-Type:
|
|
38
40
|
- application/json
|
|
39
41
|
Content-Length:
|
|
40
|
-
- '
|
|
42
|
+
- '49'
|
|
41
43
|
body:
|
|
42
|
-
encoding:
|
|
44
|
+
encoding: UTF-8
|
|
43
45
|
string: |-
|
|
44
46
|
{
|
|
45
|
-
"path" : "/t;
|
|
46
|
-
"id" : "
|
|
47
|
+
"path" : "/t;hawkular",
|
|
48
|
+
"id" : "hawkular"
|
|
47
49
|
}
|
|
48
50
|
http_version:
|
|
49
|
-
recorded_at: Thu,
|
|
51
|
+
recorded_at: Thu, 14 Jul 2016 16:23:47 GMT
|
|
50
52
|
- request:
|
|
51
53
|
method: get
|
|
52
|
-
uri: http://jdoe
|
|
54
|
+
uri: http://jdoe:<%= super_secret_password %>@localhost:8080/hawkular/inventory/tenant
|
|
53
55
|
body:
|
|
54
56
|
encoding: US-ASCII
|
|
55
57
|
string: ''
|
|
@@ -57,11 +59,13 @@ http_interactions:
|
|
|
57
59
|
Accept:
|
|
58
60
|
- application/json
|
|
59
61
|
Accept-Encoding:
|
|
60
|
-
-
|
|
62
|
+
- identity
|
|
63
|
+
User-Agent:
|
|
64
|
+
- hawkular-client-ruby
|
|
65
|
+
Hawkular-Tenant:
|
|
66
|
+
- hawkular
|
|
61
67
|
Content-Type:
|
|
62
68
|
- application/json
|
|
63
|
-
User-Agent:
|
|
64
|
-
- Ruby
|
|
65
69
|
response:
|
|
66
70
|
status:
|
|
67
71
|
code: 200
|
|
@@ -78,25 +82,25 @@ http_interactions:
|
|
|
78
82
|
Pragma:
|
|
79
83
|
- no-cache
|
|
80
84
|
Date:
|
|
81
|
-
- Thu,
|
|
85
|
+
- Thu, 14 Jul 2016 16:23:47 GMT
|
|
82
86
|
Connection:
|
|
83
87
|
- keep-alive
|
|
84
88
|
Content-Type:
|
|
85
89
|
- application/json
|
|
86
90
|
Content-Length:
|
|
87
|
-
- '
|
|
91
|
+
- '49'
|
|
88
92
|
body:
|
|
89
|
-
encoding:
|
|
93
|
+
encoding: UTF-8
|
|
90
94
|
string: |-
|
|
91
95
|
{
|
|
92
|
-
"path" : "/t;
|
|
93
|
-
"id" : "
|
|
96
|
+
"path" : "/t;hawkular",
|
|
97
|
+
"id" : "hawkular"
|
|
94
98
|
}
|
|
95
99
|
http_version:
|
|
96
|
-
recorded_at: Thu,
|
|
100
|
+
recorded_at: Thu, 14 Jul 2016 16:23:47 GMT
|
|
97
101
|
- request:
|
|
98
102
|
method: get
|
|
99
|
-
uri: http://jdoe
|
|
103
|
+
uri: http://jdoe:<%= super_secret_password %>@localhost:8080/hawkular/inventory/tenant
|
|
100
104
|
body:
|
|
101
105
|
encoding: US-ASCII
|
|
102
106
|
string: ''
|
|
@@ -104,11 +108,13 @@ http_interactions:
|
|
|
104
108
|
Accept:
|
|
105
109
|
- application/json
|
|
106
110
|
Accept-Encoding:
|
|
107
|
-
-
|
|
111
|
+
- identity
|
|
112
|
+
User-Agent:
|
|
113
|
+
- hawkular-client-ruby
|
|
114
|
+
Hawkular-Tenant:
|
|
115
|
+
- hawkular
|
|
108
116
|
Content-Type:
|
|
109
117
|
- application/json
|
|
110
|
-
User-Agent:
|
|
111
|
-
- Ruby
|
|
112
118
|
response:
|
|
113
119
|
status:
|
|
114
120
|
code: 200
|
|
@@ -125,25 +131,25 @@ http_interactions:
|
|
|
125
131
|
Pragma:
|
|
126
132
|
- no-cache
|
|
127
133
|
Date:
|
|
128
|
-
- Thu,
|
|
134
|
+
- Thu, 14 Jul 2016 16:23:47 GMT
|
|
129
135
|
Connection:
|
|
130
136
|
- keep-alive
|
|
131
137
|
Content-Type:
|
|
132
138
|
- application/json
|
|
133
139
|
Content-Length:
|
|
134
|
-
- '
|
|
140
|
+
- '49'
|
|
135
141
|
body:
|
|
136
|
-
encoding:
|
|
142
|
+
encoding: UTF-8
|
|
137
143
|
string: |-
|
|
138
144
|
{
|
|
139
|
-
"path" : "/t;
|
|
140
|
-
"id" : "
|
|
145
|
+
"path" : "/t;hawkular",
|
|
146
|
+
"id" : "hawkular"
|
|
141
147
|
}
|
|
142
148
|
http_version:
|
|
143
|
-
recorded_at: Thu,
|
|
149
|
+
recorded_at: Thu, 14 Jul 2016 16:23:47 GMT
|
|
144
150
|
- request:
|
|
145
151
|
method: get
|
|
146
|
-
uri: http://jdoe
|
|
152
|
+
uri: http://jdoe:<%= super_secret_password %>@localhost:8080/hawkular/inventory/tenant
|
|
147
153
|
body:
|
|
148
154
|
encoding: US-ASCII
|
|
149
155
|
string: ''
|
|
@@ -151,11 +157,13 @@ http_interactions:
|
|
|
151
157
|
Accept:
|
|
152
158
|
- application/json
|
|
153
159
|
Accept-Encoding:
|
|
154
|
-
-
|
|
160
|
+
- identity
|
|
161
|
+
User-Agent:
|
|
162
|
+
- hawkular-client-ruby
|
|
163
|
+
Hawkular-Tenant:
|
|
164
|
+
- hawkular
|
|
155
165
|
Content-Type:
|
|
156
166
|
- application/json
|
|
157
|
-
User-Agent:
|
|
158
|
-
- Ruby
|
|
159
167
|
response:
|
|
160
168
|
status:
|
|
161
169
|
code: 200
|
|
@@ -172,20 +180,20 @@ http_interactions:
|
|
|
172
180
|
Pragma:
|
|
173
181
|
- no-cache
|
|
174
182
|
Date:
|
|
175
|
-
- Thu,
|
|
183
|
+
- Thu, 14 Jul 2016 16:23:47 GMT
|
|
176
184
|
Connection:
|
|
177
185
|
- keep-alive
|
|
178
186
|
Content-Type:
|
|
179
187
|
- application/json
|
|
180
188
|
Content-Length:
|
|
181
|
-
- '
|
|
189
|
+
- '49'
|
|
182
190
|
body:
|
|
183
|
-
encoding:
|
|
191
|
+
encoding: UTF-8
|
|
184
192
|
string: |-
|
|
185
193
|
{
|
|
186
|
-
"path" : "/t;
|
|
187
|
-
"id" : "
|
|
194
|
+
"path" : "/t;hawkular",
|
|
195
|
+
"id" : "hawkular"
|
|
188
196
|
}
|
|
189
197
|
http_version:
|
|
190
|
-
recorded_at: Thu,
|
|
198
|
+
recorded_at: Thu, 14 Jul 2016 16:23:47 GMT
|
|
191
199
|
recorded_with: VCR 3.0.1
|
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/entity/feed
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: '{"properties":{},"id":"<%= uuid_prefix %>-feed","name":null,"outgoing":{},"incoming":{}}'
|
|
9
|
+
headers:
|
|
10
|
+
Accept:
|
|
11
|
+
- application/json
|
|
12
|
+
Accept-Encoding:
|
|
13
|
+
- identity
|
|
14
|
+
User-Agent:
|
|
15
|
+
- hawkular-client-ruby
|
|
16
|
+
Hawkular-Tenant:
|
|
17
|
+
- hawkular
|
|
18
|
+
Content-Type:
|
|
19
|
+
- application/json
|
|
20
|
+
Content-Length:
|
|
21
|
+
- '106'
|
|
22
|
+
response:
|
|
23
|
+
status:
|
|
24
|
+
code: 201
|
|
25
|
+
message: Created
|
|
26
|
+
headers:
|
|
27
|
+
Expires:
|
|
28
|
+
- '0'
|
|
29
|
+
Cache-Control:
|
|
30
|
+
- no-cache, no-store, must-revalidate
|
|
31
|
+
X-Powered-By:
|
|
32
|
+
- Undertow/1
|
|
33
|
+
Server:
|
|
34
|
+
- WildFly/10
|
|
35
|
+
Pragma:
|
|
36
|
+
- no-cache
|
|
37
|
+
Location:
|
|
38
|
+
- http://localhost:8080/hawkular/inventory/entity/f;<%= uuid_prefix %>-feed
|
|
39
|
+
Date:
|
|
40
|
+
- Thu, 14 Jul 2016 16:23:47 GMT
|
|
41
|
+
Connection:
|
|
42
|
+
- keep-alive
|
|
43
|
+
Content-Type:
|
|
44
|
+
- application/json
|
|
45
|
+
Content-Length:
|
|
46
|
+
- '187'
|
|
47
|
+
body:
|
|
48
|
+
encoding: UTF-8
|
|
49
|
+
string: |-
|
|
50
|
+
{
|
|
51
|
+
"path" : "/t;hawkular/f;<%= uuid_prefix %>-feed",
|
|
52
|
+
"identityHash" : "23c0965c645ea9a9ff8a68c9332d3b64058a52",
|
|
53
|
+
"id" : "<%= uuid_prefix %>-feed"
|
|
54
|
+
}
|
|
55
|
+
http_version:
|
|
56
|
+
recorded_at: Thu, 14 Jul 2016 16:23:47 GMT
|
|
57
|
+
- request:
|
|
58
|
+
method: post
|
|
59
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/entity/f;<%= uuid_prefix %>-feed/resourceType
|
|
60
|
+
body:
|
|
61
|
+
encoding: UTF-8
|
|
62
|
+
string: '{"properties":{},"id":"<%= uuid_prefix %>-rt-123","name":"ResourceType","outgoing":{},"incoming":{}}'
|
|
63
|
+
headers:
|
|
64
|
+
Accept:
|
|
65
|
+
- application/json
|
|
66
|
+
Accept-Encoding:
|
|
67
|
+
- identity
|
|
68
|
+
User-Agent:
|
|
69
|
+
- hawkular-client-ruby
|
|
70
|
+
Hawkular-Tenant:
|
|
71
|
+
- hawkular
|
|
72
|
+
Content-Type:
|
|
73
|
+
- application/json
|
|
74
|
+
Content-Length:
|
|
75
|
+
- '118'
|
|
76
|
+
response:
|
|
77
|
+
status:
|
|
78
|
+
code: 201
|
|
79
|
+
message: Created
|
|
80
|
+
headers:
|
|
81
|
+
Expires:
|
|
82
|
+
- '0'
|
|
83
|
+
Cache-Control:
|
|
84
|
+
- no-cache, no-store, must-revalidate
|
|
85
|
+
X-Powered-By:
|
|
86
|
+
- Undertow/1
|
|
87
|
+
Server:
|
|
88
|
+
- WildFly/10
|
|
89
|
+
Pragma:
|
|
90
|
+
- no-cache
|
|
91
|
+
Location:
|
|
92
|
+
- http://localhost:8080/hawkular/inventory/entity/f;<%= uuid_prefix %>-feed/rt;<%= uuid_prefix %>-rt-123
|
|
93
|
+
Date:
|
|
94
|
+
- Thu, 14 Jul 2016 16:23:47 GMT
|
|
95
|
+
Connection:
|
|
96
|
+
- keep-alive
|
|
97
|
+
Content-Type:
|
|
98
|
+
- application/json
|
|
99
|
+
Content-Length:
|
|
100
|
+
- '262'
|
|
101
|
+
body:
|
|
102
|
+
encoding: UTF-8
|
|
103
|
+
string: |-
|
|
104
|
+
{
|
|
105
|
+
"path" : "/t;hawkular/f;<%= uuid_prefix %>-feed/rt;<%= uuid_prefix %>-rt-123",
|
|
106
|
+
"name" : "ResourceType",
|
|
107
|
+
"identityHash" : "e9c230bbc9d7c8403fe2cac5da66a8ff5b829",
|
|
108
|
+
"id" : "<%= uuid_prefix %>-rt-123"
|
|
109
|
+
}
|
|
110
|
+
http_version:
|
|
111
|
+
recorded_at: Thu, 14 Jul 2016 16:23:47 GMT
|
|
112
|
+
- request:
|
|
113
|
+
method: get
|
|
114
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/entity/f;<%= uuid_prefix %>-feed/rt;<%= uuid_prefix %>-rt-123
|
|
115
|
+
body:
|
|
116
|
+
encoding: US-ASCII
|
|
117
|
+
string: ''
|
|
118
|
+
headers:
|
|
119
|
+
Accept:
|
|
120
|
+
- application/json
|
|
121
|
+
Accept-Encoding:
|
|
122
|
+
- identity
|
|
123
|
+
User-Agent:
|
|
124
|
+
- hawkular-client-ruby
|
|
125
|
+
Hawkular-Tenant:
|
|
126
|
+
- hawkular
|
|
127
|
+
Content-Type:
|
|
128
|
+
- application/json
|
|
129
|
+
response:
|
|
130
|
+
status:
|
|
131
|
+
code: 200
|
|
132
|
+
message: OK
|
|
133
|
+
headers:
|
|
134
|
+
Expires:
|
|
135
|
+
- '0'
|
|
136
|
+
Cache-Control:
|
|
137
|
+
- no-cache, no-store, must-revalidate
|
|
138
|
+
X-Powered-By:
|
|
139
|
+
- Undertow/1
|
|
140
|
+
Server:
|
|
141
|
+
- WildFly/10
|
|
142
|
+
Pragma:
|
|
143
|
+
- no-cache
|
|
144
|
+
Date:
|
|
145
|
+
- Thu, 14 Jul 2016 16:23:47 GMT
|
|
146
|
+
Connection:
|
|
147
|
+
- keep-alive
|
|
148
|
+
Content-Type:
|
|
149
|
+
- application/json
|
|
150
|
+
Content-Length:
|
|
151
|
+
- '262'
|
|
152
|
+
body:
|
|
153
|
+
encoding: UTF-8
|
|
154
|
+
string: |-
|
|
155
|
+
{
|
|
156
|
+
"path" : "/t;hawkular/f;<%= uuid_prefix %>-feed/rt;<%= uuid_prefix %>-rt-123",
|
|
157
|
+
"name" : "ResourceType",
|
|
158
|
+
"identityHash" : "e9c230bbc9d7c8403fe2cac5da66a8ff5b829",
|
|
159
|
+
"id" : "<%= uuid_prefix %>-rt-123"
|
|
160
|
+
}
|
|
161
|
+
http_version:
|
|
162
|
+
recorded_at: Thu, 14 Jul 2016 16:23:47 GMT
|
|
163
|
+
- request:
|
|
164
|
+
method: post
|
|
165
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/entity/f;<%= uuid_prefix %>-feed/resource
|
|
166
|
+
body:
|
|
167
|
+
encoding: UTF-8
|
|
168
|
+
string: '{"properties":{"version":1.0},"id":"<%= uuid_prefix %>-r126","name":"My
|
|
169
|
+
Resource 1","outgoing":{},"incoming":{},"resourceTypePath":"/t;hawkular/f;<%= uuid_prefix %>-feed/rt;<%= uuid_prefix %>-rt-123"}'
|
|
170
|
+
headers:
|
|
171
|
+
Accept:
|
|
172
|
+
- application/json
|
|
173
|
+
Accept-Encoding:
|
|
174
|
+
- identity
|
|
175
|
+
User-Agent:
|
|
176
|
+
- hawkular-client-ruby
|
|
177
|
+
Hawkular-Tenant:
|
|
178
|
+
- hawkular
|
|
179
|
+
Content-Type:
|
|
180
|
+
- application/json
|
|
181
|
+
Content-Length:
|
|
182
|
+
- '254'
|
|
183
|
+
response:
|
|
184
|
+
status:
|
|
185
|
+
code: 201
|
|
186
|
+
message: Created
|
|
187
|
+
headers:
|
|
188
|
+
Expires:
|
|
189
|
+
- '0'
|
|
190
|
+
Cache-Control:
|
|
191
|
+
- no-cache, no-store, must-revalidate
|
|
192
|
+
X-Powered-By:
|
|
193
|
+
- Undertow/1
|
|
194
|
+
Server:
|
|
195
|
+
- WildFly/10
|
|
196
|
+
Pragma:
|
|
197
|
+
- no-cache
|
|
198
|
+
Location:
|
|
199
|
+
- http://localhost:8080/hawkular/inventory/entity/f;<%= uuid_prefix %>-feed/r;<%= uuid_prefix %>-r126
|
|
200
|
+
Date:
|
|
201
|
+
- Thu, 14 Jul 2016 16:23:47 GMT
|
|
202
|
+
Connection:
|
|
203
|
+
- keep-alive
|
|
204
|
+
Content-Type:
|
|
205
|
+
- application/json
|
|
206
|
+
Content-Length:
|
|
207
|
+
- '586'
|
|
208
|
+
body:
|
|
209
|
+
encoding: UTF-8
|
|
210
|
+
string: |-
|
|
211
|
+
{
|
|
212
|
+
"path" : "/t;hawkular/f;<%= uuid_prefix %>-feed/r;<%= uuid_prefix %>-r126",
|
|
213
|
+
"properties" : {
|
|
214
|
+
"version" : 1.0
|
|
215
|
+
},
|
|
216
|
+
"name" : "My Resource 1",
|
|
217
|
+
"identityHash" : "97b5e40adef778ab8346c6f94fe54fa76033",
|
|
218
|
+
"type" : {
|
|
219
|
+
"path" : "/t;hawkular/f;<%= uuid_prefix %>-feed/rt;<%= uuid_prefix %>-rt-123",
|
|
220
|
+
"name" : "ResourceType",
|
|
221
|
+
"identityHash" : "e9c230bbc9d7c8403fe2cac5da66a8ff5b829",
|
|
222
|
+
"id" : "<%= uuid_prefix %>-rt-123"
|
|
223
|
+
},
|
|
224
|
+
"id" : "<%= uuid_prefix %>-r126"
|
|
225
|
+
}
|
|
226
|
+
http_version:
|
|
227
|
+
recorded_at: Thu, 14 Jul 2016 16:23:47 GMT
|
|
228
|
+
- request:
|
|
229
|
+
method: post
|
|
230
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/entity/f;<%= uuid_prefix %>-feed/resource
|
|
231
|
+
body:
|
|
232
|
+
encoding: UTF-8
|
|
233
|
+
string: '{"properties":{"version":1.1},"id":"<%= uuid_prefix %>-r127","name":"My
|
|
234
|
+
Resource 2","outgoing":{},"incoming":{},"resourceTypePath":"/t;hawkular/f;<%= uuid_prefix %>-feed/rt;<%= uuid_prefix %>-rt-123"}'
|
|
235
|
+
headers:
|
|
236
|
+
Accept:
|
|
237
|
+
- application/json
|
|
238
|
+
Accept-Encoding:
|
|
239
|
+
- identity
|
|
240
|
+
User-Agent:
|
|
241
|
+
- hawkular-client-ruby
|
|
242
|
+
Hawkular-Tenant:
|
|
243
|
+
- hawkular
|
|
244
|
+
Content-Type:
|
|
245
|
+
- application/json
|
|
246
|
+
Content-Length:
|
|
247
|
+
- '254'
|
|
248
|
+
response:
|
|
249
|
+
status:
|
|
250
|
+
code: 201
|
|
251
|
+
message: Created
|
|
252
|
+
headers:
|
|
253
|
+
Expires:
|
|
254
|
+
- '0'
|
|
255
|
+
Cache-Control:
|
|
256
|
+
- no-cache, no-store, must-revalidate
|
|
257
|
+
X-Powered-By:
|
|
258
|
+
- Undertow/1
|
|
259
|
+
Server:
|
|
260
|
+
- WildFly/10
|
|
261
|
+
Pragma:
|
|
262
|
+
- no-cache
|
|
263
|
+
Location:
|
|
264
|
+
- http://localhost:8080/hawkular/inventory/entity/f;<%= uuid_prefix %>-feed/r;<%= uuid_prefix %>-r127
|
|
265
|
+
Date:
|
|
266
|
+
- Thu, 14 Jul 2016 16:23:47 GMT
|
|
267
|
+
Connection:
|
|
268
|
+
- keep-alive
|
|
269
|
+
Content-Type:
|
|
270
|
+
- application/json
|
|
271
|
+
Content-Length:
|
|
272
|
+
- '587'
|
|
273
|
+
body:
|
|
274
|
+
encoding: UTF-8
|
|
275
|
+
string: |-
|
|
276
|
+
{
|
|
277
|
+
"path" : "/t;hawkular/f;<%= uuid_prefix %>-feed/r;<%= uuid_prefix %>-r127",
|
|
278
|
+
"properties" : {
|
|
279
|
+
"version" : 1.1
|
|
280
|
+
},
|
|
281
|
+
"name" : "My Resource 2",
|
|
282
|
+
"identityHash" : "ea33ef47915a14e7d645d639d6f8bc38c7172",
|
|
283
|
+
"type" : {
|
|
284
|
+
"path" : "/t;hawkular/f;<%= uuid_prefix %>-feed/rt;<%= uuid_prefix %>-rt-123",
|
|
285
|
+
"name" : "ResourceType",
|
|
286
|
+
"identityHash" : "e9c230bbc9d7c8403fe2cac5da66a8ff5b829",
|
|
287
|
+
"id" : "<%= uuid_prefix %>-rt-123"
|
|
288
|
+
},
|
|
289
|
+
"id" : "<%= uuid_prefix %>-r127"
|
|
290
|
+
}
|
|
291
|
+
http_version:
|
|
292
|
+
recorded_at: Thu, 14 Jul 2016 16:23:47 GMT
|
|
293
|
+
- request:
|
|
294
|
+
method: post
|
|
295
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/entity/f;<%= uuid_prefix %>-feed/resource
|
|
296
|
+
body:
|
|
297
|
+
encoding: UTF-8
|
|
298
|
+
string: '{"properties":{"version":1.2},"id":"<%= uuid_prefix %>-r128","name":"My
|
|
299
|
+
Resource 3","outgoing":{},"incoming":{},"resourceTypePath":"/t;hawkular/f;<%= uuid_prefix %>-feed/rt;<%= uuid_prefix %>-rt-123"}'
|
|
300
|
+
headers:
|
|
301
|
+
Accept:
|
|
302
|
+
- application/json
|
|
303
|
+
Accept-Encoding:
|
|
304
|
+
- identity
|
|
305
|
+
User-Agent:
|
|
306
|
+
- hawkular-client-ruby
|
|
307
|
+
Hawkular-Tenant:
|
|
308
|
+
- hawkular
|
|
309
|
+
Content-Type:
|
|
310
|
+
- application/json
|
|
311
|
+
Content-Length:
|
|
312
|
+
- '254'
|
|
313
|
+
response:
|
|
314
|
+
status:
|
|
315
|
+
code: 201
|
|
316
|
+
message: Created
|
|
317
|
+
headers:
|
|
318
|
+
Expires:
|
|
319
|
+
- '0'
|
|
320
|
+
Cache-Control:
|
|
321
|
+
- no-cache, no-store, must-revalidate
|
|
322
|
+
X-Powered-By:
|
|
323
|
+
- Undertow/1
|
|
324
|
+
Server:
|
|
325
|
+
- WildFly/10
|
|
326
|
+
Pragma:
|
|
327
|
+
- no-cache
|
|
328
|
+
Location:
|
|
329
|
+
- http://localhost:8080/hawkular/inventory/entity/f;<%= uuid_prefix %>-feed/r;<%= uuid_prefix %>-r128
|
|
330
|
+
Date:
|
|
331
|
+
- Thu, 14 Jul 2016 16:23:48 GMT
|
|
332
|
+
Connection:
|
|
333
|
+
- keep-alive
|
|
334
|
+
Content-Type:
|
|
335
|
+
- application/json
|
|
336
|
+
Content-Length:
|
|
337
|
+
- '589'
|
|
338
|
+
body:
|
|
339
|
+
encoding: UTF-8
|
|
340
|
+
string: |-
|
|
341
|
+
{
|
|
342
|
+
"path" : "/t;hawkular/f;<%= uuid_prefix %>-feed/r;<%= uuid_prefix %>-r128",
|
|
343
|
+
"properties" : {
|
|
344
|
+
"version" : 1.2
|
|
345
|
+
},
|
|
346
|
+
"name" : "My Resource 3",
|
|
347
|
+
"identityHash" : "e72792a8b2f0199c941ed3d0b54b66c4979ce22",
|
|
348
|
+
"type" : {
|
|
349
|
+
"path" : "/t;hawkular/f;<%= uuid_prefix %>-feed/rt;<%= uuid_prefix %>-rt-123",
|
|
350
|
+
"name" : "ResourceType",
|
|
351
|
+
"identityHash" : "e9c230bbc9d7c8403fe2cac5da66a8ff5b829",
|
|
352
|
+
"id" : "<%= uuid_prefix %>-rt-123"
|
|
353
|
+
},
|
|
354
|
+
"id" : "<%= uuid_prefix %>-r128"
|
|
355
|
+
}
|
|
356
|
+
http_version:
|
|
357
|
+
recorded_at: Thu, 14 Jul 2016 16:23:48 GMT
|
|
358
|
+
- request:
|
|
359
|
+
method: delete
|
|
360
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/entity/f;<%= uuid_prefix %>-feed
|
|
361
|
+
body:
|
|
362
|
+
encoding: US-ASCII
|
|
363
|
+
string: ''
|
|
364
|
+
headers:
|
|
365
|
+
Accept:
|
|
366
|
+
- application/json
|
|
367
|
+
Accept-Encoding:
|
|
368
|
+
- identity
|
|
369
|
+
User-Agent:
|
|
370
|
+
- hawkular-client-ruby
|
|
371
|
+
Hawkular-Tenant:
|
|
372
|
+
- hawkular
|
|
373
|
+
Content-Type:
|
|
374
|
+
- application/json
|
|
375
|
+
response:
|
|
376
|
+
status:
|
|
377
|
+
code: 204
|
|
378
|
+
message: No Content
|
|
379
|
+
headers:
|
|
380
|
+
Expires:
|
|
381
|
+
- '0'
|
|
382
|
+
Cache-Control:
|
|
383
|
+
- no-cache, no-store, must-revalidate
|
|
384
|
+
X-Powered-By:
|
|
385
|
+
- Undertow/1
|
|
386
|
+
Server:
|
|
387
|
+
- WildFly/10
|
|
388
|
+
Pragma:
|
|
389
|
+
- no-cache
|
|
390
|
+
Date:
|
|
391
|
+
- Thu, 14 Jul 2016 16:23:48 GMT
|
|
392
|
+
body:
|
|
393
|
+
encoding: UTF-8
|
|
394
|
+
string: ''
|
|
395
|
+
http_version:
|
|
396
|
+
recorded_at: Thu, 14 Jul 2016 16:23:48 GMT
|
|
397
|
+
recorded_with: VCR 3.0.1
|