From e10a63a5d2bac03d3436a9c2879c9bf5b500bf0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josejulio=20Mart=C3=ADnez?= Date: Wed, 12 Oct 2016 22:32:09 -0500 Subject: [PATCH] Removes metrics_0_16_0 context. Updates some VCRs that were using a mocked version. Fixes #159 --- .travis.yml | 1 - spec/integration/metric_spec.rb | 104 +++--- spec/spec_helper.rb | 4 +- .../Templates/Get_metric_definition_by_id.yml | 6 +- .../Templates/Retrieve_metric_rate_points.yml | 10 +- .../Should_create_Availability_definition.yml | 8 +- .../Should_create_Counter_definition.yml | 8 +- .../Should_create_gauge_definition.yml | 8 +- ...uld_push_metric_data_to_existing_gauge.yml | 8 +- ...pdate_tags_for_Availability_definition.yml | 12 +- ...hould_update_tags_for_gauge_definition.yml | 16 +- .../Templates/setup_client.yml | 44 +++ ...ition_using_MetricDefinition_parameter.yml | 99 ------ ...turn_Availability_using_Hash_parameter.yml | 99 ------ .../Should_group_contiguous_values.yml | 97 ------ ...tric_data_to_non-existing_Availability.yml | 144 -------- ...pdate_tags_for_Availability_definition.yml | 240 ------------- ...nd_return_counter_using_Hash_parameter.yml | 99 ------ ...ition_using_MetricDefinition_parameter.yml | 99 ------ ...Should_get_metrics_as_bucketed_results.yml | 240 ------------- ...hould_get_metrics_with_limit_and_order.yml | 328 ------------------ ...d_push_metric_data_to_existing_counter.yml | 281 --------------- ...sh_metric_data_to_non-existing_counter.yml | 144 -------- ...uld_create_gauge_definition_using_Hash.yml | 99 ------ ...auge_definition_using_MetricDefinition.yml | 99 ------ ...uld_push_metric_data_to_existing_gauge.yml | 281 --------------- ...push_metric_data_to_non-existing_gauge.yml | 144 -------- .../Gauge_metrics/Should_return_periods.yml | 97 ------ ...hould_update_tags_for_gauge_definition.yml | 240 ------------- ...requests_raw_data_for_multiple_metrics.yml | 326 ----------------- .../Should_send_mixed_metric_request.yml | 314 ----------------- ..._mixed_metric_request_of_a_single_type.yml | 285 --------------- .../Templates/No_Tenant/Should_fail.yml | 50 --- .../Templates/Simple/Should_be_Cool.yml | 48 --- .../Should_create_and_return_tenant.yml | 103 ------ .../Should_group_contiguous_values.yml | 53 ++- ...tric_data_to_non-existing_Availability.yml | 24 +- .../Availability_metrics/setup_client.yml | 44 +++ ...Should_get_metrics_as_bucketed_results.yml | 34 +- ...hould_get_metrics_with_limit_and_order.yml | 46 +-- ...d_push_metric_data_to_existing_counter.yml | 38 +- ...sh_metric_data_to_non-existing_counter.yml | 24 +- .../Counter_metrics/setup_client.yml | 44 +++ ...uld_push_metric_data_to_existing_gauge.yml | 38 +- ...push_metric_data_to_non-existing_gauge.yml | 24 +- .../Gauge_metrics/Should_return_periods.yml | 10 +- .../Should_return_platform_memory.yml | 73 +++- .../Should_return_platform_memory_def.yml | 75 +++- .../Templates/Gauge_metrics/setup_client.yml | 44 +++ ...ould_fetch_rate_stats_for_mixed_metric.yml | 66 ++-- .../Should_fetch_stats_for_mixed_metric.yml | 63 ++-- ...requests_raw_data_for_multiple_metrics.yml | 81 +++-- .../Should_send_mixed_metric_request.yml | 52 +-- ..._mixed_metric_request_of_a_single_type.yml | 54 +-- .../Templates/Mixed_metrics/setup_client.yml} | 6 +- .../Templates/No_Tenant/Should_fail.yml | 47 ++- .../Status/Should_return_the_version.yml | 47 ++- ...ld_create_string_definition_using_Hash.yml | 10 +- ...ring_definition_using_MetricDefinition.yml | 10 +- ...ld_push_metric_data_to_existing_string.yml | 28 +- ...ush_metric_data_to_non-existing_string.yml | 20 +- .../Templates/String_metrics/setup_client.yml | 44 +++ .../Templates/Tenants/setup_client.yml} | 10 +- .../Templates/setup_client.yml | 44 +++ ...ition_using_MetricDefinition_parameter.yml | 99 ------ ...turn_Availability_using_Hash_parameter.yml | 99 ------ .../Should_group_contiguous_values.yml | 97 ------ ...tric_data_to_non-existing_Availability.yml | 144 -------- ...pdate_tags_for_Availability_definition.yml | 240 ------------- ...nd_return_counter_using_Hash_parameter.yml | 99 ------ ...ition_using_MetricDefinition_parameter.yml | 99 ------ ...Should_get_metrics_as_bucketed_results.yml | 240 ------------- ...hould_get_metrics_with_limit_and_order.yml | 328 ------------------ ...d_push_metric_data_to_existing_counter.yml | 281 --------------- ...sh_metric_data_to_non-existing_counter.yml | 144 -------- ...uld_create_gauge_definition_using_Hash.yml | 99 ------ ...auge_definition_using_MetricDefinition.yml | 99 ------ ...uld_push_metric_data_to_existing_gauge.yml | 281 --------------- ...push_metric_data_to_non-existing_gauge.yml | 144 -------- .../Gauge_metrics/Should_return_periods.yml | 97 ------ ...hould_update_tags_for_gauge_definition.yml | 240 ------------- ...requests_raw_data_for_multiple_metrics.yml | 326 ----------------- .../Should_send_mixed_metric_request.yml | 314 ----------------- ..._mixed_metric_request_of_a_single_type.yml | 285 --------------- .../Templates/No_Tenant/Should_fail.yml | 50 --- .../Templates/Simple/Should_be_Cool.yml | 48 --- .../Should_create_and_return_tenant.yml | 99 ------ 87 files changed, 957 insertions(+), 8333 deletions(-) create mode 100644 spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/setup_client.yml delete mode 100644 spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_create_Availability_definition_using_MetricDefinition_parameter.yml delete mode 100644 spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_create_and_return_Availability_using_Hash_parameter.yml delete mode 100644 spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_group_contiguous_values.yml delete mode 100644 spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_push_metric_data_to_non-existing_Availability.yml delete mode 100644 spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_update_tags_for_Availability_definition.yml delete mode 100644 spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_create_and_return_counter_using_Hash_parameter.yml delete mode 100644 spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_create_counter_definition_using_MetricDefinition_parameter.yml delete mode 100644 spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml delete mode 100644 spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_with_limit_and_order.yml delete mode 100644 spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_existing_counter.yml delete mode 100644 spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_non-existing_counter.yml delete mode 100644 spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_Hash.yml delete mode 100644 spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_MetricDefinition.yml delete mode 100644 spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_existing_gauge.yml delete mode 100644 spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_non-existing_gauge.yml delete mode 100644 spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Gauge_metrics/Should_return_periods.yml delete mode 100644 spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Gauge_metrics/Should_update_tags_for_gauge_definition.yml delete mode 100644 spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml delete mode 100644 spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml delete mode 100644 spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request_of_a_single_type.yml delete mode 100644 spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/No_Tenant/Should_fail.yml delete mode 100644 spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Simple/Should_be_Cool.yml delete mode 100644 spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Tenants/Should_create_and_return_tenant.yml create mode 100644 spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Availability_metrics/setup_client.yml create mode 100644 spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/setup_client.yml create mode 100644 spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/setup_client.yml rename spec/vcr_cassettes/Metrics/NonSecure/{metrics_0_16_0/Templates/Status/Should_return_the_version.yml => metrics_services/Templates/Mixed_metrics/setup_client.yml} (83%) rename spec/vcr_cassettes/Metrics/NonSecure/{metrics_0_16_0 => metrics_services}/Templates/String_metrics/Should_create_string_definition_using_Hash.yml (91%) rename spec/vcr_cassettes/Metrics/NonSecure/{metrics_0_16_0 => metrics_services}/Templates/String_metrics/Should_create_string_definition_using_MetricDefinition.yml (91%) rename spec/vcr_cassettes/Metrics/NonSecure/{metrics_0_16_0 => metrics_services}/Templates/String_metrics/Should_push_metric_data_to_existing_string.yml (90%) rename spec/vcr_cassettes/Metrics/NonSecure/{metrics_0_16_0 => metrics_services}/Templates/String_metrics/Should_push_metric_data_to_non-existing_string.yml (82%) create mode 100644 spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/String_metrics/setup_client.yml rename spec/vcr_cassettes/Metrics/{Secure/metrics_0_16_0/Templates/Status/Should_return_the_version.yml => NonSecure/metrics_services/Templates/Tenants/setup_client.yml} (74%) create mode 100644 spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/setup_client.yml delete mode 100644 spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_create_Availability_definition_using_MetricDefinition_parameter.yml delete mode 100644 spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_create_and_return_Availability_using_Hash_parameter.yml delete mode 100644 spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_group_contiguous_values.yml delete mode 100644 spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_push_metric_data_to_non-existing_Availability.yml delete mode 100644 spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_update_tags_for_Availability_definition.yml delete mode 100644 spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_create_and_return_counter_using_Hash_parameter.yml delete mode 100644 spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_create_counter_definition_using_MetricDefinition_parameter.yml delete mode 100644 spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml delete mode 100644 spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_with_limit_and_order.yml delete mode 100644 spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_existing_counter.yml delete mode 100644 spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_non-existing_counter.yml delete mode 100644 spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_Hash.yml delete mode 100644 spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_MetricDefinition.yml delete mode 100644 spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_existing_gauge.yml delete mode 100644 spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_non-existing_gauge.yml delete mode 100644 spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_return_periods.yml delete mode 100644 spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_update_tags_for_gauge_definition.yml delete mode 100644 spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml delete mode 100644 spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml delete mode 100644 spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request_of_a_single_type.yml delete mode 100644 spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/No_Tenant/Should_fail.yml delete mode 100644 spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Simple/Should_be_Cool.yml delete mode 100644 spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Tenants/Should_create_and_return_tenant.yml diff --git a/.travis.yml b/.travis.yml index 3e092fd..978de3e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,6 @@ env: SKIP_SSL_WITHOUT_CERTIFICATE_TEST=1 \ SKIP_SECURE_CONTEXT=1 \ SKIP_V8_METRICS=1 \ - SKIP_SERVICES_METRICS=1 - RUN_ON_LIVE_SERVER=0 services: - docker diff --git a/spec/integration/metric_spec.rb b/spec/integration/metric_spec.rb index 160c624..ff72205 100644 --- a/spec/integration/metric_spec.rb +++ b/spec/integration/metric_spec.rb @@ -9,12 +9,10 @@ # time constants t4h = 4 * 60 * 60 * 1000 -v16_version_string = '0.16.0.Final' # test contexts v8_context = :metrics_0_8_0 services_context = :metrics_services -v16_context = :metrics_0_16_0 # ssl contexts SECURE_CONTEXT = :Secure @@ -26,15 +24,11 @@ security_contexts.each do |security_context| next if security_context == SECURE_CONTEXT && SKIP_SECURE_CONTEXT == '1' - [v8_context, services_context, v16_context].each do |metrics_context| + [v8_context, services_context].each do |metrics_context| if ENV['SKIP_V8_METRICS'] == '1' && metrics_context == v8_context puts 'skipping v8 metrics' next end - if ENV['SKIP_V16_METRICS'] == '1' && metrics_context == v16_context - puts 'skipping v16 metrics' - next - end if ENV['SKIP_SERVICES_METRICS'] == '1' && metrics_context == services_context puts 'skipping services metrics' next @@ -43,7 +37,6 @@ next if security_context == SECURE_CONTEXT && metrics_context == v8_context setup_options = { - mocked_version: metrics_context == :metrics_services ? nil : v16_version_string, type: security_context }.freeze @@ -92,12 +85,17 @@ end end - describe 'Tenants', run_for: [v8_context, services_context, v16_context] do + describe 'Tenants', run_for: [v8_context, services_context] do before(:all) do - if metrics_context == v8_context - setup_v8_client - else - setup_client(setup_options.merge admin_token: @admin_token) + options = setup_options.merge admin_token: @admin_token + record("Metrics/#{security_context}/#{metrics_context}", + options, + 'Tenants/setup_client') do + if metrics_context == v8_context + setup_v8_client + else + setup_client(options) + end end end @@ -109,7 +107,7 @@ end end - describe 'No Tenant', run_for: [services_context, v16_context] do + describe 'No Tenant', run_for: [services_context] do it 'Should fail' do setup_client_without_tenant(setup_options) begin @@ -122,16 +120,21 @@ end end - describe 'Mixed metrics', run_for: [v8_context, services_context, v16_context] do + describe 'Mixed metrics', run_for: [v8_context, services_context] do before(:all) do - if metrics_context == v8_context - setup_v8_client tenant: vcr_test_tenant - else - setup_client(setup_options) + options = setup_options.merge(tenant: vcr_test_tenant) + record("Metrics/#{security_context}/#{metrics_context}", + options, + 'Mixed_metrics/setup_client') do + if metrics_context == v8_context + setup_v8_client tenant: vcr_test_tenant + else + setup_client(setup_options) + end end end - it 'Should requests raw data for multiple metrics', :skip_auto_vcr, run_for: [services_context, v16_context] do + it 'Should requests raw data for multiple metrics', :skip_auto_vcr, run_for: [services_context] do id1 = SecureRandom.uuid id2 = SecureRandom.uuid id3 = SecureRandom.uuid @@ -284,10 +287,15 @@ describe 'Counter metrics' do before(:all) do @tenant = vcr_test_tenant - if metrics_context == v8_context - setup_v8_client tenant: @tenant - else - setup_client(setup_options.merge(tenant: @tenant)) + options = setup_options.merge(tenant: @tenant) + record("Metrics/#{security_context}/#{metrics_context}", + options, + 'Counter_metrics/setup_client') do + if metrics_context == v8_context + setup_v8_client tenant: @tenant + else + setup_client(setup_options.merge(tenant: @tenant)) + end end end @@ -337,7 +345,7 @@ end # limit and order were introduced in 0.11.0 => skipping for 0.8.0 - it 'Should get metrics with limit and order', run_for: [services_context, v16_context], skip_auto_vcr: true do + it 'Should get metrics with limit and order', run_for: [services_context], skip_auto_vcr: true do now = @client.now minus10 = now - 10 minus20 = now - 20 @@ -443,10 +451,15 @@ describe 'Availability metrics' do before(:all) do @tenant = vcr_test_tenant - if metrics_context == v8_context - setup_v8_client tenant: @tenant - else - setup_client(setup_options.merge(tenant: @tenant)) + options = setup_options.merge(tenant: @tenant) + record("Metrics/#{security_context}/#{metrics_context}", + options, + 'Availability_metrics/setup_client') do + if metrics_context == v8_context + setup_v8_client tenant: @tenant + else + setup_client(setup_options.merge(tenant: @tenant)) + end end end @@ -470,7 +483,7 @@ expect { @client.avail.get_data(@random_id, percentiles: 50) }.to raise_error(ArgumentError) end - it 'Should group contiguous values', :skip_auto_vcr, run_for: [services_context, v16_context] do + it 'Should group contiguous values', :skip_auto_vcr, run_for: [services_context] do now = @client.now minus10 = now - 10 minus20 = now - 20 @@ -517,15 +530,19 @@ let(:hawkular_mem_id) do "MI~R~[#{hawkular_feed_id}/platform~/OPERATING_SYSTEM=#{hawkular_feed_id}"\ - '_OperatingSystem/MEMORY=Memory]~MT~Total Memory' + '_OperatingSystem/MEMORY=Memory]~MT~Platform_Memory_Total Memory' end before(:all) do @tenant = vcr_test_tenant - if metrics_context == v8_context - setup_v8_client tenant: @tenant - else - setup_client(setup_options.merge(tenant: @tenant)) + record("Metrics/#{security_context}/#{metrics_context}", + setup_options.merge(tenant: @tenant), + 'Gauge_metrics/setup_client') do + if metrics_context == v8_context + setup_v8_client tenant: @tenant + else + setup_client(setup_options.merge(tenant: @tenant)) + end end end @@ -658,10 +675,15 @@ end end - describe 'String metrics', run_for: [v16_context] do - before(:all) do + describe 'String metrics', run_for: [services_context] do + before(:each) do @tenant = vcr_test_tenant - setup_client(setup_options.merge(tenant: @tenant)) + options = setup_options.merge(tenant: @tenant) + record("Metrics/#{security_context}/#{metrics_context}", + options, + 'String_metrics/setup_client') do + setup_client(options) + end end it 'Should create string definition using MetricDefinition' do @@ -722,7 +744,11 @@ context security_context do describe 'Metric ID with special characters' do before(:all) do - setup_client(type: security_context, tenant: vcr_test_tenant) + record("Metrics/#{security_context}/ID_with_special_characters", + { tenant: vcr_test_tenant }, + 'setup_client') do + setup_client(type: security_context, tenant: vcr_test_tenant) + end end around(:each) do |example| diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 3ea84a0..c59ce92 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -34,7 +34,7 @@ def setup_client_without_tenant(options = {}) options[:tenant] = nil mocked_version = options[:mocked_version] ::RSpec::Mocks.with_temporary_scope do - mocked_version.nil? ? mock_metrics_version : mock_metrics_version(mocked_version) + mock_metrics_version(mocked_version) unless mocked_version.nil? @client = Hawkular::Metrics::Client.new(entrypoint(options[:type], 'metrics'), credentials(options), options) return @client @@ -46,7 +46,7 @@ def setup_client(options = {}) options[:tenant] ||= 'hawkular' mocked_version = options[:mocked_version] ::RSpec::Mocks.with_temporary_scope do - mocked_version.nil? ? mock_metrics_version : mock_metrics_version(mocked_version) + mock_metrics_version(mocked_version) unless mocked_version.nil? @client = Hawkular::Metrics::Client.new(entrypoint(options[:type], 'metrics'), credentials(options), options) end diff --git a/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Get_metric_definition_by_id.yml b/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Get_metric_definition_by_id.yml index 12fb989..05a1d62 100644 --- a/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Get_metric_definition_by_id.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Get_metric_definition_by_id.yml @@ -35,7 +35,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:38 GMT + - Thu, 13 Oct 2016 03:10:06 GMT Connection: - keep-alive Content-Type: @@ -45,7 +45,7 @@ http_interactions: body: encoding: UTF-8 string: '{"id":"MI~R~[8b*}{''\\14#?/5-7%92e[-c9_.r1//;/74eddf/L=c~~]~MT~ * / - Met@ics~Aggre&? ated s Active\" Ses;ns","tags":{"name1":"value1","name2":"value2","name3":"value3","tag":"value"},"dataRetention":90,"type":"gauge","tenantId":"<%= vcr_test_tenant %>","minTimestamp":1471274438628,"maxTimestamp":1471274438628}' + Met@ics~Aggre&? ated s Active\" Ses;ns","tags":{"name1":"value1","name2":"value2","name3":"value3","tag":"value"},"dataRetention":90,"type":"gauge","tenantId":"<%= vcr_test_tenant %>","minTimestamp":1476328206273,"maxTimestamp":1476328206273}' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT + recorded_at: Thu, 13 Oct 2016 03:10:06 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Retrieve_metric_rate_points.yml b/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Retrieve_metric_rate_points.yml index 573ff9b..33d2432 100644 --- a/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Retrieve_metric_rate_points.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Retrieve_metric_rate_points.yml @@ -35,7 +35,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:38 GMT + - Thu, 13 Oct 2016 03:10:06 GMT Connection: - keep-alive Content-Type: @@ -45,9 +45,9 @@ http_interactions: body: encoding: UTF-8 string: '{"id":"MI~R~[8b*}{''\\14#?/5-7%92e[-c9_.r1//;/74eddf/L=c~~]~MT~ * / - Met@ics~Aggre&? ated s Active\" Ses;ns","tags":{"name1":"value1","name2":"value2","name3":"value3","tag":"value"},"dataRetention":90,"type":"gauge","tenantId":"<%= vcr_test_tenant %>","minTimestamp":1471274438628,"maxTimestamp":1471274438628}' + Met@ics~Aggre&? ated s Active\" Ses;ns","tags":{"name1":"value1","name2":"value2","name3":"value3","tag":"value"},"dataRetention":90,"type":"gauge","tenantId":"<%= vcr_test_tenant %>","minTimestamp":1476328206273,"maxTimestamp":1476328206273}' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT + recorded_at: Thu, 13 Oct 2016 03:10:06 GMT - request: method: get uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/AA~R~%5B8b*%7D%7B'%5C14%23%3F%2F5-7%2592%5Bd-c9_.r1%2F%2F%2F7;:4eddf%2FL=c~~%5D~MT~%20%20%25-Met@ics~Aggre&%3Fated%20%22%20Sess%7Bons/rate @@ -83,10 +83,10 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:38 GMT + - Thu, 13 Oct 2016 03:10:06 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT + recorded_at: Thu, 13 Oct 2016 03:10:06 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_create_Availability_definition.yml b/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_create_Availability_definition.yml index 0957443..51cea4b 100644 --- a/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_create_Availability_definition.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_create_Availability_definition.yml @@ -40,7 +40,7 @@ http_interactions: Location: - http://localhost:8080/hawkular/metrics/availability/AA~R~%5B8b*%7D%7B'%5C14%23%3F%2F5-7%2592%5Bd-c9_.r1%2F%2F%2F7;:4eddf%2FL=c~~%5D~MT~%20A%20%20*%20%20%25-Met@ics~Aggre&%3Fated%20%22%20Sess%7Bons Date: - - Mon, 15 Aug 2016 15:20:38 GMT + - Thu, 13 Oct 2016 03:10:06 GMT Connection: - keep-alive Content-Length: @@ -49,7 +49,7 @@ http_interactions: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT + recorded_at: Thu, 13 Oct 2016 03:10:06 GMT - request: method: get uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/AA~R~%5B8b*%7D%7B'%5C14%23%3F%2F5-7%2592%5Bd-c9_.r1%2F%2F%2F7;:4eddf%2FL=c~~%5D~MT~%20A%20%20*%20%20%25-Met@ics~Aggre&%3Fated%20%22%20Sess%7Bons @@ -85,7 +85,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:38 GMT + - Thu, 13 Oct 2016 03:10:06 GMT Connection: - keep-alive Content-Type: @@ -97,5 +97,5 @@ http_interactions: string: '{"id":"AA~R~[8b*}{''\\14#?/5-7%92[d-c9_.r1///7;:4eddf/L=c~~]~MT~ A * %-Met@ics~Aggre&?ated \" Sess{ons","tags":{"tag":"value"},"dataRetention":90,"type":"availability","tenantId":"<%= vcr_test_tenant %>"}' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT + recorded_at: Thu, 13 Oct 2016 03:10:06 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_create_Counter_definition.yml b/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_create_Counter_definition.yml index 8696f43..7499e2e 100644 --- a/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_create_Counter_definition.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_create_Counter_definition.yml @@ -40,7 +40,7 @@ http_interactions: Location: - http://localhost:8080/hawkular/metrics/counters/AA~R~%5B8b*%7D%7B'%5C14%23%3F%2F5-7%2592%5Bd-c9_.r1%2F%2F%2F7;:4eddf%2FL=c~~%5D~MT~%20%20%25-Met@ics~Aggre&%3Fated%20%22%20Sess%7Bons Date: - - Mon, 15 Aug 2016 15:20:38 GMT + - Thu, 13 Oct 2016 03:10:06 GMT Connection: - keep-alive Content-Length: @@ -49,7 +49,7 @@ http_interactions: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT + recorded_at: Thu, 13 Oct 2016 03:10:06 GMT - request: method: get uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/AA~R~%5B8b*%7D%7B'%5C14%23%3F%2F5-7%2592%5Bd-c9_.r1%2F%2F%2F7;:4eddf%2FL=c~~%5D~MT~%20%20%25-Met@ics~Aggre&%3Fated%20%22%20Sess%7Bons @@ -85,7 +85,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:38 GMT + - Thu, 13 Oct 2016 03:10:06 GMT Connection: - keep-alive Content-Type: @@ -97,5 +97,5 @@ http_interactions: string: '{"id":"AA~R~[8b*}{''\\14#?/5-7%92[d-c9_.r1///7;:4eddf/L=c~~]~MT~ %-Met@ics~Aggre&?ated \" Sess{ons","tags":{"tag":"value"},"dataRetention":90,"type":"counter","tenantId":"<%= vcr_test_tenant %>"}' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT + recorded_at: Thu, 13 Oct 2016 03:10:06 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_create_gauge_definition.yml b/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_create_gauge_definition.yml index 9f1ec81..45cddba 100644 --- a/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_create_gauge_definition.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_create_gauge_definition.yml @@ -40,7 +40,7 @@ http_interactions: Location: - http://localhost:8080/hawkular/metrics/gauges/MI~R~%5B8b*%7D%7B'%5C14%23%3F%2F5-7%2592e%5B-c9_.r1%2F%2F;%2F74eddf%2FL=c~~%5D~MT~%20%20%20%20*%20%20%2F%20Met@ics~Aggre&%3F%20ated%20s%20%20Active%22%20Ses;ns Date: - - Mon, 15 Aug 2016 15:20:38 GMT + - Thu, 13 Oct 2016 03:10:06 GMT Connection: - keep-alive Content-Length: @@ -49,7 +49,7 @@ http_interactions: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT + recorded_at: Thu, 13 Oct 2016 03:10:06 GMT - request: method: get uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/MI~R~%5B8b*%7D%7B'%5C14%23%3F%2F5-7%2592e%5B-c9_.r1%2F%2F;%2F74eddf%2FL=c~~%5D~MT~%20%20%20%20*%20%20%2F%20Met@ics~Aggre&%3F%20ated%20s%20%20Active%22%20Ses;ns @@ -85,7 +85,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:38 GMT + - Thu, 13 Oct 2016 03:10:06 GMT Connection: - keep-alive Content-Type: @@ -97,5 +97,5 @@ http_interactions: string: '{"id":"MI~R~[8b*}{''\\14#?/5-7%92e[-c9_.r1//;/74eddf/L=c~~]~MT~ * / Met@ics~Aggre&? ated s Active\" Ses;ns","tags":{"tag":"value"},"dataRetention":90,"type":"gauge","tenantId":"<%= vcr_test_tenant %>"}' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT + recorded_at: Thu, 13 Oct 2016 03:10:06 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_push_metric_data_to_existing_gauge.yml b/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_push_metric_data_to_existing_gauge.yml index c0fa1b0..07f1a41 100644 --- a/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_push_metric_data_to_existing_gauge.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_push_metric_data_to_existing_gauge.yml @@ -2,10 +2,10 @@ http_interactions: - request: method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/MI~R~%5B8b*%7D%7B'%5C14%23%3F%2F5-7%2592e%5B-c9_.r1%2F%2F;%2F74eddf%2FL=c~~%5D~MT~%20%20%20%20*%20%20%2F%20Met@ics~Aggre&%3F%20ated%20s%20%20Active%22%20Ses;ns/data + uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/MI~R~%5B8b*%7D%7B'%5C14%23%3F%2F5-7%2592e%5B-c9_.r1%2F%2F;%2F74eddf%2FL=c~~%5D~MT~%20%20%20%20*%20%20%2F%20Met@ics~Aggre&%3F%20ated%20s%20%20Active%22%20Ses;ns/raw body: encoding: UTF-8 - string: '[{"value":0.1,"tags":{"tagName":"myMin"},"timestamp":1471274438628},{"value":99.9,"tags":{"tagName":"myMax"},"timestamp":1471274438628}]' + string: '[{"value":0.1,"tags":{"tagName":"myMin"},"timestamp":1476328206273},{"value":99.9,"tags":{"tagName":"myMax"},"timestamp":1476328206273}]' headers: Accept: - application/json @@ -41,10 +41,10 @@ http_interactions: Content-Length: - '0' Date: - - Mon, 15 Aug 2016 15:20:38 GMT + - Thu, 13 Oct 2016 03:10:06 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT + recorded_at: Thu, 13 Oct 2016 03:10:06 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_update_tags_for_Availability_definition.yml b/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_update_tags_for_Availability_definition.yml index b89e18a..28b127e 100644 --- a/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_update_tags_for_Availability_definition.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_update_tags_for_Availability_definition.yml @@ -35,7 +35,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:38 GMT + - Thu, 13 Oct 2016 03:10:06 GMT Connection: - keep-alive Content-Type: @@ -47,7 +47,7 @@ http_interactions: string: '{"id":"AA~R~[8b*}{''\\14#?/5-7%92[d-c9_.r1///7;:4eddf/L=c~~]~MT~ A * %-Met@ics~Aggre&?ated \" Sess{ons","tags":{"tag":"value"},"dataRetention":90,"type":"availability","tenantId":"<%= vcr_test_tenant %>"}' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT + recorded_at: Thu, 13 Oct 2016 03:10:06 GMT - request: method: put uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/AA~R~%5B8b*%7D%7B'%5C14%23%3F%2F5-7%2592%5Bd-c9_.r1%2F%2F%2F7;:4eddf%2FL=c~~%5D~MT~%20A%20%20*%20%20%25-Met@ics~Aggre&%3Fated%20%22%20Sess%7Bons/tags @@ -89,12 +89,12 @@ http_interactions: Content-Length: - '0' Date: - - Mon, 15 Aug 2016 15:20:38 GMT + - Thu, 13 Oct 2016 03:10:06 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT + recorded_at: Thu, 13 Oct 2016 03:10:06 GMT - request: method: get uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/AA~R~%5B8b*%7D%7B'%5C14%23%3F%2F5-7%2592%5Bd-c9_.r1%2F%2F%2F7;:4eddf%2FL=c~~%5D~MT~%20A%20%20*%20%20%25-Met@ics~Aggre&%3Fated%20%22%20Sess%7Bons @@ -130,7 +130,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:38 GMT + - Thu, 13 Oct 2016 03:10:06 GMT Connection: - keep-alive Content-Type: @@ -142,5 +142,5 @@ http_interactions: string: '{"id":"AA~R~[8b*}{''\\14#?/5-7%92[d-c9_.r1///7;:4eddf/L=c~~]~MT~ A * %-Met@ics~Aggre&?ated \" Sess{ons","tags":{"name1":"value1","name2":"value2","name3":"value3","tag":"value"},"dataRetention":90,"type":"availability","tenantId":"<%= vcr_test_tenant %>"}' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT + recorded_at: Thu, 13 Oct 2016 03:10:06 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_update_tags_for_gauge_definition.yml b/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_update_tags_for_gauge_definition.yml index d8d8169..26ca2a0 100644 --- a/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_update_tags_for_gauge_definition.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_update_tags_for_gauge_definition.yml @@ -35,7 +35,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:38 GMT + - Thu, 13 Oct 2016 03:10:06 GMT Connection: - keep-alive Content-Type: @@ -45,9 +45,9 @@ http_interactions: body: encoding: UTF-8 string: '{"id":"MI~R~[8b*}{''\\14#?/5-7%92e[-c9_.r1//;/74eddf/L=c~~]~MT~ * / - Met@ics~Aggre&? ated s Active\" Ses;ns","tags":{"tag":"value"},"dataRetention":90,"type":"gauge","tenantId":"<%= vcr_test_tenant %>","minTimestamp":1471274438628,"maxTimestamp":1471274438628}' + Met@ics~Aggre&? ated s Active\" Ses;ns","tags":{"tag":"value"},"dataRetention":90,"type":"gauge","tenantId":"<%= vcr_test_tenant %>","minTimestamp":1476328206273,"maxTimestamp":1476328206273}' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT + recorded_at: Thu, 13 Oct 2016 03:10:06 GMT - request: method: put uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/MI~R~%5B8b*%7D%7B'%5C14%23%3F%2F5-7%2592e%5B-c9_.r1%2F%2F;%2F74eddf%2FL=c~~%5D~MT~%20%20%20%20*%20%20%2F%20Met@ics~Aggre&%3F%20ated%20s%20%20Active%22%20Ses;ns/tags @@ -89,12 +89,12 @@ http_interactions: Content-Length: - '0' Date: - - Mon, 15 Aug 2016 15:20:38 GMT + - Thu, 13 Oct 2016 03:10:06 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT + recorded_at: Thu, 13 Oct 2016 03:10:06 GMT - request: method: get uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/MI~R~%5B8b*%7D%7B'%5C14%23%3F%2F5-7%2592e%5B-c9_.r1%2F%2F;%2F74eddf%2FL=c~~%5D~MT~%20%20%20%20*%20%20%2F%20Met@ics~Aggre&%3F%20ated%20s%20%20Active%22%20Ses;ns @@ -130,7 +130,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:38 GMT + - Thu, 13 Oct 2016 03:10:06 GMT Connection: - keep-alive Content-Type: @@ -140,7 +140,7 @@ http_interactions: body: encoding: UTF-8 string: '{"id":"MI~R~[8b*}{''\\14#?/5-7%92e[-c9_.r1//;/74eddf/L=c~~]~MT~ * / - Met@ics~Aggre&? ated s Active\" Ses;ns","tags":{"name1":"value1","name2":"value2","name3":"value3","tag":"value"},"dataRetention":90,"type":"gauge","tenantId":"<%= vcr_test_tenant %>","minTimestamp":1471274438628,"maxTimestamp":1471274438628}' + Met@ics~Aggre&? ated s Active\" Ses;ns","tags":{"name1":"value1","name2":"value2","name3":"value3","tag":"value"},"dataRetention":90,"type":"gauge","tenantId":"<%= vcr_test_tenant %>","minTimestamp":1476328206273,"maxTimestamp":1476328206273}' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT + recorded_at: Thu, 13 Oct 2016 03:10:06 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/setup_client.yml b/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/setup_client.yml new file mode 100644 index 0000000..df3c21b --- /dev/null +++ b/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/setup_client.yml @@ -0,0 +1,44 @@ +--- +http_interactions: +- request: + method: get + uri: http://jdoe:password@localhost:8080/hawkular/metrics/status + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Accept-Encoding: + - identity + User-Agent: + - hawkular-client-ruby + Hawkular-Tenant: + - <%= tenant %> + Content-Type: + - application/json + Host: + - localhost:8080 + response: + status: + code: 200 + message: OK + headers: + Connection: + - keep-alive + X-Powered-By: + - Undertow/1 + Server: + - WildFly/10 + Content-Type: + - application/json + Content-Length: + - '133' + Date: + - Thu, 13 Oct 2016 03:10:06 GMT + body: + encoding: UTF-8 + string: '{"MetricsService":"STARTED","Implementation-Version":"0.20.1.Final","Built-From-Git-SHA1":"f23946235446d3425db31d262b47b4f950ddabb3"}' + http_version: + recorded_at: Thu, 13 Oct 2016 03:10:06 GMT +recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_create_Availability_definition_using_MetricDefinition_parameter.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_create_Availability_definition_using_MetricDefinition_parameter.yml deleted file mode 100644 index cada9ee..0000000 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_create_Availability_definition_using_MetricDefinition_parameter.yml +++ /dev/null @@ -1,99 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","dataRetention":90,"tags":{"tag":"value"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '87' - Host: - - localhost:8080 - response: - status: - code: 201 - message: Created - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Location: - - http://localhost:8080/hawkular/metrics/availability/<%= id %> - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Length: - - '0' - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '194' - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","tags":{"tag":"value"},"dataRetention":90,"type":"availability","tenantId":"<%= vcr_test_tenant %>"}' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_create_and_return_Availability_using_Hash_parameter.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_create_and_return_Availability_using_Hash_parameter.yml deleted file mode 100644 index 8513982..0000000 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_create_and_return_Availability_using_Hash_parameter.yml +++ /dev/null @@ -1,99 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","dataRetention":123,"tags":{"some":"value"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '89' - Host: - - localhost:8080 - response: - status: - code: 201 - message: Created - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Location: - - http://localhost:8080/hawkular/metrics/availability/<%= id %> - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Length: - - '0' - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '196' - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","tags":{"some":"value"},"dataRetention":123,"type":"availability","tenantId":"<%= vcr_test_tenant %>"}' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_group_contiguous_values.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_group_contiguous_values.yml deleted file mode 100644 index 0551114..0000000 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_group_contiguous_values.yml +++ /dev/null @@ -1,97 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/raw - body: - encoding: UTF-8 - string: '[{"timestamp":<%= minus50 %>,"value":"up"},{"timestamp":<%= minus40 %>,"value":"up"},{"timestamp":<%= minus30 %>,"value":"down"},{"timestamp":<%= minus20 %>,"value":"down"},{"timestamp":<%= minus10 %>,"value":"down"},{"timestamp":<%= now %>,"value":"up"}]' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '253' - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/raw/?distinct=true&order=ASC - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '126' - body: - encoding: UTF-8 - string: '[{"timestamp":<%= minus50 %>,"value":"up"},{"timestamp":<%= minus30 %>,"value":"down"},{"timestamp":<%= now %>,"value":"up"}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_push_metric_data_to_non-existing_Availability.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_push_metric_data_to_non-existing_Availability.yml deleted file mode 100644 index b5501d7..0000000 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_push_metric_data_to_non-existing_Availability.yml +++ /dev/null @@ -1,144 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/raw - body: - encoding: UTF-8 - string: '[{"value":"UP","timestamp":1471274438334}]' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '42' - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '42' - body: - encoding: UTF-8 - string: '[{"timestamp":1471274438334,"value":"up"}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '228' - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","dataRetention":7,"type":"availability","tenantId":"<%= vcr_test_tenant %>","minTimestamp":1471274438334,"maxTimestamp":1471274438334}' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_update_tags_for_Availability_definition.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_update_tags_for_Availability_definition.yml deleted file mode 100644 index 3450650..0000000 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_update_tags_for_Availability_definition.yml +++ /dev/null @@ -1,240 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","tags":{"myTag":"<%= id %>"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '101' - Host: - - localhost:8080 - response: - status: - code: 201 - message: Created - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Location: - - http://localhost:8080/hawkular/metrics/availability/<%= id %> - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Length: - - '0' - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '226' - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","tags":{"myTag":"<%= id %>"},"dataRetention":7,"type":"availability","tenantId":"<%= vcr_test_tenant %>"}' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: put - uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/tags - body: - encoding: UTF-8 - string: '{"newTag":"newValue"}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '21' - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '246' - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","tags":{"myTag":"<%= id %>","newTag":"newValue"},"dataRetention":7,"type":"availability","tenantId":"<%= vcr_test_tenant %>"}' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/?tags=myTag:<%= id %>&type=availability - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '248' - body: - encoding: UTF-8 - string: '[{"id":"<%= id %>","tags":{"myTag":"<%= id %>","newTag":"newValue"},"dataRetention":7,"type":"availability","tenantId":"<%= vcr_test_tenant %>"}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_create_and_return_counter_using_Hash_parameter.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_create_and_return_counter_using_Hash_parameter.yml deleted file mode 100644 index 21cae6a..0000000 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_create_and_return_counter_using_Hash_parameter.yml +++ /dev/null @@ -1,99 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","dataRetention":123,"tags":{"some":"value"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '89' - Host: - - localhost:8080 - response: - status: - code: 201 - message: Created - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Location: - - http://localhost:8080/hawkular/metrics/counters/<%= id %> - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Length: - - '0' - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '191' - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","tags":{"some":"value"},"dataRetention":123,"type":"counter","tenantId":"<%= vcr_test_tenant %>"}' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_create_counter_definition_using_MetricDefinition_parameter.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_create_counter_definition_using_MetricDefinition_parameter.yml deleted file mode 100644 index 518d4aa..0000000 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_create_counter_definition_using_MetricDefinition_parameter.yml +++ /dev/null @@ -1,99 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","dataRetention":90,"tags":{"tag":"value"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '87' - Host: - - localhost:8080 - response: - status: - code: 201 - message: Created - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Location: - - http://localhost:8080/hawkular/metrics/counters/<%= id %> - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Length: - - '0' - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '189' - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","tags":{"tag":"value"},"dataRetention":90,"type":"counter","tenantId":"<%= vcr_test_tenant %>"}' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml deleted file mode 100644 index 0e1edab..0000000 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml +++ /dev/null @@ -1,240 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters - body: - encoding: UTF-8 - string: '{"id":"<%= id %>"}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '45' - Host: - - localhost:8080 - response: - status: - code: 201 - message: Created - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Location: - - http://localhost:8080/hawkular/metrics/counters/<%= id %> - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Length: - - '0' - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw - body: - encoding: UTF-8 - string: '[{"value":110,"timestamp":<%= minus110 %>},{"value":100,"timestamp":<%= minus100 %>},{"value":90,"timestamp":<%= minus90 %>},{"value":80,"timestamp":<%= minus80 %>},{"value":70,"timestamp":<%= minus70 %>},{"value":60,"timestamp":<%= minus60 %>},{"value":50,"timestamp":<%= minus50 %>},{"value":40,"timestamp":<%= minus40 %>},{"value":30,"timestamp":<%= minus30 %>},{"value":20,"timestamp":<%= minus20 %>},{"value":10,"timestamp":<%= minus10 %>}]' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '432' - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/stats/?buckets=5&end=<%= minus5 %>&start=<%= minus105 %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '645' - body: - encoding: UTF-8 - string: '[{"start":<%= minus105 %>,"end":1471274438154,"min":90.0,"avg":95.0,"median":90.0,"max":100.0,"sum":190.0,"samples":2,"empty":false},{"start":1471274438154,"end":1471274438174,"min":70.0,"avg":75.0,"median":70.0,"max":80.0,"sum":150.0,"samples":2,"empty":false},{"start":1471274438174,"end":1471274438194,"min":50.0,"avg":55.0,"median":50.0,"max":60.0,"sum":110.0,"samples":2,"empty":false},{"start":1471274438194,"end":1471274438214,"min":30.0,"avg":35.0,"median":30.0,"max":40.0,"sum":70.0,"samples":2,"empty":false},{"start":1471274438214,"end":<%= minus5 %>,"min":10.0,"avg":15.0,"median":10.0,"max":20.0,"sum":30.0,"samples":2,"empty":false}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/stats/?buckets=2&end=<%= minus5 %>&start=<%= minus105 %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '260' - body: - encoding: UTF-8 - string: '[{"start":<%= minus105 %>,"end":1471274438184,"min":60.0,"avg":80.0,"median":80.0,"max":100.0,"sum":400.0,"samples":5,"empty":false},{"start":1471274438184,"end":<%= minus5 %>,"min":10.0,"avg":30.0,"median":30.0,"max":50.0,"sum":150.0,"samples":5,"empty":false}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/stats/?bucketDuration=50ms&end=<%= minus5 %>&start=<%= minus105 %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '260' - body: - encoding: UTF-8 - string: '[{"start":<%= minus105 %>,"end":1471274438184,"min":60.0,"avg":80.0,"median":80.0,"max":100.0,"sum":400.0,"samples":5,"empty":false},{"start":1471274438184,"end":<%= minus5 %>,"min":10.0,"avg":30.0,"median":30.0,"max":50.0,"sum":150.0,"samples":5,"empty":false}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_with_limit_and_order.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_with_limit_and_order.yml deleted file mode 100644 index 4853980..0000000 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_with_limit_and_order.yml +++ /dev/null @@ -1,328 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters - body: - encoding: UTF-8 - string: '{"id":"<%= id %>"}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '45' - Host: - - localhost:8080 - response: - status: - code: 201 - message: Created - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Location: - - http://localhost:8080/hawkular/metrics/counters/<%= id %> - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Length: - - '0' - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw - body: - encoding: UTF-8 - string: '[{"value":1,"timestamp":<%= minus30 %>},{"value":2,"timestamp":<%= minus20 %>},{"value":3,"timestamp":<%= minus10 %>}]' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '115' - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '115' - body: - encoding: UTF-8 - string: '[{"timestamp":<%= minus10 %>,"value":3},{"timestamp":<%= minus20 %>,"value":2},{"timestamp":<%= minus30 %>,"value":1}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw - body: - encoding: UTF-8 - string: '[{"value":4,"timestamp":1471274438208}]' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '39' - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '153' - body: - encoding: UTF-8 - string: '[{"timestamp":1471274438208,"value":4},{"timestamp":<%= minus10 %>,"value":3},{"timestamp":<%= minus20 %>,"value":2},{"timestamp":<%= minus30 %>,"value":1}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/?limit=1&order=DESC - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '39' - body: - encoding: UTF-8 - string: '[{"timestamp":1471274438208,"value":4}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/?end=<%= minus4h %>&start=<%= minus8h %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 204 - message: No Content - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_existing_counter.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_existing_counter.yml deleted file mode 100644 index a447bcb..0000000 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_existing_counter.yml +++ /dev/null @@ -1,281 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters - body: - encoding: UTF-8 - string: '{"id":"<%= id %>"}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '45' - Host: - - localhost:8080 - response: - status: - code: 201 - message: Created - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Location: - - http://localhost:8080/hawkular/metrics/counters/<%= id %> - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Length: - - '0' - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw - body: - encoding: UTF-8 - string: '[{"value":1,"timestamp":<%= minus30 %>},{"value":2,"timestamp":<%= minus20 %>},{"value":3,"timestamp":<%= minus10 %>}]' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '115' - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '115' - body: - encoding: UTF-8 - string: '[{"timestamp":<%= minus10 %>,"value":3},{"timestamp":<%= minus20 %>,"value":2},{"timestamp":<%= minus30 %>,"value":1}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw - body: - encoding: UTF-8 - string: '[{"value":4,"timestamp":1471274438171}]' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '39' - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '153' - body: - encoding: UTF-8 - string: '[{"timestamp":1471274438171,"value":4},{"timestamp":<%= minus10 %>,"value":3},{"timestamp":<%= minus20 %>,"value":2},{"timestamp":<%= minus30 %>,"value":1}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/?end=<%= minus4h %>&start=<%= minus8h %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 204 - message: No Content - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_non-existing_counter.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_non-existing_counter.yml deleted file mode 100644 index 7bbda44..0000000 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_non-existing_counter.yml +++ /dev/null @@ -1,144 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw - body: - encoding: UTF-8 - string: '[{"value":4,"timestamp":1471274438280}]' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '39' - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '39' - body: - encoding: UTF-8 - string: '[{"timestamp":1471274438280,"value":4}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '223' - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","dataRetention":7,"type":"counter","tenantId":"<%= vcr_test_tenant %>","minTimestamp":1471274438280,"maxTimestamp":1471274438280}' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_Hash.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_Hash.yml deleted file mode 100644 index 946b622..0000000 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_Hash.yml +++ /dev/null @@ -1,99 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","dataRetention":123,"tags":{"some":"value"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '89' - Host: - - localhost:8080 - response: - status: - code: 201 - message: Created - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Location: - - http://localhost:8080/hawkular/metrics/gauges/<%= id %> - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Length: - - '0' - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '189' - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","tags":{"some":"value"},"dataRetention":123,"type":"gauge","tenantId":"<%= vcr_test_tenant %>"}' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_MetricDefinition.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_MetricDefinition.yml deleted file mode 100644 index fc23493..0000000 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_MetricDefinition.yml +++ /dev/null @@ -1,99 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","dataRetention":90,"tags":{"tag":"value"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '87' - Host: - - localhost:8080 - response: - status: - code: 201 - message: Created - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Location: - - http://localhost:8080/hawkular/metrics/gauges/<%= id %> - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Length: - - '0' - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '187' - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","tags":{"tag":"value"},"dataRetention":90,"type":"gauge","tenantId":"<%= vcr_test_tenant %>"}' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_existing_gauge.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_existing_gauge.yml deleted file mode 100644 index 34f722f..0000000 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_existing_gauge.yml +++ /dev/null @@ -1,281 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges - body: - encoding: UTF-8 - string: '{"id":"<%= id %>"}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '45' - Host: - - localhost:8080 - response: - status: - code: 201 - message: Created - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Location: - - http://localhost:8080/hawkular/metrics/gauges/<%= id %> - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Length: - - '0' - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/raw - body: - encoding: UTF-8 - string: '[{"value":1,"timestamp":<%= now30 %>},{"value":2,"timestamp":<%= now20 %>},{"value":3,"timestamp":<%= now10 %>}]' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '115' - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '121' - body: - encoding: UTF-8 - string: '[{"timestamp":<%= now10 %>,"value":3.0},{"timestamp":<%= now20 %>,"value":2.0},{"timestamp":<%= now30 %>,"value":1.0}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/raw - body: - encoding: UTF-8 - string: '[{"value":4,"timestamp":1471274438488}]' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '39' - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '161' - body: - encoding: UTF-8 - string: '[{"timestamp":1471274438488,"value":4.0},{"timestamp":<%= now10 %>,"value":3.0},{"timestamp":<%= now20 %>,"value":2.0},{"timestamp":<%= now30 %>,"value":1.0}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/?end=<%= ends %>&start=<%= starts %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 204 - message: No Content - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_non-existing_gauge.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_non-existing_gauge.yml deleted file mode 100644 index 576fbab..0000000 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_non-existing_gauge.yml +++ /dev/null @@ -1,144 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/raw - body: - encoding: UTF-8 - string: '[{"value":3.1415926,"timestamp":1471274438451}]' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '47' - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '47' - body: - encoding: UTF-8 - string: '[{"timestamp":1471274438451,"value":3.1415926}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '221' - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","dataRetention":7,"type":"gauge","tenantId":"<%= vcr_test_tenant %>","minTimestamp":1471274438451,"maxTimestamp":1471274438451}' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Gauge_metrics/Should_return_periods.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Gauge_metrics/Should_return_periods.yml deleted file mode 100644 index 92723f5..0000000 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Gauge_metrics/Should_return_periods.yml +++ /dev/null @@ -1,97 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/raw - body: - encoding: UTF-8 - string: '[{"value":1,"timestamp":<%= minus30 %>},{"value":2,"timestamp":<%= minus20 %>},{"value":3,"timestamp":<%= start %>}]' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '115' - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/periods?op=lte&start=<%= before4h %>&threshold=4 - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '31' - body: - encoding: UTF-8 - string: "[[<%= minus30 %>,<%= start %>]]" - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Gauge_metrics/Should_update_tags_for_gauge_definition.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Gauge_metrics/Should_update_tags_for_gauge_definition.yml deleted file mode 100644 index 4a25ee4..0000000 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Gauge_metrics/Should_update_tags_for_gauge_definition.yml +++ /dev/null @@ -1,240 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","tags":{"myTag":"<%= id %>"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '101' - Host: - - localhost:8080 - response: - status: - code: 201 - message: Created - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Location: - - http://localhost:8080/hawkular/metrics/gauges/<%= id %> - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Length: - - '0' - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '219' - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","tags":{"myTag":"<%= id %>"},"dataRetention":7,"type":"gauge","tenantId":"<%= vcr_test_tenant %>"}' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: put - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/tags - body: - encoding: UTF-8 - string: '{"newTag":"newValue"}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '21' - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '239' - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","tags":{"myTag":"<%= id %>","newTag":"newValue"},"dataRetention":7,"type":"gauge","tenantId":"<%= vcr_test_tenant %>"}' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/?tags=myTag:<%= id %>&type=gauge - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '241' - body: - encoding: UTF-8 - string: '[{"id":"<%= id %>","tags":{"myTag":"<%= id %>","newTag":"newValue"},"dataRetention":7,"type":"gauge","tenantId":"<%= vcr_test_tenant %>"}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml deleted file mode 100644 index d3ee14c..0000000 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml +++ /dev/null @@ -1,326 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/raw/query - body: - encoding: UTF-8 - string: '{"ids":["<%= id1 %>","<%= id2 %>","<%= id3 %>"],"start":null,"end":null,"limit":null,"order":null}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '176' - Host: - - localhost:8080 - response: - status: - code: 204 - message: No Content - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:37 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/raw/query - body: - encoding: UTF-8 - string: '{"ids":["<%= id1 %>","<%= id2 %>","<%= id3 %>"],"start":null,"end":null,"limit":null,"order":null}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '176' - Host: - - localhost:8080 - response: - status: - code: 204 - message: No Content - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:37 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/raw/query - body: - encoding: UTF-8 - string: '{"ids":["<%= id1 %>","<%= id2 %>","<%= id3 %>"],"start":null,"end":null,"limit":null,"order":null}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '176' - Host: - - localhost:8080 - response: - status: - code: 204 - message: No Content - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:37 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/raw - body: - encoding: UTF-8 - string: '{"gauges":[{"id":"<%= id1 %>","data":[{"value":1.1,"timestamp":1471274438001}]},{"id":"<%= id2 %>","data":[{"value":2.2,"timestamp":1471274438001}]},{"id":"<%= id3 %>","data":[{"value":3.3,"timestamp":1471274438001}]}],"counters":[{"id":"<%= id1 %>","data":[{"value":1,"timestamp":1471274438001}]},{"id":"<%= id2 %>","data":[{"value":2,"timestamp":1471274438001}]},{"id":"<%= id3 %>","data":[{"value":3,"timestamp":1471274438001}]}],"availabilities":[{"id":"<%= id1 %>","data":[{"value":"up","timestamp":1471274438001}]},{"id":"<%= id2 %>","data":[{"value":"down","timestamp":1471274438001}]},{"id":"<%= id3 %>","data":[{"value":"up","timestamp":1471274438001}]}]}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '898' - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/raw/query - body: - encoding: UTF-8 - string: '{"ids":["<%= id1 %>","<%= id2 %>","<%= id3 %>"],"start":null,"end":null,"limit":null,"order":null}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '176' - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '280' - body: - encoding: UTF-8 - string: '[{"id":"<%= id1 %>","data":[{"timestamp":1471274438001,"value":1}]},{"id":"<%= id2 %>","data":[{"timestamp":1471274438001,"value":2}]},{"id":"<%= id3 %>","data":[{"timestamp":1471274438001,"value":3}]}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/raw/query - body: - encoding: UTF-8 - string: '{"ids":["<%= id1 %>","<%= id2 %>","<%= id3 %>"],"start":null,"end":null,"limit":null,"order":null}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '176' - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '286' - body: - encoding: UTF-8 - string: '[{"id":"<%= id1 %>","data":[{"timestamp":1471274438001,"value":1.1}]},{"id":"<%= id2 %>","data":[{"timestamp":1471274438001,"value":2.2}]},{"id":"<%= id3 %>","data":[{"timestamp":1471274438001,"value":3.3}]}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/raw/query - body: - encoding: UTF-8 - string: '{"ids":["<%= id1 %>","<%= id2 %>","<%= id3 %>"],"start":null,"end":null,"limit":null,"order":null}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '176' - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '291' - body: - encoding: UTF-8 - string: '[{"id":"<%= id1 %>","data":[{"timestamp":1471274438001,"value":"up"}]},{"id":"<%= id2 %>","data":[{"timestamp":1471274438001,"value":"down"}]},{"id":"<%= id3 %>","data":[{"timestamp":1471274438001,"value":"up"}]}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml deleted file mode 100644 index af98734..0000000 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml +++ /dev/null @@ -1,314 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - hawkular - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 204 - message: No Content - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - hawkular - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 204 - message: No Content - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - hawkular - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 204 - message: No Content - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/raw - body: - encoding: UTF-8 - string: '{"gauges":[{"id":"<%= id %>","data":[{"value":1.1,"timestamp":1471274438099}]}],"counters":[{"id":"<%= id %>","data":[{"value":1,"timestamp":1471274438099}]}],"availabilities":[{"id":"<%= id %>","data":[{"value":"down","timestamp":1471274438099}]}]}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - hawkular - Content-Type: - - application/json - Content-Length: - - '330' - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - hawkular - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '39' - body: - encoding: UTF-8 - string: '[{"timestamp":1471274438099,"value":1}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - hawkular - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '41' - body: - encoding: UTF-8 - string: '[{"timestamp":1471274438099,"value":1.1}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - hawkular - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '44' - body: - encoding: UTF-8 - string: '[{"timestamp":1471274438099,"value":"down"}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request_of_a_single_type.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request_of_a_single_type.yml deleted file mode 100644 index b95c0f4..0000000 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request_of_a_single_type.yml +++ /dev/null @@ -1,285 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/raw - body: - encoding: UTF-8 - string: '{"gauges":[],"counters":[{"id":"<%= id %>","data":[{"value":1,"timestamp":1471274438046}]}],"availabilities":[]}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - hawkular - Content-Type: - - application/json - Content-Length: - - '139' - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - hawkular - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '39' - body: - encoding: UTF-8 - string: '[{"timestamp":1471274438046,"value":1}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/raw - body: - encoding: UTF-8 - string: '{"gauges":[],"counters":[],"availabilities":[{"id":"<%= id %>","data":[{"value":"down","timestamp":1471274438055}]}]}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - hawkular - Content-Type: - - application/json - Content-Length: - - '144' - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - hawkular - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '44' - body: - encoding: UTF-8 - string: '[{"timestamp":1471274438055,"value":"down"}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/raw - body: - encoding: UTF-8 - string: '{"gauges":[{"id":"<%= id %>","data":[{"value":1.1,"timestamp":1471274438065}]}],"counters":[],"availabilities":[]}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - hawkular - Content-Type: - - application/json - Content-Length: - - '141' - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - hawkular - Content-Type: - - application/json - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:38 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '41' - body: - encoding: UTF-8 - string: '[{"timestamp":1471274438065,"value":1.1}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/No_Tenant/Should_fail.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/No_Tenant/Should_fail.yml deleted file mode 100644 index 0ce7e4b..0000000 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/No_Tenant/Should_fail.yml +++ /dev/null @@ -1,50 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw - body: - encoding: UTF-8 - string: '[{"value":4,"timestamp":1471274437980}]' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Content-Type: - - application/json - Content-Length: - - '39' - Host: - - localhost:8080 - response: - status: - code: 400 - message: Bad Request - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:37 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '69' - body: - encoding: UTF-8 - string: '{"errorMsg":"Tenant is not specified. Use ''Hawkular-Tenant'' header."}' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Simple/Should_be_Cool.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Simple/Should_be_Cool.yml deleted file mode 100644 index 3234c91..0000000 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Simple/Should_be_Cool.yml +++ /dev/null @@ -1,48 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:8080/hawkular/metrics - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:8080 - response: - status: - code: 401 - message: Unauthorized - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:37 GMT - Connection: - - keep-alive - Www-Authenticate: - - Basic realm="ApplicationRealm" - Content-Type: - - text/html;charset=UTF-8 - Content-Length: - - '71' - body: - encoding: UTF-8 - string: "ErrorUnauthorized" - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Tenants/Should_create_and_return_tenant.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Tenants/Should_create_and_return_tenant.yml deleted file mode 100644 index 3fbf32f..0000000 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Tenants/Should_create_and_return_tenant.yml +++ /dev/null @@ -1,103 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/tenants - body: - encoding: UTF-8 - string: '{"id":"<%= id %>"}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - hawkular - Content-Type: - - application/json - Hawkular-Admin-Token: - - <%= admin_token %> - Content-Length: - - '45' - Host: - - localhost:8080 - response: - status: - code: 201 - message: Created - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Location: - - http://localhost:8080/hawkular/metrics/tenants - Date: - - Fri, 07 Oct 2016 18:26:34 GMT - Connection: - - keep-alive - Content-Length: - - '0' - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Fri, 07 Oct 2016 18:26:34 GMT -- request: - method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/tenants - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - hawkular - Content-Type: - - application/json - Hawkular-Admin-Token: - - <%= admin_token %> - Host: - - localhost:8080 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Fri, 07 Oct 2016 18:26:34 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '253' - body: - encoding: UTF-8 - string: '[{"id":"c5b1cfea-ab89-4bfc-86a5-854b19933356"},{"id":"other-tenant"},{"id":"bed6797a-54de-45c9-9c99-8a16304838db"},{"id":"31e2dbf9-7c03-418b-9d29-54eda0d9a094"},{"id":"<%= id %>"},{"id":"dea3f721-2e73-4d7e-8cfb-cf073680f77b"}]' - http_version: - recorded_at: Fri, 07 Oct 2016 18:26:34 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Availability_metrics/Should_group_contiguous_values.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Availability_metrics/Should_group_contiguous_values.yml index fee4518..d0b8858 100644 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Availability_metrics/Should_group_contiguous_values.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Availability_metrics/Should_group_contiguous_values.yml @@ -1,8 +1,49 @@ --- http_interactions: +- request: + method: get + uri: http://jdoe:password@localhost:8080/hawkular/metrics/status + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Accept-Encoding: + - identity + User-Agent: + - hawkular-client-ruby + Hawkular-Tenant: + - <%= vcr_test_tenant %> + Content-Type: + - application/json + Host: + - localhost:8080 + response: + status: + code: 200 + message: OK + headers: + Connection: + - keep-alive + X-Powered-By: + - Undertow/1 + Server: + - WildFly/10 + Content-Type: + - application/json + Content-Length: + - '133' + Date: + - Thu, 13 Oct 2016 03:23:56 GMT + body: + encoding: UTF-8 + string: '{"MetricsService":"STARTED","Implementation-Version":"0.20.1.Final","Built-From-Git-SHA1":"f23946235446d3425db31d262b47b4f950ddabb3"}' + http_version: + recorded_at: Thu, 13 Oct 2016 03:23:56 GMT - request: method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/data + uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/raw body: encoding: UTF-8 string: '[{"timestamp":<%= minus50 %>,"value":"up"},{"timestamp":<%= minus40 %>,"value":"up"},{"timestamp":<%= minus30 %>,"value":"down"},{"timestamp":<%= minus20 %>,"value":"down"},{"timestamp":<%= minus10 %>,"value":"down"},{"timestamp":<%= now %>,"value":"up"}]' @@ -41,15 +82,15 @@ http_interactions: Content-Length: - '0' Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:23:56 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:23:56 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/data/?distinct=true&order=ASC + uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/raw/?distinct=true&order=ASC body: encoding: US-ASCII string: '' @@ -82,7 +123,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:23:56 GMT Connection: - keep-alive Content-Type: @@ -93,5 +134,5 @@ http_interactions: encoding: UTF-8 string: '[{"timestamp":<%= minus50 %>,"value":"up"},{"timestamp":<%= minus30 %>,"value":"down"},{"timestamp":<%= now %>,"value":"up"}]' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:23:56 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Availability_metrics/Should_push_metric_data_to_non-existing_Availability.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Availability_metrics/Should_push_metric_data_to_non-existing_Availability.yml index 58d3858..27892d8 100644 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Availability_metrics/Should_push_metric_data_to_non-existing_Availability.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Availability_metrics/Should_push_metric_data_to_non-existing_Availability.yml @@ -2,10 +2,10 @@ http_interactions: - request: method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/data + uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/raw body: encoding: UTF-8 - string: '[{"value":"UP","timestamp":1471274437693}]' + string: '[{"value":"UP","timestamp":1476329030742}]' headers: Accept: - application/json @@ -41,15 +41,15 @@ http_interactions: Content-Length: - '0' Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:23:50 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:23:50 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/data/ + uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/raw/ body: encoding: US-ASCII string: '' @@ -82,7 +82,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:23:50 GMT Connection: - keep-alive Content-Type: @@ -91,9 +91,9 @@ http_interactions: - '42' body: encoding: UTF-8 - string: '[{"timestamp":1471274437693,"value":"up"}]' + string: '[{"timestamp":1476329030742,"value":"up"}]' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:23:50 GMT - request: method: get uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %> @@ -129,16 +129,16 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:23:50 GMT Connection: - keep-alive Content-Type: - application/json Content-Length: - - '230' + - '231' body: encoding: UTF-8 - string: '{"id":"<%= id %>","dataRetention":7,"type":"availability","tenantId":"<%= vcr_test_tenant %>","minTimestamp":1471274437693,"maxTimestamp":1471274437693}' + string: '{"id":"<%= id %>","dataRetention":14,"type":"availability","tenantId":"<%= vcr_test_tenant %>","minTimestamp":1476329030742,"maxTimestamp":1476329030742}' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:23:50 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Availability_metrics/setup_client.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Availability_metrics/setup_client.yml new file mode 100644 index 0000000..8fe42c5 --- /dev/null +++ b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Availability_metrics/setup_client.yml @@ -0,0 +1,44 @@ +--- +http_interactions: +- request: + method: get + uri: http://jdoe:password@localhost:8080/hawkular/metrics/status + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Accept-Encoding: + - identity + User-Agent: + - hawkular-client-ruby + Hawkular-Tenant: + - <%= type %>metrics_services-vcr-tenant-bb1eb255-4bcb-4dbe-9253-d32fbcfd134c + Content-Type: + - application/json + Host: + - localhost:8080 + response: + status: + code: 200 + message: OK + headers: + Connection: + - keep-alive + X-Powered-By: + - Undertow/1 + Server: + - WildFly/10 + Content-Type: + - application/json + Content-Length: + - '133' + Date: + - Thu, 13 Oct 2016 03:23:56 GMT + body: + encoding: UTF-8 + string: '{"MetricsService":"STARTED","Implementation-Version":"0.20.1.Final","Built-From-Git-SHA1":"f23946235446d3425db31d262b47b4f950ddabb3"}' + http_version: + recorded_at: Thu, 13 Oct 2016 03:23:56 GMT +recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml index 717033b..e7a4775 100644 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml @@ -39,7 +39,7 @@ http_interactions: Location: - http://localhost:8080/hawkular/metrics/counters/<%= id %> Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:23:11 GMT Connection: - keep-alive Content-Length: @@ -48,10 +48,10 @@ http_interactions: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:23:11 GMT - request: method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data + uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw body: encoding: UTF-8 string: '[{"value":110,"timestamp":<%= minus110 %>},{"value":100,"timestamp":<%= minus100 %>},{"value":90,"timestamp":<%= minus90 %>},{"value":80,"timestamp":<%= minus80 %>},{"value":70,"timestamp":<%= minus70 %>},{"value":60,"timestamp":<%= minus60 %>},{"value":50,"timestamp":<%= minus50 %>},{"value":40,"timestamp":<%= minus40 %>},{"value":30,"timestamp":<%= minus30 %>},{"value":20,"timestamp":<%= minus20 %>},{"value":10,"timestamp":<%= minus10 %>}]' @@ -90,15 +90,15 @@ http_interactions: Content-Length: - '0' Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:23:11 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:23:11 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/?buckets=5&end=<%= minus5 %>&start=<%= minus105 %> + uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/stats/?buckets=5&end=<%= minus5 %>&start=<%= minus105 %> body: encoding: US-ASCII string: '' @@ -131,7 +131,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:23:11 GMT Connection: - keep-alive Content-Type: @@ -140,12 +140,12 @@ http_interactions: - '645' body: encoding: UTF-8 - string: '[{"start":<%= minus105 %>,"end":1471274437518,"min":90.0,"avg":95.0,"median":90.0,"max":100.0,"sum":190.0,"samples":2,"empty":false},{"start":1471274437518,"end":1471274437538,"min":70.0,"avg":75.0,"median":70.0,"max":80.0,"sum":150.0,"samples":2,"empty":false},{"start":1471274437538,"end":1471274437558,"min":50.0,"avg":55.0,"median":50.0,"max":60.0,"sum":110.0,"samples":2,"empty":false},{"start":1471274437558,"end":1471274437578,"min":30.0,"avg":35.0,"median":30.0,"max":40.0,"sum":70.0,"samples":2,"empty":false},{"start":1471274437578,"end":<%= minus5 %>,"min":10.0,"avg":15.0,"median":10.0,"max":20.0,"sum":30.0,"samples":2,"empty":false}]' + string: '[{"start":<%= minus105 %>,"end":1476328991210,"min":90.0,"avg":95.0,"median":90.0,"max":100.0,"sum":190.0,"samples":2,"empty":false},{"start":1476328991210,"end":1476328991230,"min":70.0,"avg":75.0,"median":70.0,"max":80.0,"sum":150.0,"samples":2,"empty":false},{"start":1476328991230,"end":1476328991250,"min":50.0,"avg":55.0,"median":50.0,"max":60.0,"sum":110.0,"samples":2,"empty":false},{"start":1476328991250,"end":1476328991270,"min":30.0,"avg":35.0,"median":30.0,"max":40.0,"sum":70.0,"samples":2,"empty":false},{"start":1476328991270,"end":<%= minus5 %>,"min":10.0,"avg":15.0,"median":10.0,"max":20.0,"sum":30.0,"samples":2,"empty":false}]' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:23:11 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/?buckets=2&end=<%= minus5 %>&start=<%= minus105 %> + uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/stats/?buckets=2&end=<%= minus5 %>&start=<%= minus105 %> body: encoding: US-ASCII string: '' @@ -178,7 +178,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:23:11 GMT Connection: - keep-alive Content-Type: @@ -187,12 +187,12 @@ http_interactions: - '260' body: encoding: UTF-8 - string: '[{"start":<%= minus105 %>,"end":1471274437548,"min":60.0,"avg":80.0,"median":80.0,"max":100.0,"sum":400.0,"samples":5,"empty":false},{"start":1471274437548,"end":<%= minus5 %>,"min":10.0,"avg":30.0,"median":30.0,"max":50.0,"sum":150.0,"samples":5,"empty":false}]' + string: '[{"start":<%= minus105 %>,"end":1476328991240,"min":60.0,"avg":80.0,"median":80.0,"max":100.0,"sum":400.0,"samples":5,"empty":false},{"start":1476328991240,"end":<%= minus5 %>,"min":10.0,"avg":30.0,"median":30.0,"max":50.0,"sum":150.0,"samples":5,"empty":false}]' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:23:11 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/?bucketDuration=50ms&end=<%= minus5 %>&start=<%= minus105 %> + uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/stats/?bucketDuration=50ms&end=<%= minus5 %>&start=<%= minus105 %> body: encoding: US-ASCII string: '' @@ -225,7 +225,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:23:11 GMT Connection: - keep-alive Content-Type: @@ -234,7 +234,7 @@ http_interactions: - '260' body: encoding: UTF-8 - string: '[{"start":<%= minus105 %>,"end":1471274437548,"min":60.0,"avg":80.0,"median":80.0,"max":100.0,"sum":400.0,"samples":5,"empty":false},{"start":1471274437548,"end":<%= minus5 %>,"min":10.0,"avg":30.0,"median":30.0,"max":50.0,"sum":150.0,"samples":5,"empty":false}]' + string: '[{"start":<%= minus105 %>,"end":1476328991240,"min":60.0,"avg":80.0,"median":80.0,"max":100.0,"sum":400.0,"samples":5,"empty":false},{"start":1476328991240,"end":<%= minus5 %>,"min":10.0,"avg":30.0,"median":30.0,"max":50.0,"sum":150.0,"samples":5,"empty":false}]' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:23:11 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_get_metrics_with_limit_and_order.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_get_metrics_with_limit_and_order.yml index 60f44f5..5585306 100644 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_get_metrics_with_limit_and_order.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_get_metrics_with_limit_and_order.yml @@ -39,7 +39,7 @@ http_interactions: Location: - http://localhost:8080/hawkular/metrics/counters/<%= id %> Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:23:07 GMT Connection: - keep-alive Content-Length: @@ -48,10 +48,10 @@ http_interactions: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:23:07 GMT - request: method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data + uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw body: encoding: UTF-8 string: '[{"value":1,"timestamp":<%= minus30 %>},{"value":2,"timestamp":<%= minus20 %>},{"value":3,"timestamp":<%= minus10 %>}]' @@ -90,15 +90,15 @@ http_interactions: Content-Length: - '0' Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:23:07 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:23:07 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/ + uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/ body: encoding: US-ASCII string: '' @@ -131,7 +131,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:23:07 GMT Connection: - keep-alive Content-Type: @@ -142,13 +142,13 @@ http_interactions: encoding: UTF-8 string: '[{"timestamp":<%= minus10 %>,"value":3},{"timestamp":<%= minus20 %>,"value":2},{"timestamp":<%= minus30 %>,"value":1}]' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:23:07 GMT - request: method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data + uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw body: encoding: UTF-8 - string: '[{"value":4,"timestamp":1471274437576}]' + string: '[{"value":4,"timestamp":1476328987926}]' headers: Accept: - application/json @@ -184,15 +184,15 @@ http_interactions: Content-Length: - '0' Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:23:07 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:23:07 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/ + uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/ body: encoding: US-ASCII string: '' @@ -225,7 +225,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:23:07 GMT Connection: - keep-alive Content-Type: @@ -234,12 +234,12 @@ http_interactions: - '153' body: encoding: UTF-8 - string: '[{"timestamp":1471274437576,"value":4},{"timestamp":<%= minus10 %>,"value":3},{"timestamp":<%= minus20 %>,"value":2},{"timestamp":<%= minus30 %>,"value":1}]' + string: '[{"timestamp":1476328987926,"value":4},{"timestamp":<%= minus10 %>,"value":3},{"timestamp":<%= minus20 %>,"value":2},{"timestamp":<%= minus30 %>,"value":1}]' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:23:07 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/?limit=1&order=DESC + uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/?limit=1&order=DESC body: encoding: US-ASCII string: '' @@ -272,7 +272,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:23:07 GMT Connection: - keep-alive Content-Type: @@ -281,12 +281,12 @@ http_interactions: - '39' body: encoding: UTF-8 - string: '[{"timestamp":1471274437576,"value":4}]' + string: '[{"timestamp":1476328987926,"value":4}]' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:23:07 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/?end=<%= minus4h %>&start=<%= minus8h %> + uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/?end=<%= minus4h %>&start=<%= minus8h %> body: encoding: US-ASCII string: '' @@ -319,10 +319,10 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:23:07 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:23:07 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_push_metric_data_to_existing_counter.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_push_metric_data_to_existing_counter.yml index e47e682..9b613b4 100644 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_push_metric_data_to_existing_counter.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_push_metric_data_to_existing_counter.yml @@ -39,7 +39,7 @@ http_interactions: Location: - http://localhost:8080/hawkular/metrics/counters/<%= id %> Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:23:02 GMT Connection: - keep-alive Content-Length: @@ -48,10 +48,10 @@ http_interactions: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:23:02 GMT - request: method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data + uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw body: encoding: UTF-8 string: '[{"value":1,"timestamp":<%= minus30 %>},{"value":2,"timestamp":<%= minus20 %>},{"value":3,"timestamp":<%= minus10 %>}]' @@ -90,15 +90,15 @@ http_interactions: Content-Length: - '0' Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:23:02 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:23:02 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/ + uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/ body: encoding: US-ASCII string: '' @@ -131,7 +131,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:23:02 GMT Connection: - keep-alive Content-Type: @@ -142,13 +142,13 @@ http_interactions: encoding: UTF-8 string: '[{"timestamp":<%= minus10 %>,"value":3},{"timestamp":<%= minus20 %>,"value":2},{"timestamp":<%= minus30 %>,"value":1}]' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:23:02 GMT - request: method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data + uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw body: encoding: UTF-8 - string: '[{"value":4,"timestamp":1471274437539}]' + string: '[{"value":4,"timestamp":1476328982717}]' headers: Accept: - application/json @@ -184,15 +184,15 @@ http_interactions: Content-Length: - '0' Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:23:02 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:23:02 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/ + uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/ body: encoding: US-ASCII string: '' @@ -225,7 +225,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:23:02 GMT Connection: - keep-alive Content-Type: @@ -234,12 +234,12 @@ http_interactions: - '153' body: encoding: UTF-8 - string: '[{"timestamp":1471274437539,"value":4},{"timestamp":<%= minus10 %>,"value":3},{"timestamp":<%= minus20 %>,"value":2},{"timestamp":<%= minus30 %>,"value":1}]' + string: '[{"timestamp":1476328982717,"value":4},{"timestamp":<%= minus10 %>,"value":3},{"timestamp":<%= minus20 %>,"value":2},{"timestamp":<%= minus30 %>,"value":1}]' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:23:02 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/?end=<%= minus4h %>&start=<%= minus8h %> + uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/?end=<%= minus4h %>&start=<%= minus8h %> body: encoding: US-ASCII string: '' @@ -272,10 +272,10 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:23:02 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:23:02 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_push_metric_data_to_non-existing_counter.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_push_metric_data_to_non-existing_counter.yml index f90694b..0eaa346 100644 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_push_metric_data_to_non-existing_counter.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_push_metric_data_to_non-existing_counter.yml @@ -2,10 +2,10 @@ http_interactions: - request: method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data + uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw body: encoding: UTF-8 - string: '[{"value":4,"timestamp":1471274437641}]' + string: '[{"value":4,"timestamp":1476328995445}]' headers: Accept: - application/json @@ -41,15 +41,15 @@ http_interactions: Content-Length: - '0' Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:23:15 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:23:15 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/ + uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/ body: encoding: US-ASCII string: '' @@ -82,7 +82,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:23:15 GMT Connection: - keep-alive Content-Type: @@ -91,9 +91,9 @@ http_interactions: - '39' body: encoding: UTF-8 - string: '[{"timestamp":1471274437641,"value":4}]' + string: '[{"timestamp":1476328995445,"value":4}]' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:23:15 GMT - request: method: get uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %> @@ -129,16 +129,16 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:23:15 GMT Connection: - keep-alive Content-Type: - application/json Content-Length: - - '225' + - '226' body: encoding: UTF-8 - string: '{"id":"<%= id %>","dataRetention":7,"type":"counter","tenantId":"<%= vcr_test_tenant %>","minTimestamp":1471274437641,"maxTimestamp":1471274437641}' + string: '{"id":"<%= id %>","dataRetention":14,"type":"counter","tenantId":"<%= vcr_test_tenant %>","minTimestamp":1476328995445,"maxTimestamp":1476328995445}' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:23:15 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/setup_client.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/setup_client.yml new file mode 100644 index 0000000..e1c6f0e --- /dev/null +++ b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/setup_client.yml @@ -0,0 +1,44 @@ +--- +http_interactions: +- request: + method: get + uri: http://jdoe:password@localhost:8080/hawkular/metrics/status + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Accept-Encoding: + - identity + User-Agent: + - hawkular-client-ruby + Hawkular-Tenant: + - <%= type %>metrics_services-vcr-tenant-2e6c5538-8570-4013-b9ab-d02a13027097 + Content-Type: + - application/json + Host: + - localhost:8080 + response: + status: + code: 200 + message: OK + headers: + Connection: + - keep-alive + X-Powered-By: + - Undertow/1 + Server: + - WildFly/10 + Content-Type: + - application/json + Content-Length: + - '133' + Date: + - Thu, 13 Oct 2016 03:23:15 GMT + body: + encoding: UTF-8 + string: '{"MetricsService":"STARTED","Implementation-Version":"0.20.1.Final","Built-From-Git-SHA1":"f23946235446d3425db31d262b47b4f950ddabb3"}' + http_version: + recorded_at: Thu, 13 Oct 2016 03:23:15 GMT +recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_push_metric_data_to_existing_gauge.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_push_metric_data_to_existing_gauge.yml index f6aeb33..3a8cbc8 100644 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_push_metric_data_to_existing_gauge.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_push_metric_data_to_existing_gauge.yml @@ -39,7 +39,7 @@ http_interactions: Location: - http://localhost:8080/hawkular/metrics/gauges/<%= id %> Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:30:20 GMT Connection: - keep-alive Content-Length: @@ -48,10 +48,10 @@ http_interactions: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:30:20 GMT - request: method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/data + uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/raw body: encoding: UTF-8 string: '[{"value":1,"timestamp":<%= now30 %>},{"value":2,"timestamp":<%= now20 %>},{"value":3,"timestamp":<%= now10 %>}]' @@ -90,15 +90,15 @@ http_interactions: Content-Length: - '0' Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:30:20 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:30:20 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/data/ + uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/raw/ body: encoding: US-ASCII string: '' @@ -131,7 +131,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:30:20 GMT Connection: - keep-alive Content-Type: @@ -142,13 +142,13 @@ http_interactions: encoding: UTF-8 string: '[{"timestamp":<%= now10 %>,"value":3.0},{"timestamp":<%= now20 %>,"value":2.0},{"timestamp":<%= now30 %>,"value":1.0}]' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:30:20 GMT - request: method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/data + uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/raw body: encoding: UTF-8 - string: '[{"value":4,"timestamp":1471274437836}]' + string: '[{"value":4,"timestamp":1476329420253}]' headers: Accept: - application/json @@ -184,15 +184,15 @@ http_interactions: Content-Length: - '0' Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:30:20 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:30:20 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/data/ + uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/raw/ body: encoding: US-ASCII string: '' @@ -225,7 +225,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:30:20 GMT Connection: - keep-alive Content-Type: @@ -234,12 +234,12 @@ http_interactions: - '161' body: encoding: UTF-8 - string: '[{"timestamp":1471274437836,"value":4.0},{"timestamp":<%= now10 %>,"value":3.0},{"timestamp":<%= now20 %>,"value":2.0},{"timestamp":<%= now30 %>,"value":1.0}]' + string: '[{"timestamp":1476329420253,"value":4.0},{"timestamp":<%= now10 %>,"value":3.0},{"timestamp":<%= now20 %>,"value":2.0},{"timestamp":<%= now30 %>,"value":1.0}]' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:30:20 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/?end=<%= ends %>&start=<%= starts %> + uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/?end=<%= ends %>&start=<%= starts %> body: encoding: US-ASCII string: '' @@ -272,10 +272,10 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:30:20 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:30:20 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_push_metric_data_to_non-existing_gauge.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_push_metric_data_to_non-existing_gauge.yml index b9a3986..ca75b8f 100644 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_push_metric_data_to_non-existing_gauge.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_push_metric_data_to_non-existing_gauge.yml @@ -2,10 +2,10 @@ http_interactions: - request: method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/data + uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/raw body: encoding: UTF-8 - string: '[{"value":3.1415926,"timestamp":1471274437799}]' + string: '[{"value":3.1415926,"timestamp":1476329070885}]' headers: Accept: - application/json @@ -41,15 +41,15 @@ http_interactions: Content-Length: - '0' Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:24:30 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:24:30 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/data/ + uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/raw/ body: encoding: US-ASCII string: '' @@ -82,7 +82,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:24:30 GMT Connection: - keep-alive Content-Type: @@ -91,9 +91,9 @@ http_interactions: - '47' body: encoding: UTF-8 - string: '[{"timestamp":1471274437799,"value":3.1415926}]' + string: '[{"timestamp":1476329070885,"value":3.1415926}]' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:24:30 GMT - request: method: get uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %> @@ -129,16 +129,16 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:24:30 GMT Connection: - keep-alive Content-Type: - application/json Content-Length: - - '223' + - '224' body: encoding: UTF-8 - string: '{"id":"<%= id %>","dataRetention":7,"type":"gauge","tenantId":"<%= vcr_test_tenant %>","minTimestamp":1471274437799,"maxTimestamp":1471274437799}' + string: '{"id":"<%= id %>","dataRetention":14,"type":"gauge","tenantId":"<%= vcr_test_tenant %>","minTimestamp":1476329070885,"maxTimestamp":1476329070885}' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:24:30 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_return_periods.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_return_periods.yml index 19c09d3..fff38fe 100644 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_return_periods.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_return_periods.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/data + uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/raw body: encoding: UTF-8 string: '[{"value":1,"timestamp":<%= minus30 %>},{"value":2,"timestamp":<%= minus20 %>},{"value":3,"timestamp":<%= start %>}]' @@ -41,12 +41,12 @@ http_interactions: Content-Length: - '0' Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:30:33 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:30:33 GMT - request: method: get uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/periods?op=lte&start=<%= before4h %>&threshold=4 @@ -82,7 +82,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:30:33 GMT Connection: - keep-alive Content-Type: @@ -93,5 +93,5 @@ http_interactions: encoding: UTF-8 string: "[[<%= minus30 %>,<%= start %>]]" http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:30:33 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_return_platform_memory.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_return_platform_memory.yml index ee73377..79d2ec3 100644 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_return_platform_memory.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_return_platform_memory.yml @@ -1,5 +1,46 @@ --- http_interactions: +- request: + method: get + uri: http://jdoe:password@localhost:8080/<%= tenant %>/metrics/status + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Accept-Encoding: + - identity + User-Agent: + - <%= tenant %>-client-ruby + Hawkular-Tenant: + - <%= tenant %> + Content-Type: + - application/json + Host: + - localhost:8080 + response: + status: + code: 200 + message: OK + headers: + Connection: + - keep-alive + X-Powered-By: + - Undertow/1 + Server: + - WildFly/10 + Content-Type: + - application/json + Content-Length: + - '133' + Date: + - Thu, 13 Oct 2016 03:30:38 GMT + body: + encoding: UTF-8 + string: '{"MetricsService":"STARTED","Implementation-Version":"0.20.1.Final","Built-From-Git-SHA1":"f23946235446d3425db31d262b47b4f950ddabb3"}' + http_version: + recorded_at: Thu, 13 Oct 2016 03:30:38 GMT - request: method: get uri: http://jdoe:password@localhost:8080/<%= tenant %>/inventory/status @@ -35,18 +76,18 @@ http_interactions: Content-Length: - '234' Date: - - Wed, 21 Sep 2016 01:13:07 GMT + - Thu, 13 Oct 2016 03:30:38 GMT body: encoding: UTF-8 string: |- { - "Implementation-Version" : "0.18.0.Final", - "Built-From-Git-SHA1" : "be1107e48907ebc1d8de4dc571275edd9daf0424", + "Implementation-Version" : "0.20.0.Final", + "Built-From-Git-SHA1" : "a3b55c0c65a141fdbb007524d063b5d57bf2d96c", "Inventory-Implementation" : "org.<%= tenant %>.inventory.impl.tinkerpop.TinkerpopInventory", "Initialized" : "true" } http_version: - recorded_at: Wed, 21 Sep 2016 01:13:07 GMT + recorded_at: Thu, 13 Oct 2016 03:30:38 GMT - request: method: get uri: http://jdoe:password@localhost:8080/<%= tenant %>/inventory/traversal/type=f @@ -82,7 +123,7 @@ http_interactions: Pragma: - no-cache Date: - - Wed, 21 Sep 2016 01:13:07 GMT + - Thu, 13 Oct 2016 03:30:38 GMT X-Total-Count: - '1' Connection: @@ -90,24 +131,24 @@ http_interactions: Content-Type: - application/json Content-Length: - - '299' + - '300' Link: - /inventory/traversal/type=f>; rel="current" body: encoding: UTF-8 string: |- [ { - "path" : "/t;<%= tenant %>/f;7774c92a-0896-4586-bdae-6a8e985ace09", - "identityHash" : "18e5b733297dda56275715ed9fc21d59e23848", + "path" : "/t;<%= tenant %>/f;d19d84dc-f403-4f5b-a987-fbd48863ea4f", + "identityHash" : "12efca83e331bdae189fa5db13d2d5a6b70f5a6", "contentHash" : "da39a3ee5e6b4bd3255bfef95601890afd879", - "syncHash" : "197fb5b99df7d1506dd9bc4a898416dbf3b12e6c", - "id" : "7774c92a-0896-4586-bdae-6a8e985ace09" + "syncHash" : "af2860c4e1bb64fc3177139eeb3ab967d654f324", + "id" : "d19d84dc-f403-4f5b-a987-fbd48863ea4f" } ] http_version: - recorded_at: Wed, 21 Sep 2016 01:13:07 GMT + recorded_at: Thu, 13 Oct 2016 03:30:38 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/<%= tenant %>/metrics/gauges/MI~R~%5B7774c92a-0896-4586-bdae-6a8e985ace09%2Fplatform~%2FOPERATING_SYSTEM=7774c92a-0896-4586-bdae-6a8e985ace09_OperatingSystem%2FMEMORY=Memory%5D~MT~Total%20Memory/data/ + uri: http://jdoe:password@localhost:8080/<%= tenant %>/metrics/gauges/MI~R~%5Bd19d84dc-f403-4f5b-a987-fbd48863ea4f%2Fplatform~%2FOPERATING_SYSTEM=d19d84dc-f403-4f5b-a987-fbd48863ea4f_OperatingSystem%2FMEMORY=Memory%5D~MT~Platform_Memory_Total%20Memory/raw/ body: encoding: US-ASCII string: '' @@ -140,16 +181,16 @@ http_interactions: Pragma: - no-cache Date: - - Wed, 21 Sep 2016 01:13:07 GMT + - Thu, 13 Oct 2016 03:30:38 GMT Connection: - keep-alive Content-Type: - application/json Content-Length: - - '989' + - '10609' body: encoding: UTF-8 - string: '[{"timestamp":1474420386005,"value":1.6438665216E10},{"timestamp":1474420326005,"value":1.6438665216E10},{"timestamp":1474420266004,"value":1.6438665216E10},{"timestamp":1474420206005,"value":1.6438665216E10},{"timestamp":1474420145007,"value":1.6438665216E10},{"timestamp":1474420084009,"value":1.6438665216E10},{"timestamp":1474420024021,"value":1.6438665216E10},{"timestamp":1474419963010,"value":1.6438665216E10},{"timestamp":1474419903007,"value":1.6438665216E10},{"timestamp":1474419843008,"value":1.6438665216E10},{"timestamp":1474419783008,"value":1.6438665216E10},{"timestamp":1474419723009,"value":1.6438665216E10},{"timestamp":1474419663011,"value":1.6438665216E10},{"timestamp":1474419602013,"value":1.6438665216E10},{"timestamp":1474419542009,"value":1.6438665216E10},{"timestamp":1474419482018,"value":1.6438665216E10},{"timestamp":1474419421010,"value":1.6438665216E10},{"timestamp":1474419361007,"value":1.6438665216E10},{"timestamp":1474419301015,"value":1.6438665216E10}]' + string: '[{"timestamp":1476329399006,"value":1.6438665216E10},{"timestamp":1476329339006,"value":1.6438665216E10},{"timestamp":1476329279006,"value":1.6438665216E10},{"timestamp":1476329219005,"value":1.6438665216E10},{"timestamp":1476329159005,"value":1.6438665216E10},{"timestamp":1476329099006,"value":1.6438665216E10},{"timestamp":1476329039006,"value":1.6438665216E10},{"timestamp":1476328979019,"value":1.6438665216E10},{"timestamp":1476328919005,"value":1.6438665216E10},{"timestamp":1476328859005,"value":1.6438665216E10},{"timestamp":1476328798006,"value":1.6438665216E10},{"timestamp":1476328738005,"value":1.6438665216E10},{"timestamp":1476328678006,"value":1.6438665216E10},{"timestamp":1476328618006,"value":1.6438665216E10},{"timestamp":1476328558006,"value":1.6438665216E10},{"timestamp":1476328497005,"value":1.6438665216E10},{"timestamp":1476328437006,"value":1.6438665216E10},{"timestamp":1476328377005,"value":1.6438665216E10},{"timestamp":1476328317005,"value":1.6438665216E10},{"timestamp":1476328257005,"value":1.6438665216E10},{"timestamp":1476328197004,"value":1.6438665216E10},{"timestamp":1476328137006,"value":1.6438665216E10},{"timestamp":1476328076005,"value":1.6438665216E10},{"timestamp":1476328016005,"value":1.6438665216E10},{"timestamp":1476327956005,"value":1.6438665216E10},{"timestamp":1476327895005,"value":1.6438665216E10},{"timestamp":1476327835005,"value":1.6438665216E10},{"timestamp":1476327775005,"value":1.6438665216E10},{"timestamp":1476327715005,"value":1.6438665216E10},{"timestamp":1476327655022,"value":1.6438665216E10},{"timestamp":1476327595005,"value":1.6438665216E10},{"timestamp":1476325203005,"value":1.6438665216E10},{"timestamp":1476325143005,"value":1.6438665216E10},{"timestamp":1476325083004,"value":1.6438665216E10},{"timestamp":1476325023005,"value":1.6438665216E10},{"timestamp":1476324962006,"value":1.6438665216E10},{"timestamp":1476324902005,"value":1.6438665216E10},{"timestamp":1476324842005,"value":1.6438665216E10},{"timestamp":1476324782006,"value":1.6438665216E10},{"timestamp":1476324722005,"value":1.6438665216E10},{"timestamp":1476324662005,"value":1.6438665216E10},{"timestamp":1476324602005,"value":1.6438665216E10},{"timestamp":1476324542004,"value":1.6438665216E10},{"timestamp":1476324481005,"value":1.6438665216E10},{"timestamp":1476324421005,"value":1.6438665216E10},{"timestamp":1476324361005,"value":1.6438665216E10},{"timestamp":1476324301005,"value":1.6438665216E10},{"timestamp":1476324241005,"value":1.6438665216E10},{"timestamp":1476324181005,"value":1.6438665216E10},{"timestamp":1476324120005,"value":1.6438665216E10},{"timestamp":1476324060005,"value":1.6438665216E10},{"timestamp":1476324000005,"value":1.6438665216E10},{"timestamp":1476300775012,"value":1.6438665216E10},{"timestamp":1476300715021,"value":1.6438665216E10},{"timestamp":1476300654013,"value":1.6438665216E10},{"timestamp":1476323940005,"value":1.6438665216E10},{"timestamp":1476323880005,"value":1.6438665216E10},{"timestamp":1476323820006,"value":1.6438665216E10},{"timestamp":1476323760005,"value":1.6438665216E10},{"timestamp":1476323700006,"value":1.6438665216E10},{"timestamp":1476323640005,"value":1.6438665216E10},{"timestamp":1476323580005,"value":1.6438665216E10},{"timestamp":1476323520005,"value":1.6438665216E10},{"timestamp":1476323460004,"value":1.6438665216E10},{"timestamp":1476323400005,"value":1.6438665216E10},{"timestamp":1476323340004,"value":1.6438665216E10},{"timestamp":1476323280004,"value":1.6438665216E10},{"timestamp":1476323220005,"value":1.6438665216E10},{"timestamp":1476323160006,"value":1.6438665216E10},{"timestamp":1476323100005,"value":1.6438665216E10},{"timestamp":1476323040008,"value":1.6438665216E10},{"timestamp":1476322980005,"value":1.6438665216E10},{"timestamp":1476322920005,"value":1.6438665216E10},{"timestamp":1476322860021,"value":1.6438665216E10},{"timestamp":1476322800006,"value":1.6438665216E10},{"timestamp":1476322739005,"value":1.6438665216E10},{"timestamp":1476322679005,"value":1.6438665216E10},{"timestamp":1476322619005,"value":1.6438665216E10},{"timestamp":1476322559005,"value":1.6438665216E10},{"timestamp":1476322499005,"value":1.6438665216E10},{"timestamp":1476322439005,"value":1.6438665216E10},{"timestamp":1476322379005,"value":1.6438665216E10},{"timestamp":1476322319006,"value":1.6438665216E10},{"timestamp":1476322259005,"value":1.6438665216E10},{"timestamp":1476322199005,"value":1.6438665216E10},{"timestamp":1476322139005,"value":1.6438665216E10},{"timestamp":1476322079004,"value":1.6438665216E10},{"timestamp":1476322019005,"value":1.6438665216E10},{"timestamp":1476321959005,"value":1.6438665216E10},{"timestamp":1476321899005,"value":1.6438665216E10},{"timestamp":1476321839005,"value":1.6438665216E10},{"timestamp":1476321779005,"value":1.6438665216E10},{"timestamp":1476321718005,"value":1.6438665216E10},{"timestamp":1476321658005,"value":1.6438665216E10},{"timestamp":1476321598005,"value":1.6438665216E10},{"timestamp":1476321538004,"value":1.6438665216E10},{"timestamp":1476321478005,"value":1.6438665216E10},{"timestamp":1476321418005,"value":1.6438665216E10},{"timestamp":1476321358005,"value":1.6438665216E10},{"timestamp":1476321298005,"value":1.6438665216E10},{"timestamp":1476321238005,"value":1.6438665216E10},{"timestamp":1476321177005,"value":1.6438665216E10},{"timestamp":1476321117006,"value":1.6438665216E10},{"timestamp":1476321057005,"value":1.6438665216E10},{"timestamp":1476320997005,"value":1.6438665216E10},{"timestamp":1476320937006,"value":1.6438665216E10},{"timestamp":1476320877005,"value":1.6438665216E10},{"timestamp":1476320817017,"value":1.6438665216E10},{"timestamp":1476320757005,"value":1.6438665216E10},{"timestamp":1476320697005,"value":1.6438665216E10},{"timestamp":1476320637005,"value":1.6438665216E10},{"timestamp":1476320577004,"value":1.6438665216E10},{"timestamp":1476320516006,"value":1.6438665216E10},{"timestamp":1476320456019,"value":1.6438665216E10},{"timestamp":1476320396005,"value":1.6438665216E10},{"timestamp":1476320336005,"value":1.6438665216E10},{"timestamp":1476320276005,"value":1.6438665216E10},{"timestamp":1476320215006,"value":1.6438665216E10},{"timestamp":1476320155006,"value":1.6438665216E10},{"timestamp":1476320095005,"value":1.6438665216E10},{"timestamp":1476320035004,"value":1.6438665216E10},{"timestamp":1476319974007,"value":1.6438665216E10},{"timestamp":1476319914005,"value":1.6438665216E10},{"timestamp":1476319854007,"value":1.6438665216E10},{"timestamp":1476319794006,"value":1.6438665216E10},{"timestamp":1476319733005,"value":1.6438665216E10},{"timestamp":1476319673005,"value":1.6438665216E10},{"timestamp":1476319612006,"value":1.6438665216E10},{"timestamp":1476319552005,"value":1.6438665216E10},{"timestamp":1476319492019,"value":1.6438665216E10},{"timestamp":1476319432005,"value":1.6438665216E10},{"timestamp":1476319372005,"value":1.6438665216E10},{"timestamp":1476319312006,"value":1.6438665216E10},{"timestamp":1476319252006,"value":1.6438665216E10},{"timestamp":1476319192005,"value":1.6438665216E10},{"timestamp":1476319132006,"value":1.6438665216E10},{"timestamp":1476319072005,"value":1.6438665216E10},{"timestamp":1476319012005,"value":1.6438665216E10},{"timestamp":1476318952006,"value":1.6438665216E10},{"timestamp":1476318892005,"value":1.6438665216E10},{"timestamp":1476318832005,"value":1.6438665216E10},{"timestamp":1476318771006,"value":1.6438665216E10},{"timestamp":1476318711005,"value":1.6438665216E10},{"timestamp":1476318651006,"value":1.6438665216E10},{"timestamp":1476318590006,"value":1.6438665216E10},{"timestamp":1476318529006,"value":1.6438665216E10},{"timestamp":1476318469005,"value":1.6438665216E10},{"timestamp":1476318408006,"value":1.6438665216E10},{"timestamp":1476318348005,"value":1.6438665216E10},{"timestamp":1476318288021,"value":1.6438665216E10},{"timestamp":1476318228005,"value":1.6438665216E10},{"timestamp":1476318168005,"value":1.6438665216E10},{"timestamp":1476318108005,"value":1.6438665216E10},{"timestamp":1476318047004,"value":1.6438665216E10},{"timestamp":1476317987019,"value":1.6438665216E10},{"timestamp":1476317927003,"value":1.6438665216E10},{"timestamp":1476317867004,"value":1.6438665216E10},{"timestamp":1476317807004,"value":1.6438665216E10},{"timestamp":1476317747003,"value":1.6438665216E10},{"timestamp":1476317687004,"value":1.6438665216E10},{"timestamp":1476317627006,"value":1.6438665216E10},{"timestamp":1476317567006,"value":1.6438665216E10},{"timestamp":1476317507005,"value":1.6438665216E10},{"timestamp":1476317447005,"value":1.6438665216E10},{"timestamp":1476317387006,"value":1.6438665216E10},{"timestamp":1476317327005,"value":1.6438665216E10},{"timestamp":1476317266006,"value":1.6438665216E10},{"timestamp":1476317205006,"value":1.6438665216E10},{"timestamp":1476317145006,"value":1.6438665216E10},{"timestamp":1476317085006,"value":1.6438665216E10},{"timestamp":1476317025021,"value":1.6438665216E10},{"timestamp":1476316965006,"value":1.6438665216E10},{"timestamp":1476316904006,"value":1.6438665216E10},{"timestamp":1476316844005,"value":1.6438665216E10},{"timestamp":1476316784010,"value":1.6438665216E10},{"timestamp":1476316724006,"value":1.6438665216E10},{"timestamp":1476316664006,"value":1.6438665216E10},{"timestamp":1476316604005,"value":1.6438665216E10},{"timestamp":1476316544006,"value":1.6438665216E10},{"timestamp":1476316484012,"value":1.6438665216E10},{"timestamp":1476316424006,"value":1.6438665216E10},{"timestamp":1476316364006,"value":1.6438665216E10},{"timestamp":1476316304007,"value":1.6438665216E10},{"timestamp":1476316244006,"value":1.6438665216E10},{"timestamp":1476316184027,"value":1.6438665216E10},{"timestamp":1476316124006,"value":1.6438665216E10},{"timestamp":1476316064006,"value":1.6438665216E10},{"timestamp":1476316004006,"value":1.6438665216E10},{"timestamp":1476315944006,"value":1.6438665216E10},{"timestamp":1476315884012,"value":1.6438665216E10},{"timestamp":1476315824008,"value":1.6438665216E10},{"timestamp":1476315764007,"value":1.6438665216E10},{"timestamp":1476315704009,"value":1.6438665216E10},{"timestamp":1476315644010,"value":1.6438665216E10},{"timestamp":1476315584023,"value":1.6438665216E10},{"timestamp":1476315524009,"value":1.6438665216E10},{"timestamp":1476315464008,"value":1.6438665216E10},{"timestamp":1476315404012,"value":1.6438665216E10},{"timestamp":1476315344012,"value":1.6438665216E10},{"timestamp":1476315284250,"value":1.6438665216E10},{"timestamp":1476315224019,"value":1.6438665216E10},{"timestamp":1476315164013,"value":1.6438665216E10},{"timestamp":1476315104009,"value":1.6438665216E10},{"timestamp":1476315044023,"value":1.6438665216E10}]' http_version: - recorded_at: Wed, 21 Sep 2016 01:13:07 GMT + recorded_at: Thu, 13 Oct 2016 03:30:38 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_return_platform_memory_def.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_return_platform_memory_def.yml index 385d13b..e56218e 100644 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_return_platform_memory_def.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_return_platform_memory_def.yml @@ -1,5 +1,46 @@ --- http_interactions: +- request: + method: get + uri: http://jdoe:password@localhost:8080/<%= tenant %>/metrics/status + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Accept-Encoding: + - identity + User-Agent: + - <%= tenant %>-client-ruby + Hawkular-Tenant: + - <%= tenant %> + Content-Type: + - application/json + Host: + - localhost:8080 + response: + status: + code: 200 + message: OK + headers: + Connection: + - keep-alive + X-Powered-By: + - Undertow/1 + Server: + - WildFly/10 + Content-Type: + - application/json + Content-Length: + - '133' + Date: + - Thu, 13 Oct 2016 03:30:35 GMT + body: + encoding: UTF-8 + string: '{"MetricsService":"STARTED","Implementation-Version":"0.20.1.Final","Built-From-Git-SHA1":"f23946235446d3425db31d262b47b4f950ddabb3"}' + http_version: + recorded_at: Thu, 13 Oct 2016 03:30:35 GMT - request: method: get uri: http://jdoe:password@localhost:8080/<%= tenant %>/inventory/status @@ -35,18 +76,18 @@ http_interactions: Content-Length: - '234' Date: - - Wed, 21 Sep 2016 01:13:07 GMT + - Thu, 13 Oct 2016 03:30:35 GMT body: encoding: UTF-8 string: |- { - "Implementation-Version" : "0.18.0.Final", - "Built-From-Git-SHA1" : "be1107e48907ebc1d8de4dc571275edd9daf0424", + "Implementation-Version" : "0.20.0.Final", + "Built-From-Git-SHA1" : "a3b55c0c65a141fdbb007524d063b5d57bf2d96c", "Inventory-Implementation" : "org.<%= tenant %>.inventory.impl.tinkerpop.TinkerpopInventory", "Initialized" : "true" } http_version: - recorded_at: Wed, 21 Sep 2016 01:13:07 GMT + recorded_at: Thu, 13 Oct 2016 03:30:35 GMT - request: method: get uri: http://jdoe:password@localhost:8080/<%= tenant %>/inventory/traversal/type=f @@ -82,7 +123,7 @@ http_interactions: Pragma: - no-cache Date: - - Wed, 21 Sep 2016 01:13:07 GMT + - Thu, 13 Oct 2016 03:30:35 GMT X-Total-Count: - '1' Connection: @@ -90,24 +131,24 @@ http_interactions: Content-Type: - application/json Content-Length: - - '299' + - '300' Link: - /inventory/traversal/type=f>; rel="current" body: encoding: UTF-8 string: |- [ { - "path" : "/t;<%= tenant %>/f;7774c92a-0896-4586-bdae-6a8e985ace09", - "identityHash" : "18e5b733297dda56275715ed9fc21d59e23848", + "path" : "/t;<%= tenant %>/f;d19d84dc-f403-4f5b-a987-fbd48863ea4f", + "identityHash" : "12efca83e331bdae189fa5db13d2d5a6b70f5a6", "contentHash" : "da39a3ee5e6b4bd3255bfef95601890afd879", - "syncHash" : "197fb5b99df7d1506dd9bc4a898416dbf3b12e6c", - "id" : "7774c92a-0896-4586-bdae-6a8e985ace09" + "syncHash" : "af2860c4e1bb64fc3177139eeb3ab967d654f324", + "id" : "d19d84dc-f403-4f5b-a987-fbd48863ea4f" } ] http_version: - recorded_at: Wed, 21 Sep 2016 01:13:07 GMT + recorded_at: Thu, 13 Oct 2016 03:30:35 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/<%= tenant %>/metrics/gauges/MI~R~%5B7774c92a-0896-4586-bdae-6a8e985ace09%2Fplatform~%2FOPERATING_SYSTEM=7774c92a-0896-4586-bdae-6a8e985ace09_OperatingSystem%2FMEMORY=Memory%5D~MT~Total%20Memory + uri: http://jdoe:password@localhost:8080/<%= tenant %>/metrics/gauges/MI~R~%5Bd19d84dc-f403-4f5b-a987-fbd48863ea4f%2Fplatform~%2FOPERATING_SYSTEM=d19d84dc-f403-4f5b-a987-fbd48863ea4f_OperatingSystem%2FMEMORY=Memory%5D~MT~Platform_Memory_Total%20Memory body: encoding: US-ASCII string: '' @@ -140,17 +181,17 @@ http_interactions: Pragma: - no-cache Date: - - Wed, 21 Sep 2016 01:13:07 GMT + - Thu, 13 Oct 2016 03:30:35 GMT Connection: - keep-alive Content-Type: - application/json Content-Length: - - '276' + - '292' body: encoding: UTF-8 - string: '{"id":"MI~R~[7774c92a-0896-4586-bdae-6a8e985ace09/platform~/OPERATING_SYSTEM=7774c92a-0896-4586-bdae-6a8e985ace09_OperatingSystem/MEMORY=Memory]~MT~Total - Memory","dataRetention":14,"type":"gauge","tenantId":"<%= tenant %>","minTimestamp":1474419301015,"maxTimestamp":1474420386005}' + string: '{"id":"MI~R~[d19d84dc-f403-4f5b-a987-fbd48863ea4f/platform~/OPERATING_SYSTEM=d19d84dc-f403-4f5b-a987-fbd48863ea4f_OperatingSystem/MEMORY=Memory]~MT~Platform_Memory_Total + Memory","dataRetention":14,"type":"gauge","tenantId":"<%= tenant %>","minTimestamp":1476294284064,"maxTimestamp":1476329399006}' http_version: - recorded_at: Wed, 21 Sep 2016 01:13:07 GMT + recorded_at: Thu, 13 Oct 2016 03:30:35 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/setup_client.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/setup_client.yml new file mode 100644 index 0000000..aa30751 --- /dev/null +++ b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/setup_client.yml @@ -0,0 +1,44 @@ +--- +http_interactions: +- request: + method: get + uri: http://jdoe:password@localhost:8080/hawkular/metrics/status + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Accept-Encoding: + - identity + User-Agent: + - hawkular-client-ruby + Hawkular-Tenant: + - <%= type %>metrics_services-vcr-tenant-e034c355-5c5e-4a5e-8258-242088759e96 + Content-Type: + - application/json + Host: + - localhost:8080 + response: + status: + code: 200 + message: OK + headers: + Connection: + - keep-alive + X-Powered-By: + - Undertow/1 + Server: + - WildFly/10 + Content-Type: + - application/json + Content-Length: + - '133' + Date: + - Thu, 13 Oct 2016 03:30:38 GMT + body: + encoding: UTF-8 + string: '{"MetricsService":"STARTED","Implementation-Version":"0.20.1.Final","Built-From-Git-SHA1":"f23946235446d3425db31d262b47b4f950ddabb3"}' + http_version: + recorded_at: Thu, 13 Oct 2016 03:30:38 GMT +recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_fetch_rate_stats_for_mixed_metric.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_fetch_rate_stats_for_mixed_metric.yml index e3168df..c59bcf8 100644 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_fetch_rate_stats_for_mixed_metric.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_fetch_rate_stats_for_mixed_metric.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/ + uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/ body: encoding: US-ASCII string: '' @@ -35,18 +35,18 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 05 Sep 2016 12:58:07 GMT + - Thu, 13 Oct 2016 03:22:22 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 05 Sep 2016 12:58:07 GMT + recorded_at: Thu, 13 Oct 2016 03:22:22 GMT - request: method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/data + uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/raw body: encoding: UTF-8 - string: '{"gauges":[],"counters":[{"id":"<%= id %>","data":[{"value":100.0,"timestamp":1473080287184}]}],"availabilities":[]}' + string: '{"gauges":[],"counters":[{"id":"<%= id %>","data":[{"value":100.0,"timestamp":1476328942622}]}],"availabilities":[],"strings":[]}' headers: Accept: - application/json @@ -59,7 +59,7 @@ http_interactions: Content-Type: - application/json Content-Length: - - '143' + - '156' Host: - localhost:8080 response: @@ -82,18 +82,18 @@ http_interactions: Content-Length: - '0' Date: - - Mon, 05 Sep 2016 12:58:07 GMT + - Thu, 13 Oct 2016 03:22:22 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 05 Sep 2016 12:58:07 GMT + recorded_at: Thu, 13 Oct 2016 03:22:22 GMT - request: method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/data + uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/raw body: encoding: UTF-8 - string: '{"gauges":[],"counters":[{"id":"<%= id %>","data":[{"value":110.0,"timestamp":1473080287194}]}],"availabilities":[]}' + string: '{"gauges":[],"counters":[{"id":"<%= id %>","data":[{"value":110.0,"timestamp":1476328942626}]}],"availabilities":[],"strings":[]}' headers: Accept: - application/json @@ -106,7 +106,7 @@ http_interactions: Content-Type: - application/json Content-Length: - - '143' + - '156' Host: - localhost:8080 response: @@ -129,18 +129,18 @@ http_interactions: Content-Length: - '0' Date: - - Mon, 05 Sep 2016 12:58:07 GMT + - Thu, 13 Oct 2016 03:22:22 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 05 Sep 2016 12:58:07 GMT + recorded_at: Thu, 13 Oct 2016 03:22:22 GMT - request: method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/data + uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/raw body: encoding: UTF-8 - string: '{"gauges":[],"counters":[{"id":"<%= id %>","data":[{"value":130.0,"timestamp":1473080287197}]}],"availabilities":[]}' + string: '{"gauges":[],"counters":[{"id":"<%= id %>","data":[{"value":130.0,"timestamp":1476328942630}]}],"availabilities":[],"strings":[]}' headers: Accept: - application/json @@ -153,7 +153,7 @@ http_interactions: Content-Type: - application/json Content-Length: - - '143' + - '156' Host: - localhost:8080 response: @@ -176,18 +176,18 @@ http_interactions: Content-Length: - '0' Date: - - Mon, 05 Sep 2016 12:58:07 GMT + - Thu, 13 Oct 2016 03:22:22 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 05 Sep 2016 12:58:07 GMT + recorded_at: Thu, 13 Oct 2016 03:22:22 GMT - request: method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/data + uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/raw body: encoding: UTF-8 - string: '{"gauges":[],"counters":[{"id":"<%= id %>","data":[{"value":200.0,"timestamp":1473080287200}]}],"availabilities":[]}' + string: '{"gauges":[],"counters":[{"id":"<%= id %>","data":[{"value":200.0,"timestamp":1476328942633}]}],"availabilities":[],"strings":[]}' headers: Accept: - application/json @@ -200,7 +200,7 @@ http_interactions: Content-Type: - application/json Content-Length: - - '143' + - '156' Host: - localhost:8080 response: @@ -223,15 +223,15 @@ http_interactions: Content-Length: - '0' Date: - - Mon, 05 Sep 2016 12:58:07 GMT + - Thu, 13 Oct 2016 03:22:22 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 05 Sep 2016 12:58:07 GMT + recorded_at: Thu, 13 Oct 2016 03:22:22 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/ + uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/ body: encoding: US-ASCII string: '' @@ -264,7 +264,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 05 Sep 2016 12:58:07 GMT + - Thu, 13 Oct 2016 03:22:22 GMT Connection: - keep-alive Content-Type: @@ -273,15 +273,15 @@ http_interactions: - '161' body: encoding: UTF-8 - string: '[{"timestamp":1473080287200,"value":200},{"timestamp":1473080287197,"value":130},{"timestamp":1473080287194,"value":110},{"timestamp":1473080287184,"value":100}]' + string: '[{"timestamp":1476328942633,"value":200},{"timestamp":1476328942630,"value":130},{"timestamp":1476328942626,"value":110},{"timestamp":1476328942622,"value":100}]' http_version: - recorded_at: Mon, 05 Sep 2016 12:58:07 GMT + recorded_at: Thu, 13 Oct 2016 03:22:22 GMT - request: method: post uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/stats/query body: encoding: UTF-8 - string: '{"metrics":{"gauge":[],"counter":["<%= id %>"],"availability":[]},"start":1473080287184,"end":1473080287201,"bucketDuration":"17ms","types":["gauge","gauge_rate","counter","counter_rate","availability"]}' + string: '{"metrics":{"gauge":[],"counter":["<%= id %>"],"availability":[]},"start":1476328942622,"end":1476328942634,"bucketDuration":"12ms","types":["gauge","gauge_rate","counter","counter_rate","availability"]}' headers: Accept: - application/json @@ -313,16 +313,16 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 05 Sep 2016 12:58:07 GMT + - Thu, 13 Oct 2016 03:22:22 GMT Connection: - keep-alive Content-Type: - application/json Content-Length: - - '394' + - '404' body: encoding: UTF-8 - string: '{"counter_rate":{"<%= id %>":[{"start":1473080287184,"end":1473080287201,"min":60000.0,"avg":620000.0,"median":400000.0,"max":1400000.0,"sum":1860000.0,"samples":3,"empty":false}]},"counter":{"<%= id %>":[{"start":1473080287184,"end":1473080287201,"min":100.0,"avg":135.0,"median":110.0,"max":200.0,"sum":540.0,"samples":4,"empty":false}]}}' + string: '{"counter_rate":{"<%= id %>":[{"start":1476328942622,"end":1476328942634,"min":150000.0,"avg":616666.6666666667,"median":300000.0,"max":1400000.0,"sum":1850000.0,"samples":3,"empty":false}]},"counter":{"<%= id %>":[{"start":1476328942622,"end":1476328942634,"min":100.0,"avg":135.0,"median":110.0,"max":200.0,"sum":540.0,"samples":4,"empty":false}]}}' http_version: - recorded_at: Mon, 05 Sep 2016 12:58:07 GMT -recorded_with: VCR 3.0.1 + recorded_at: Thu, 13 Oct 2016 03:22:22 GMT +recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_fetch_stats_for_mixed_metric.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_fetch_stats_for_mixed_metric.yml index 67e1268..18ab9a8 100644 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_fetch_stats_for_mixed_metric.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_fetch_stats_for_mixed_metric.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/ + uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/ body: encoding: US-ASCII string: '' @@ -35,15 +35,15 @@ http_interactions: Pragma: - no-cache Date: - - Tue, 30 Aug 2016 19:10:38 GMT + - Thu, 13 Oct 2016 03:22:16 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Tue, 30 Aug 2016 19:10:38 GMT + recorded_at: Thu, 13 Oct 2016 03:22:16 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/data/ + uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/raw/ body: encoding: US-ASCII string: '' @@ -76,15 +76,15 @@ http_interactions: Pragma: - no-cache Date: - - Tue, 30 Aug 2016 19:10:38 GMT + - Thu, 13 Oct 2016 03:22:16 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Tue, 30 Aug 2016 19:10:38 GMT + recorded_at: Thu, 13 Oct 2016 03:22:16 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/data/ + uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/raw/ body: encoding: US-ASCII string: '' @@ -117,18 +117,18 @@ http_interactions: Pragma: - no-cache Date: - - Tue, 30 Aug 2016 19:10:38 GMT + - Thu, 13 Oct 2016 03:22:16 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Tue, 30 Aug 2016 19:10:38 GMT + recorded_at: Thu, 13 Oct 2016 03:22:16 GMT - request: method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/data + uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/raw body: encoding: UTF-8 - string: '{"gauges":[{"id":"<%= id %>","data":[{"value":1.1,"timestamp":1472584238893}]}],"counters":[{"id":"<%= id %>","data":[{"value":1,"timestamp":1472584238893}]}],"availabilities":[{"id":"<%= id %>","data":[{"value":"down","timestamp":1472584238893}]}]}' + string: '{"gauges":[{"id":"<%= id %>","data":[{"value":1.1,"timestamp":1476328936034}]}],"counters":[{"id":"<%= id %>","data":[{"value":1,"timestamp":1476328936034}]}],"availabilities":[{"id":"<%= id %>","data":[{"value":"down","timestamp":1476328936034}]}],"strings":[]}' headers: Accept: - application/json @@ -141,7 +141,7 @@ http_interactions: Content-Type: - application/json Content-Length: - - '330' + - '343' Host: - localhost:8080 response: @@ -164,15 +164,15 @@ http_interactions: Content-Length: - '0' Date: - - Tue, 30 Aug 2016 19:10:38 GMT + - Thu, 13 Oct 2016 03:22:16 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Tue, 30 Aug 2016 19:10:38 GMT + recorded_at: Thu, 13 Oct 2016 03:22:16 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/ + uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/ body: encoding: US-ASCII string: '' @@ -205,7 +205,7 @@ http_interactions: Pragma: - no-cache Date: - - Tue, 30 Aug 2016 19:10:38 GMT + - Thu, 13 Oct 2016 03:22:16 GMT Connection: - keep-alive Content-Type: @@ -214,12 +214,12 @@ http_interactions: - '39' body: encoding: UTF-8 - string: '[{"timestamp":1472584238893,"value":1}]' + string: '[{"timestamp":1476328936034,"value":1}]' http_version: - recorded_at: Tue, 30 Aug 2016 19:10:38 GMT + recorded_at: Thu, 13 Oct 2016 03:22:16 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/data/ + uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/raw/ body: encoding: US-ASCII string: '' @@ -252,7 +252,7 @@ http_interactions: Pragma: - no-cache Date: - - Tue, 30 Aug 2016 19:10:38 GMT + - Thu, 13 Oct 2016 03:22:16 GMT Connection: - keep-alive Content-Type: @@ -261,12 +261,12 @@ http_interactions: - '41' body: encoding: UTF-8 - string: '[{"timestamp":1472584238893,"value":1.1}]' + string: '[{"timestamp":1476328936034,"value":1.1}]' http_version: - recorded_at: Tue, 30 Aug 2016 19:10:38 GMT + recorded_at: Thu, 13 Oct 2016 03:22:16 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/data/ + uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/raw/ body: encoding: US-ASCII string: '' @@ -299,7 +299,7 @@ http_interactions: Pragma: - no-cache Date: - - Tue, 30 Aug 2016 19:10:38 GMT + - Thu, 13 Oct 2016 03:22:16 GMT Connection: - keep-alive Content-Type: @@ -308,15 +308,15 @@ http_interactions: - '44' body: encoding: UTF-8 - string: '[{"timestamp":1472584238893,"value":"down"}]' + string: '[{"timestamp":1476328936034,"value":"down"}]' http_version: - recorded_at: Tue, 30 Aug 2016 19:10:38 GMT + recorded_at: Thu, 13 Oct 2016 03:22:16 GMT - request: method: post uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/stats/query body: encoding: UTF-8 - string: '{"metrics":{"gauge":["<%= id %>"],"counter":["<%= id %>"],"availability":["<%= id %>"]},"start":1472584238893,"end":1472584238894,"bucketDuration":"1ms"}' + string: '{"metrics":{"gauge":["<%= id %>"],"counter":["<%= id %>"],"availability":["<%= id %>"]},"start":1476328936034,"end":1476328936035,"bucketDuration":"1ms"}' headers: Accept: - application/json @@ -348,17 +348,16 @@ http_interactions: Pragma: - no-cache Date: - - Tue, 30 Aug 2016 19:10:38 GMT + - Thu, 13 Oct 2016 03:22:16 GMT Connection: - keep-alive Content-Type: - application/json Content-Length: - - '742' + - '711' body: encoding: UTF-8 - string: '{"gauge":{"<%= id %>":[{"start":1472584238893,"end":1472584238894,"min":1.1,"avg":1.1,"median":1.1,"max":1.1,"sum":1.1,"samples":1,"empty":false}]},"counter":{"<%= id %>":[{"start":1472584238893,"end":1472584238894,"min":1.0,"avg":1.0,"median":1.0,"max":1.0,"sum":1.0,"samples":1,"empty":false}]},"availability":{"<%= id %>":[{"start":1472584238893,"end":1472584238894,"durationMap":{"AvailabilityType{code=1, - text=down}":1},"lastNotUptime":1472584238894,"uptimeRatio":0.0,"notUpCount":1,"downtimeDuration":1,"lastDowntime":1472584238894,"downtimeCount":1,"adminDuration":0,"downDuration":1,"unknownDuration":0,"upDuration":0,"notUpDuration":1,"empty":false}]}}' + string: '{"gauge":{"<%= id %>":[{"start":1476328936034,"end":1476328936035,"min":1.1,"avg":1.1,"median":1.1,"max":1.1,"sum":1.1,"samples":1,"empty":false}]},"counter":{"<%= id %>":[{"start":1476328936034,"end":1476328936035,"min":1.0,"avg":1.0,"median":1.0,"max":1.0,"sum":1.0,"samples":1,"empty":false}]},"availability":{"<%= id %>":[{"start":1476328936034,"end":1476328936035,"durationMap":{"down":1},"lastNotUptime":1476328936035,"uptimeRatio":0.0,"notUpCount":1,"downtimeDuration":1,"lastDowntime":1476328936035,"downtimeCount":1,"adminDuration":0,"notUpDuration":1,"downDuration":1,"upDuration":0,"unknownDuration":0,"empty":false}]}}' http_version: - recorded_at: Tue, 30 Aug 2016 19:10:38 GMT + recorded_at: Thu, 13 Oct 2016 03:22:16 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml index e7df58a..abdf41a 100644 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml @@ -1,5 +1,46 @@ --- http_interactions: +- request: + method: get + uri: http://jdoe:password@localhost:8080/hawkular/metrics/status + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Accept-Encoding: + - identity + User-Agent: + - hawkular-client-ruby + Hawkular-Tenant: + - <%= vcr_test_tenant %> + Content-Type: + - application/json + Host: + - localhost:8080 + response: + status: + code: 200 + message: OK + headers: + Connection: + - keep-alive + X-Powered-By: + - Undertow/1 + Server: + - WildFly/10 + Content-Type: + - application/json + Content-Length: + - '133' + Date: + - Thu, 13 Oct 2016 03:21:20 GMT + body: + encoding: UTF-8 + string: '{"MetricsService":"STARTED","Implementation-Version":"0.20.1.Final","Built-From-Git-SHA1":"f23946235446d3425db31d262b47b4f950ddabb3"}' + http_version: + recorded_at: Thu, 13 Oct 2016 03:21:20 GMT - request: method: post uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/raw/query @@ -37,12 +78,12 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:21:20 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:21:20 GMT - request: method: post uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/raw/query @@ -80,12 +121,12 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:21:20 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:21:20 GMT - request: method: post uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/raw/query @@ -123,18 +164,18 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:21:20 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:21:20 GMT - request: method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/data + uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/raw body: encoding: UTF-8 - string: '{"gauges":[{"id":"<%= id1 %>","data":[{"value":1.1,"timestamp":1471274437372}]},{"id":"<%= id2 %>","data":[{"value":2.2,"timestamp":1471274437372}]},{"id":"<%= id3 %>","data":[{"value":3.3,"timestamp":1471274437372}]}],"counters":[{"id":"<%= id1 %>","data":[{"value":1,"timestamp":1471274437372}]},{"id":"<%= id2 %>","data":[{"value":2,"timestamp":1471274437372}]},{"id":"<%= id3 %>","data":[{"value":3,"timestamp":1471274437372}]}],"availabilities":[{"id":"<%= id1 %>","data":[{"value":"up","timestamp":1471274437372}]},{"id":"<%= id2 %>","data":[{"value":"down","timestamp":1471274437372}]},{"id":"<%= id3 %>","data":[{"value":"up","timestamp":1471274437372}]}]}' + string: '{"gauges":[{"id":"<%= id1 %>","data":[{"value":1.1,"timestamp":1476328880490}]},{"id":"<%= id2 %>","data":[{"value":2.2,"timestamp":1476328880490}]},{"id":"<%= id3 %>","data":[{"value":3.3,"timestamp":1476328880490}]}],"counters":[{"id":"<%= id1 %>","data":[{"value":1,"timestamp":1476328880490}]},{"id":"<%= id2 %>","data":[{"value":2,"timestamp":1476328880490}]},{"id":"<%= id3 %>","data":[{"value":3,"timestamp":1476328880490}]}],"availabilities":[{"id":"<%= id1 %>","data":[{"value":"up","timestamp":1476328880490}]},{"id":"<%= id2 %>","data":[{"value":"down","timestamp":1476328880490}]},{"id":"<%= id3 %>","data":[{"value":"up","timestamp":1476328880490}]}],"strings":[]}' headers: Accept: - application/json @@ -147,7 +188,7 @@ http_interactions: Content-Type: - application/json Content-Length: - - '898' + - '911' Host: - localhost:8080 response: @@ -170,12 +211,12 @@ http_interactions: Content-Length: - '0' Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:21:20 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:21:20 GMT - request: method: post uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/raw/query @@ -213,7 +254,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:21:20 GMT Connection: - keep-alive Content-Type: @@ -222,9 +263,9 @@ http_interactions: - '280' body: encoding: UTF-8 - string: '[{"id":"<%= id1 %>","data":[{"timestamp":1471274437372,"value":1}]},{"id":"<%= id2 %>","data":[{"timestamp":1471274437372,"value":2}]},{"id":"<%= id3 %>","data":[{"timestamp":1471274437372,"value":3}]}]' + string: '[{"id":"<%= id1 %>","data":[{"timestamp":1476328880490,"value":1}]},{"id":"<%= id2 %>","data":[{"timestamp":1476328880490,"value":2}]},{"id":"<%= id3 %>","data":[{"timestamp":1476328880490,"value":3}]}]' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:21:20 GMT - request: method: post uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/raw/query @@ -262,7 +303,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:21:20 GMT Connection: - keep-alive Content-Type: @@ -271,9 +312,9 @@ http_interactions: - '286' body: encoding: UTF-8 - string: '[{"id":"<%= id1 %>","data":[{"timestamp":1471274437372,"value":1.1}]},{"id":"<%= id2 %>","data":[{"timestamp":1471274437372,"value":2.2}]},{"id":"<%= id3 %>","data":[{"timestamp":1471274437372,"value":3.3}]}]' + string: '[{"id":"<%= id1 %>","data":[{"timestamp":1476328880490,"value":1.1}]},{"id":"<%= id2 %>","data":[{"timestamp":1476328880490,"value":2.2}]},{"id":"<%= id3 %>","data":[{"timestamp":1476328880490,"value":3.3}]}]' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:21:20 GMT - request: method: post uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/raw/query @@ -311,7 +352,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:21:20 GMT Connection: - keep-alive Content-Type: @@ -320,7 +361,7 @@ http_interactions: - '291' body: encoding: UTF-8 - string: '[{"id":"<%= id1 %>","data":[{"timestamp":1471274437372,"value":"up"}]},{"id":"<%= id2 %>","data":[{"timestamp":1471274437372,"value":"down"}]},{"id":"<%= id3 %>","data":[{"timestamp":1471274437372,"value":"up"}]}]' + string: '[{"id":"<%= id1 %>","data":[{"timestamp":1476328880490,"value":"up"}]},{"id":"<%= id2 %>","data":[{"timestamp":1476328880490,"value":"down"}]},{"id":"<%= id3 %>","data":[{"timestamp":1476328880490,"value":"up"}]}]' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:21:20 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml index 951fc58..8c29587 100644 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/ + uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/ body: encoding: US-ASCII string: '' @@ -35,15 +35,15 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:21:52 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:21:52 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/data/ + uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/raw/ body: encoding: US-ASCII string: '' @@ -76,15 +76,15 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:21:52 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:21:52 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/data/ + uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/raw/ body: encoding: US-ASCII string: '' @@ -117,18 +117,18 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:21:52 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:21:52 GMT - request: method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/data + uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/raw body: encoding: UTF-8 - string: '{"gauges":[{"id":"<%= id %>","data":[{"value":1.1,"timestamp":1471274437464}]}],"counters":[{"id":"<%= id %>","data":[{"value":1,"timestamp":1471274437465}]}],"availabilities":[{"id":"<%= id %>","data":[{"value":"down","timestamp":1471274437465}]}]}' + string: '{"gauges":[{"id":"<%= id %>","data":[{"value":1.1,"timestamp":1476328912275}]}],"counters":[{"id":"<%= id %>","data":[{"value":1,"timestamp":1476328912275}]}],"availabilities":[{"id":"<%= id %>","data":[{"value":"down","timestamp":1476328912275}]}],"strings":[]}' headers: Accept: - application/json @@ -141,7 +141,7 @@ http_interactions: Content-Type: - application/json Content-Length: - - '330' + - '343' Host: - localhost:8080 response: @@ -164,15 +164,15 @@ http_interactions: Content-Length: - '0' Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:21:52 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:21:52 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/ + uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/ body: encoding: US-ASCII string: '' @@ -205,7 +205,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:21:52 GMT Connection: - keep-alive Content-Type: @@ -214,12 +214,12 @@ http_interactions: - '39' body: encoding: UTF-8 - string: '[{"timestamp":1471274437465,"value":1}]' + string: '[{"timestamp":1476328912275,"value":1}]' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:21:52 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/data/ + uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/raw/ body: encoding: US-ASCII string: '' @@ -252,7 +252,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:21:52 GMT Connection: - keep-alive Content-Type: @@ -261,12 +261,12 @@ http_interactions: - '41' body: encoding: UTF-8 - string: '[{"timestamp":1471274437464,"value":1.1}]' + string: '[{"timestamp":1476328912275,"value":1.1}]' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:21:52 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/data/ + uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/raw/ body: encoding: US-ASCII string: '' @@ -299,7 +299,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:21:52 GMT Connection: - keep-alive Content-Type: @@ -308,7 +308,7 @@ http_interactions: - '44' body: encoding: UTF-8 - string: '[{"timestamp":1471274437465,"value":"down"}]' + string: '[{"timestamp":1476328912275,"value":"down"}]' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:21:52 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_send_mixed_metric_request_of_a_single_type.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_send_mixed_metric_request_of_a_single_type.yml index 5349b4f..30fa46b 100644 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_send_mixed_metric_request_of_a_single_type.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_send_mixed_metric_request_of_a_single_type.yml @@ -2,10 +2,10 @@ http_interactions: - request: method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/data + uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/raw body: encoding: UTF-8 - string: '{"gauges":[],"counters":[{"id":"<%= id %>","data":[{"value":1,"timestamp":1471274437411}]}],"availabilities":[]}' + string: '{"gauges":[],"counters":[{"id":"<%= id %>","data":[{"value":1,"timestamp":1476328897225}]}],"availabilities":[],"strings":[]}' headers: Accept: - application/json @@ -18,7 +18,7 @@ http_interactions: Content-Type: - application/json Content-Length: - - '139' + - '152' Host: - localhost:8080 response: @@ -41,15 +41,15 @@ http_interactions: Content-Length: - '0' Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:21:37 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:21:37 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/ + uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/ body: encoding: US-ASCII string: '' @@ -82,7 +82,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:21:37 GMT Connection: - keep-alive Content-Type: @@ -91,15 +91,15 @@ http_interactions: - '39' body: encoding: UTF-8 - string: '[{"timestamp":1471274437411,"value":1}]' + string: '[{"timestamp":1476328897225,"value":1}]' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:21:37 GMT - request: method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/data + uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/raw body: encoding: UTF-8 - string: '{"gauges":[],"counters":[],"availabilities":[{"id":"<%= id %>","data":[{"value":"down","timestamp":1471274437419}]}]}' + string: '{"gauges":[],"counters":[],"availabilities":[{"id":"<%= id %>","data":[{"value":"down","timestamp":1476328897236}]}],"strings":[]}' headers: Accept: - application/json @@ -112,7 +112,7 @@ http_interactions: Content-Type: - application/json Content-Length: - - '144' + - '157' Host: - localhost:8080 response: @@ -135,15 +135,15 @@ http_interactions: Content-Length: - '0' Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:21:37 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:21:37 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/data/ + uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/raw/ body: encoding: US-ASCII string: '' @@ -176,7 +176,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:21:37 GMT Connection: - keep-alive Content-Type: @@ -185,15 +185,15 @@ http_interactions: - '44' body: encoding: UTF-8 - string: '[{"timestamp":1471274437419,"value":"down"}]' + string: '[{"timestamp":1476328897236,"value":"down"}]' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:21:37 GMT - request: method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/data + uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/raw body: encoding: UTF-8 - string: '{"gauges":[{"id":"<%= id %>","data":[{"value":1.1,"timestamp":1471274437434}]}],"counters":[],"availabilities":[]}' + string: '{"gauges":[{"id":"<%= id %>","data":[{"value":1.1,"timestamp":1476328897249}]}],"counters":[],"availabilities":[],"strings":[]}' headers: Accept: - application/json @@ -206,7 +206,7 @@ http_interactions: Content-Type: - application/json Content-Length: - - '141' + - '154' Host: - localhost:8080 response: @@ -229,15 +229,15 @@ http_interactions: Content-Length: - '0' Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:21:37 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:21:37 GMT - request: method: get - uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/data/ + uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/raw/ body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:21:37 GMT Connection: - keep-alive Content-Type: @@ -279,7 +279,7 @@ http_interactions: - '41' body: encoding: UTF-8 - string: '[{"timestamp":1471274437434,"value":1.1}]' + string: '[{"timestamp":1476328897249,"value":1.1}]' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:21:37 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Status/Should_return_the_version.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/setup_client.yml similarity index 83% rename from spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Status/Should_return_the_version.yml rename to spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/setup_client.yml index 4ac4a16..c6a1df8 100644 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Status/Should_return_the_version.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/setup_client.yml @@ -35,10 +35,10 @@ http_interactions: Content-Length: - '133' Date: - - Mon, 15 Aug 2016 15:20:38 GMT + - Thu, 13 Oct 2016 03:22:22 GMT body: encoding: UTF-8 - string: '{"MetricsService":"STARTED","Implementation-Version":"0.18.0.Final","Built-From-Git-SHA1":"d5281e70603719809bdada72249b9330b22ebf96"}' + string: '{"MetricsService":"STARTED","Implementation-Version":"0.20.1.Final","Built-From-Git-SHA1":"f23946235446d3425db31d262b47b4f950ddabb3"}' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:38 GMT + recorded_at: Thu, 13 Oct 2016 03:22:22 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/No_Tenant/Should_fail.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/No_Tenant/Should_fail.yml index d51cb83..3f22d07 100644 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/No_Tenant/Should_fail.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/No_Tenant/Should_fail.yml @@ -1,11 +1,50 @@ --- http_interactions: +- request: + method: get + uri: http://jdoe:password@localhost:8080/hawkular/metrics/status + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Accept-Encoding: + - identity + User-Agent: + - hawkular-client-ruby + Content-Type: + - application/json + Host: + - localhost:8080 + response: + status: + code: 200 + message: OK + headers: + Connection: + - keep-alive + X-Powered-By: + - Undertow/1 + Server: + - WildFly/10 + Content-Type: + - application/json + Content-Length: + - '133' + Date: + - Thu, 13 Oct 2016 03:20:55 GMT + body: + encoding: UTF-8 + string: '{"MetricsService":"STARTED","Implementation-Version":"0.20.1.Final","Built-From-Git-SHA1":"f23946235446d3425db31d262b47b4f950ddabb3"}' + http_version: + recorded_at: Thu, 13 Oct 2016 03:20:55 GMT - request: method: post - uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data + uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw body: encoding: UTF-8 - string: '[{"value":4,"timestamp":1471274437349}]' + string: '[{"value":4,"timestamp":1476328855754}]' headers: Accept: - application/json @@ -35,7 +74,7 @@ http_interactions: Pragma: - no-cache Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:20:55 GMT Connection: - keep-alive Content-Type: @@ -46,5 +85,5 @@ http_interactions: encoding: UTF-8 string: '{"errorMsg":"Tenant is not specified. Use ''Hawkular-Tenant'' header."}' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:20:55 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Status/Should_return_the_version.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Status/Should_return_the_version.yml index e60e564..a2f54b3 100644 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Status/Should_return_the_version.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Status/Should_return_the_version.yml @@ -35,10 +35,51 @@ http_interactions: Content-Length: - '133' Date: - - Mon, 15 Aug 2016 15:20:37 GMT + - Thu, 13 Oct 2016 03:30:52 GMT body: encoding: UTF-8 - string: '{"MetricsService":"STARTED","Implementation-Version":"0.18.0.Final","Built-From-Git-SHA1":"d5281e70603719809bdada72249b9330b22ebf96"}' + string: '{"MetricsService":"STARTED","Implementation-Version":"0.20.1.Final","Built-From-Git-SHA1":"f23946235446d3425db31d262b47b4f950ddabb3"}' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:37 GMT + recorded_at: Thu, 13 Oct 2016 03:30:52 GMT +- request: + method: get + uri: http://jdoe:password@localhost:8080/hawkular/metrics/status + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Accept-Encoding: + - identity + User-Agent: + - hawkular-client-ruby + Hawkular-Tenant: + - hawkular + Content-Type: + - application/json + Host: + - localhost:8080 + response: + status: + code: 200 + message: OK + headers: + Connection: + - keep-alive + X-Powered-By: + - Undertow/1 + Server: + - WildFly/10 + Content-Type: + - application/json + Content-Length: + - '133' + Date: + - Thu, 13 Oct 2016 03:30:52 GMT + body: + encoding: UTF-8 + string: '{"MetricsService":"STARTED","Implementation-Version":"0.20.1.Final","Built-From-Git-SHA1":"f23946235446d3425db31d262b47b4f950ddabb3"}' + http_version: + recorded_at: Thu, 13 Oct 2016 03:30:52 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/String_metrics/Should_create_string_definition_using_Hash.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/String_metrics/Should_create_string_definition_using_Hash.yml similarity index 91% rename from spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/String_metrics/Should_create_string_definition_using_Hash.yml rename to spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/String_metrics/Should_create_string_definition_using_Hash.yml index 25d7366..ad4fd30 100644 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/String_metrics/Should_create_string_definition_using_Hash.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/String_metrics/Should_create_string_definition_using_Hash.yml @@ -39,7 +39,7 @@ http_interactions: Location: - http://localhost:8080/hawkular/metrics/strings/<%= id %> Date: - - Wed, 21 Sep 2016 00:31:06 GMT + - Thu, 13 Oct 2016 03:10:06 GMT Connection: - keep-alive Content-Length: @@ -48,7 +48,7 @@ http_interactions: encoding: UTF-8 string: '' http_version: - recorded_at: Wed, 21 Sep 2016 00:31:06 GMT + recorded_at: Thu, 13 Oct 2016 03:10:06 GMT - request: method: get uri: http://jdoe:password@localhost:8080/hawkular/metrics/strings/<%= id %> @@ -84,16 +84,16 @@ http_interactions: Pragma: - no-cache Date: - - Wed, 21 Sep 2016 00:31:06 GMT + - Thu, 13 Oct 2016 03:10:06 GMT Connection: - keep-alive Content-Type: - application/json Content-Length: - - '190' + - '192' body: encoding: UTF-8 string: '{"id":"<%= id %>","tags":{"some":"value"},"dataRetention":123,"type":"string","tenantId":"<%= vcr_test_tenant %>"}' http_version: - recorded_at: Wed, 21 Sep 2016 00:31:06 GMT + recorded_at: Thu, 13 Oct 2016 03:10:06 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/String_metrics/Should_create_string_definition_using_MetricDefinition.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/String_metrics/Should_create_string_definition_using_MetricDefinition.yml similarity index 91% rename from spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/String_metrics/Should_create_string_definition_using_MetricDefinition.yml rename to spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/String_metrics/Should_create_string_definition_using_MetricDefinition.yml index e49531a..e3d4898 100644 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/String_metrics/Should_create_string_definition_using_MetricDefinition.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/String_metrics/Should_create_string_definition_using_MetricDefinition.yml @@ -39,7 +39,7 @@ http_interactions: Location: - http://localhost:8080/hawkular/metrics/strings/<%= id %> Date: - - Wed, 21 Sep 2016 00:31:06 GMT + - Thu, 13 Oct 2016 03:10:06 GMT Connection: - keep-alive Content-Length: @@ -48,7 +48,7 @@ http_interactions: encoding: UTF-8 string: '' http_version: - recorded_at: Wed, 21 Sep 2016 00:31:06 GMT + recorded_at: Thu, 13 Oct 2016 03:10:06 GMT - request: method: get uri: http://jdoe:password@localhost:8080/hawkular/metrics/strings/<%= id %> @@ -84,16 +84,16 @@ http_interactions: Pragma: - no-cache Date: - - Wed, 21 Sep 2016 00:31:06 GMT + - Thu, 13 Oct 2016 03:10:06 GMT Connection: - keep-alive Content-Type: - application/json Content-Length: - - '188' + - '190' body: encoding: UTF-8 string: '{"id":"<%= id %>","tags":{"tag":"value"},"dataRetention":90,"type":"string","tenantId":"<%= vcr_test_tenant %>"}' http_version: - recorded_at: Wed, 21 Sep 2016 00:31:06 GMT + recorded_at: Thu, 13 Oct 2016 03:10:06 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/String_metrics/Should_push_metric_data_to_existing_string.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/String_metrics/Should_push_metric_data_to_existing_string.yml similarity index 90% rename from spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/String_metrics/Should_push_metric_data_to_existing_string.yml rename to spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/String_metrics/Should_push_metric_data_to_existing_string.yml index a769fd9..1c9dda7 100644 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/String_metrics/Should_push_metric_data_to_existing_string.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/String_metrics/Should_push_metric_data_to_existing_string.yml @@ -39,7 +39,7 @@ http_interactions: Location: - http://localhost:8080/hawkular/metrics/strings/<%= id %> Date: - - Wed, 21 Sep 2016 00:31:06 GMT + - Thu, 13 Oct 2016 03:10:06 GMT Connection: - keep-alive Content-Length: @@ -48,7 +48,7 @@ http_interactions: encoding: UTF-8 string: '' http_version: - recorded_at: Wed, 21 Sep 2016 00:31:06 GMT + recorded_at: Thu, 13 Oct 2016 03:10:06 GMT - request: method: post uri: http://jdoe:password@localhost:8080/hawkular/metrics/strings/<%= id %>/raw @@ -90,12 +90,12 @@ http_interactions: Content-Length: - '0' Date: - - Wed, 21 Sep 2016 00:31:06 GMT + - Thu, 13 Oct 2016 03:10:06 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Wed, 21 Sep 2016 00:31:06 GMT + recorded_at: Thu, 13 Oct 2016 03:10:06 GMT - request: method: get uri: http://jdoe:password@localhost:8080/hawkular/metrics/strings/<%= id %>/raw/ @@ -131,7 +131,7 @@ http_interactions: Pragma: - no-cache Date: - - Wed, 21 Sep 2016 00:31:06 GMT + - Thu, 13 Oct 2016 03:10:06 GMT Connection: - keep-alive Content-Type: @@ -142,13 +142,13 @@ http_interactions: encoding: UTF-8 string: '[{"timestamp":<%= now10 %>,"value":"Value3"},{"timestamp":<%= now20 %>,"value":"Value2"},{"timestamp":<%= now30 %>,"value":"Value1"}]' http_version: - recorded_at: Wed, 21 Sep 2016 00:31:06 GMT + recorded_at: Thu, 13 Oct 2016 03:10:06 GMT - request: method: post uri: http://jdoe:password@localhost:8080/hawkular/metrics/strings/<%= id %>/raw body: encoding: UTF-8 - string: '[{"value":"Now","timestamp":1474417866640}]' + string: '[{"value":"Now","timestamp":1476328206185}]' headers: Accept: - application/json @@ -184,12 +184,12 @@ http_interactions: Content-Length: - '0' Date: - - Wed, 21 Sep 2016 00:31:06 GMT + - Thu, 13 Oct 2016 03:10:06 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Wed, 21 Sep 2016 00:31:06 GMT + recorded_at: Thu, 13 Oct 2016 03:10:06 GMT - request: method: get uri: http://jdoe:password@localhost:8080/hawkular/metrics/strings/<%= id %>/raw/ @@ -225,7 +225,7 @@ http_interactions: Pragma: - no-cache Date: - - Wed, 21 Sep 2016 00:31:06 GMT + - Thu, 13 Oct 2016 03:10:06 GMT Connection: - keep-alive Content-Type: @@ -234,9 +234,9 @@ http_interactions: - '178' body: encoding: UTF-8 - string: '[{"timestamp":1474417866640,"value":"Now"},{"timestamp":<%= now10 %>,"value":"Value3"},{"timestamp":<%= now20 %>,"value":"Value2"},{"timestamp":<%= now30 %>,"value":"Value1"}]' + string: '[{"timestamp":1476328206185,"value":"Now"},{"timestamp":<%= now10 %>,"value":"Value3"},{"timestamp":<%= now20 %>,"value":"Value2"},{"timestamp":<%= now30 %>,"value":"Value1"}]' http_version: - recorded_at: Wed, 21 Sep 2016 00:31:06 GMT + recorded_at: Thu, 13 Oct 2016 03:10:06 GMT - request: method: get uri: http://jdoe:password@localhost:8080/hawkular/metrics/strings/<%= id %>/raw/?end=<%= ends %>&start=<%= starts %> @@ -272,10 +272,10 @@ http_interactions: Pragma: - no-cache Date: - - Wed, 21 Sep 2016 00:31:06 GMT + - Thu, 13 Oct 2016 03:10:06 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Wed, 21 Sep 2016 00:31:06 GMT + recorded_at: Thu, 13 Oct 2016 03:10:06 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/String_metrics/Should_push_metric_data_to_non-existing_string.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/String_metrics/Should_push_metric_data_to_non-existing_string.yml similarity index 82% rename from spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/String_metrics/Should_push_metric_data_to_non-existing_string.yml rename to spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/String_metrics/Should_push_metric_data_to_non-existing_string.yml index 26dc5fc..2264411 100644 --- a/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/String_metrics/Should_push_metric_data_to_non-existing_string.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/String_metrics/Should_push_metric_data_to_non-existing_string.yml @@ -5,7 +5,7 @@ http_interactions: uri: http://jdoe:password@localhost:8080/hawkular/metrics/strings/<%= id %>/raw body: encoding: UTF-8 - string: '[{"value":"Hello world","timestamp":1474417866557}]' + string: '[{"value":"Hello world","timestamp":1476328206139}]' headers: Accept: - application/json @@ -41,12 +41,12 @@ http_interactions: Content-Length: - '0' Date: - - Wed, 21 Sep 2016 00:31:06 GMT + - Thu, 13 Oct 2016 03:10:06 GMT body: encoding: UTF-8 string: '' http_version: - recorded_at: Wed, 21 Sep 2016 00:31:06 GMT + recorded_at: Thu, 13 Oct 2016 03:10:06 GMT - request: method: get uri: http://jdoe:password@localhost:8080/hawkular/metrics/strings/<%= id %>/raw/ @@ -82,7 +82,7 @@ http_interactions: Pragma: - no-cache Date: - - Wed, 21 Sep 2016 00:31:06 GMT + - Thu, 13 Oct 2016 03:10:06 GMT Connection: - keep-alive Content-Type: @@ -91,9 +91,9 @@ http_interactions: - '51' body: encoding: UTF-8 - string: '[{"timestamp":1474417866557,"value":"Hello world"}]' + string: '[{"timestamp":1476328206139,"value":"Hello world"}]' http_version: - recorded_at: Wed, 21 Sep 2016 00:31:06 GMT + recorded_at: Thu, 13 Oct 2016 03:10:06 GMT - request: method: get uri: http://jdoe:password@localhost:8080/hawkular/metrics/strings/<%= id %> @@ -129,16 +129,16 @@ http_interactions: Pragma: - no-cache Date: - - Wed, 21 Sep 2016 00:31:06 GMT + - Thu, 13 Oct 2016 03:10:06 GMT Connection: - keep-alive Content-Type: - application/json Content-Length: - - '222' + - '225' body: encoding: UTF-8 - string: '{"id":"<%= id %>","dataRetention":7,"type":"string","tenantId":"<%= vcr_test_tenant %>","minTimestamp":1474417866557,"maxTimestamp":1474417866557}' + string: '{"id":"<%= id %>","dataRetention":14,"type":"string","tenantId":"<%= vcr_test_tenant %>","minTimestamp":1476328206139,"maxTimestamp":1476328206139}' http_version: - recorded_at: Wed, 21 Sep 2016 00:31:06 GMT + recorded_at: Thu, 13 Oct 2016 03:10:06 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/String_metrics/setup_client.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/String_metrics/setup_client.yml new file mode 100644 index 0000000..bf20673 --- /dev/null +++ b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/String_metrics/setup_client.yml @@ -0,0 +1,44 @@ +--- +http_interactions: +- request: + method: get + uri: http://jdoe:password@localhost:8080/hawkular/metrics/status + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Accept-Encoding: + - identity + User-Agent: + - hawkular-client-ruby + Hawkular-Tenant: + - <%= type %>metrics_services-vcr-tenant-ad9b3815-fe9a-4a80-a84b-c096468d3a82 + Content-Type: + - application/json + Host: + - localhost:8080 + response: + status: + code: 200 + message: OK + headers: + Connection: + - keep-alive + X-Powered-By: + - Undertow/1 + Server: + - WildFly/10 + Content-Type: + - application/json + Content-Length: + - '133' + Date: + - Thu, 13 Oct 2016 03:10:06 GMT + body: + encoding: UTF-8 + string: '{"MetricsService":"STARTED","Implementation-Version":"0.20.1.Final","Built-From-Git-SHA1":"f23946235446d3425db31d262b47b4f950ddabb3"}' + http_version: + recorded_at: Thu, 13 Oct 2016 03:10:06 GMT +recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Status/Should_return_the_version.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Tenants/setup_client.yml similarity index 74% rename from spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Status/Should_return_the_version.yml rename to spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Tenants/setup_client.yml index c4e6273..2eaec7c 100644 --- a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Status/Should_return_the_version.yml +++ b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Tenants/setup_client.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/status + uri: http://jdoe:password@localhost:8080/hawkular/metrics/status body: encoding: US-ASCII string: '' @@ -18,7 +18,7 @@ http_interactions: Content-Type: - application/json Host: - - 127.0.0.1:8443 + - localhost:8080 response: status: code: 200 @@ -35,10 +35,10 @@ http_interactions: Content-Length: - '133' Date: - - Mon, 15 Aug 2016 15:20:43 GMT + - Thu, 13 Oct 2016 03:10:05 GMT body: encoding: UTF-8 - string: '{"MetricsService":"STARTED","Implementation-Version":"0.18.0.Final","Built-From-Git-SHA1":"d5281e70603719809bdada72249b9330b22ebf96"}' + string: '{"MetricsService":"STARTED","Implementation-Version":"0.20.1.Final","Built-From-Git-SHA1":"f23946235446d3425db31d262b47b4f950ddabb3"}' http_version: - recorded_at: Mon, 15 Aug 2016 15:20:43 GMT + recorded_at: Thu, 13 Oct 2016 03:10:05 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/setup_client.yml b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/setup_client.yml new file mode 100644 index 0000000..bc1b08a --- /dev/null +++ b/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/setup_client.yml @@ -0,0 +1,44 @@ +--- +http_interactions: +- request: + method: get + uri: http://jdoe:password@localhost:8080/hawkular/metrics/status + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Accept-Encoding: + - identity + User-Agent: + - hawkular-client-ruby + Hawkular-Tenant: + - <%= type %>metrics_services-vcr-tenant-b83d0822-4e59-45e4-b94d-c1b468e1a634 + Content-Type: + - application/json + Host: + - localhost:8080 + response: + status: + code: 200 + message: OK + headers: + Connection: + - keep-alive + X-Powered-By: + - Undertow/1 + Server: + - WildFly/10 + Content-Type: + - application/json + Content-Length: + - '133' + Date: + - Wed, 12 Oct 2016 19:24:46 GMT + body: + encoding: UTF-8 + string: '{"MetricsService":"STARTED","Implementation-Version":"0.20.1.Final","Built-From-Git-SHA1":"f23946235446d3425db31d262b47b4f950ddabb3"}' + http_version: + recorded_at: Wed, 12 Oct 2016 19:24:46 GMT +recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_create_Availability_definition_using_MetricDefinition_parameter.yml b/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_create_Availability_definition_using_MetricDefinition_parameter.yml deleted file mode 100644 index a0dd9ec..0000000 --- a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_create_Availability_definition_using_MetricDefinition_parameter.yml +++ /dev/null @@ -1,99 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/availability - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","dataRetention":90,"tags":{"tag":"value"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '87' - Host: - - 127.0.0.1:8443 - response: - status: - code: 201 - message: Created - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Location: - - https://127.0.0.1:8443/hawkular/metrics/availability/<%= id %> - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - Connection: - - keep-alive - Content-Length: - - '0' - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/availability/<%= id %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '191' - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","tags":{"tag":"value"},"dataRetention":90,"type":"availability","tenantId":"<%= vcr_test_tenant %>"}' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_create_and_return_Availability_using_Hash_parameter.yml b/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_create_and_return_Availability_using_Hash_parameter.yml deleted file mode 100644 index 12a64ed..0000000 --- a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_create_and_return_Availability_using_Hash_parameter.yml +++ /dev/null @@ -1,99 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/availability - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","dataRetention":123,"tags":{"some":"value"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '89' - Host: - - 127.0.0.1:8443 - response: - status: - code: 201 - message: Created - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Location: - - https://127.0.0.1:8443/hawkular/metrics/availability/<%= id %> - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - Connection: - - keep-alive - Content-Length: - - '0' - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/availability/<%= id %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '193' - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","tags":{"some":"value"},"dataRetention":123,"type":"availability","tenantId":"<%= vcr_test_tenant %>"}' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_group_contiguous_values.yml b/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_group_contiguous_values.yml deleted file mode 100644 index 3a1f63e..0000000 --- a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_group_contiguous_values.yml +++ /dev/null @@ -1,97 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/availability/<%= id %>/raw - body: - encoding: UTF-8 - string: '[{"timestamp":<%= minus50 %>,"value":"up"},{"timestamp":<%= minus40 %>,"value":"up"},{"timestamp":<%= minus30 %>,"value":"down"},{"timestamp":<%= minus20 %>,"value":"down"},{"timestamp":<%= minus10 %>,"value":"down"},{"timestamp":<%= now %>,"value":"up"}]' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '253' - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/availability/<%= id %>/raw/?distinct=true&order=ASC - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '126' - body: - encoding: UTF-8 - string: '[{"timestamp":<%= minus50 %>,"value":"up"},{"timestamp":<%= minus30 %>,"value":"down"},{"timestamp":<%= now %>,"value":"up"}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_push_metric_data_to_non-existing_Availability.yml b/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_push_metric_data_to_non-existing_Availability.yml deleted file mode 100644 index a74854d..0000000 --- a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_push_metric_data_to_non-existing_Availability.yml +++ /dev/null @@ -1,144 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/availability/<%= id %>/raw - body: - encoding: UTF-8 - string: '[{"value":"UP","timestamp":1471274442326}]' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '42' - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/availability/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '42' - body: - encoding: UTF-8 - string: '[{"timestamp":1471274442326,"value":"up"}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/availability/<%= id %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '225' - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","dataRetention":7,"type":"availability","tenantId":"<%= vcr_test_tenant %>","minTimestamp":1471274442326,"maxTimestamp":1471274442326}' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_update_tags_for_Availability_definition.yml b/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_update_tags_for_Availability_definition.yml deleted file mode 100644 index 7796ad2..0000000 --- a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_update_tags_for_Availability_definition.yml +++ /dev/null @@ -1,240 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/availability - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","tags":{"myTag":"<%= id %>"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '101' - Host: - - 127.0.0.1:8443 - response: - status: - code: 201 - message: Created - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Location: - - https://127.0.0.1:8443/hawkular/metrics/availability/<%= id %> - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - Connection: - - keep-alive - Content-Length: - - '0' - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/availability/<%= id %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '223' - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","tags":{"myTag":"<%= id %>"},"dataRetention":7,"type":"availability","tenantId":"<%= vcr_test_tenant %>"}' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -- request: - method: put - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/availability/<%= id %>/tags - body: - encoding: UTF-8 - string: '{"newTag":"newValue"}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '21' - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/availability/<%= id %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '243' - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","tags":{"myTag":"<%= id %>","newTag":"newValue"},"dataRetention":7,"type":"availability","tenantId":"<%= vcr_test_tenant %>"}' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/metrics/?tags=myTag:<%= id %>&type=availability - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '245' - body: - encoding: UTF-8 - string: '[{"id":"<%= id %>","tags":{"myTag":"<%= id %>","newTag":"newValue"},"dataRetention":7,"type":"availability","tenantId":"<%= vcr_test_tenant %>"}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_create_and_return_counter_using_Hash_parameter.yml b/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_create_and_return_counter_using_Hash_parameter.yml deleted file mode 100644 index 7abc835..0000000 --- a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_create_and_return_counter_using_Hash_parameter.yml +++ /dev/null @@ -1,99 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","dataRetention":123,"tags":{"some":"value"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '89' - Host: - - 127.0.0.1:8443 - response: - status: - code: 201 - message: Created - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Location: - - https://127.0.0.1:8443/hawkular/metrics/counters/<%= id %> - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - Connection: - - keep-alive - Content-Length: - - '0' - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters/<%= id %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '188' - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","tags":{"some":"value"},"dataRetention":123,"type":"counter","tenantId":"<%= vcr_test_tenant %>"}' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_create_counter_definition_using_MetricDefinition_parameter.yml b/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_create_counter_definition_using_MetricDefinition_parameter.yml deleted file mode 100644 index 08d554d..0000000 --- a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_create_counter_definition_using_MetricDefinition_parameter.yml +++ /dev/null @@ -1,99 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","dataRetention":90,"tags":{"tag":"value"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '87' - Host: - - 127.0.0.1:8443 - response: - status: - code: 201 - message: Created - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Location: - - https://127.0.0.1:8443/hawkular/metrics/counters/<%= id %> - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - Connection: - - keep-alive - Content-Length: - - '0' - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters/<%= id %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '186' - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","tags":{"tag":"value"},"dataRetention":90,"type":"counter","tenantId":"<%= vcr_test_tenant %>"}' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml b/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml deleted file mode 100644 index aee72c1..0000000 --- a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml +++ /dev/null @@ -1,240 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters - body: - encoding: UTF-8 - string: '{"id":"<%= id %>"}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '45' - Host: - - 127.0.0.1:8443 - response: - status: - code: 201 - message: Created - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Location: - - https://127.0.0.1:8443/hawkular/metrics/counters/<%= id %> - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - Connection: - - keep-alive - Content-Length: - - '0' - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters/<%= id %>/raw - body: - encoding: UTF-8 - string: '[{"value":110,"timestamp":<%= minus110 %>},{"value":100,"timestamp":<%= minus100 %>},{"value":90,"timestamp":<%= minus90 %>},{"value":80,"timestamp":<%= minus80 %>},{"value":70,"timestamp":<%= minus70 %>},{"value":60,"timestamp":<%= minus60 %>},{"value":50,"timestamp":<%= minus50 %>},{"value":40,"timestamp":<%= minus40 %>},{"value":30,"timestamp":<%= minus30 %>},{"value":20,"timestamp":<%= minus20 %>},{"value":10,"timestamp":<%= minus10 %>}]' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '432' - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters/<%= id %>/stats/?buckets=5&end=<%= minus5 %>&start=<%= minus105 %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '645' - body: - encoding: UTF-8 - string: '[{"start":<%= minus105 %>,"end":1471274441801,"min":90.0,"avg":95.0,"median":90.0,"max":100.0,"sum":190.0,"samples":2,"empty":false},{"start":1471274441801,"end":1471274441821,"min":70.0,"avg":75.0,"median":70.0,"max":80.0,"sum":150.0,"samples":2,"empty":false},{"start":1471274441821,"end":1471274441841,"min":50.0,"avg":55.0,"median":50.0,"max":60.0,"sum":110.0,"samples":2,"empty":false},{"start":1471274441841,"end":1471274441861,"min":30.0,"avg":35.0,"median":30.0,"max":40.0,"sum":70.0,"samples":2,"empty":false},{"start":1471274441861,"end":<%= minus5 %>,"min":10.0,"avg":15.0,"median":10.0,"max":20.0,"sum":30.0,"samples":2,"empty":false}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters/<%= id %>/stats/?buckets=2&end=<%= minus5 %>&start=<%= minus105 %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '260' - body: - encoding: UTF-8 - string: '[{"start":<%= minus105 %>,"end":1471274441831,"min":60.0,"avg":80.0,"median":80.0,"max":100.0,"sum":400.0,"samples":5,"empty":false},{"start":1471274441831,"end":<%= minus5 %>,"min":10.0,"avg":30.0,"median":30.0,"max":50.0,"sum":150.0,"samples":5,"empty":false}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters/<%= id %>/stats/?bucketDuration=50ms&end=<%= minus5 %>&start=<%= minus105 %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '260' - body: - encoding: UTF-8 - string: '[{"start":<%= minus105 %>,"end":1471274441831,"min":60.0,"avg":80.0,"median":80.0,"max":100.0,"sum":400.0,"samples":5,"empty":false},{"start":1471274441831,"end":<%= minus5 %>,"min":10.0,"avg":30.0,"median":30.0,"max":50.0,"sum":150.0,"samples":5,"empty":false}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_with_limit_and_order.yml b/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_with_limit_and_order.yml deleted file mode 100644 index a0d167b..0000000 --- a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_with_limit_and_order.yml +++ /dev/null @@ -1,328 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters - body: - encoding: UTF-8 - string: '{"id":"<%= id %>"}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '45' - Host: - - 127.0.0.1:8443 - response: - status: - code: 201 - message: Created - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Location: - - https://127.0.0.1:8443/hawkular/metrics/counters/<%= id %> - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - Connection: - - keep-alive - Content-Length: - - '0' - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters/<%= id %>/raw - body: - encoding: UTF-8 - string: '[{"value":1,"timestamp":<%= minus30 %>},{"value":2,"timestamp":<%= minus20 %>},{"value":3,"timestamp":<%= minus10 %>}]' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '115' - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '115' - body: - encoding: UTF-8 - string: '[{"timestamp":<%= minus10 %>,"value":3},{"timestamp":<%= minus20 %>,"value":2},{"timestamp":<%= minus30 %>,"value":1}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters/<%= id %>/raw - body: - encoding: UTF-8 - string: '[{"value":4,"timestamp":1471274441757}]' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '39' - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '153' - body: - encoding: UTF-8 - string: '[{"timestamp":1471274441757,"value":4},{"timestamp":<%= minus10 %>,"value":3},{"timestamp":<%= minus20 %>,"value":2},{"timestamp":<%= minus30 %>,"value":1}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters/<%= id %>/raw/?limit=1&order=DESC - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '39' - body: - encoding: UTF-8 - string: '[{"timestamp":1471274441757,"value":4}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters/<%= id %>/raw/?end=<%= minus4h %>&start=<%= minus8h %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 204 - message: No Content - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_existing_counter.yml b/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_existing_counter.yml deleted file mode 100644 index 5677c67..0000000 --- a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_existing_counter.yml +++ /dev/null @@ -1,281 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters - body: - encoding: UTF-8 - string: '{"id":"<%= id %>"}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '45' - Host: - - 127.0.0.1:8443 - response: - status: - code: 201 - message: Created - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Location: - - https://127.0.0.1:8443/hawkular/metrics/counters/<%= id %> - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - Connection: - - keep-alive - Content-Length: - - '0' - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters/<%= id %>/raw - body: - encoding: UTF-8 - string: '[{"value":1,"timestamp":<%= minus30 %>},{"value":2,"timestamp":<%= minus20 %>},{"value":3,"timestamp":<%= minus10 %>}]' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '115' - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '115' - body: - encoding: UTF-8 - string: '[{"timestamp":<%= minus10 %>,"value":3},{"timestamp":<%= minus20 %>,"value":2},{"timestamp":<%= minus30 %>,"value":1}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters/<%= id %>/raw - body: - encoding: UTF-8 - string: '[{"value":4,"timestamp":1471274441615}]' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '39' - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '153' - body: - encoding: UTF-8 - string: '[{"timestamp":1471274441615,"value":4},{"timestamp":<%= minus10 %>,"value":3},{"timestamp":<%= minus20 %>,"value":2},{"timestamp":<%= minus30 %>,"value":1}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters/<%= id %>/raw/?end=<%= minus4h %>&start=<%= minus8h %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 204 - message: No Content - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_non-existing_counter.yml b/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_non-existing_counter.yml deleted file mode 100644 index f9ddbda..0000000 --- a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_non-existing_counter.yml +++ /dev/null @@ -1,144 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters/<%= id %>/raw - body: - encoding: UTF-8 - string: '[{"value":4,"timestamp":1471274442059}]' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '39' - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '39' - body: - encoding: UTF-8 - string: '[{"timestamp":1471274442059,"value":4}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters/<%= id %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '220' - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","dataRetention":7,"type":"counter","tenantId":"<%= vcr_test_tenant %>","minTimestamp":1471274442059,"maxTimestamp":1471274442059}' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_Hash.yml b/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_Hash.yml deleted file mode 100644 index 8dd0a99..0000000 --- a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_Hash.yml +++ /dev/null @@ -1,99 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/gauges - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","dataRetention":123,"tags":{"some":"value"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '89' - Host: - - 127.0.0.1:8443 - response: - status: - code: 201 - message: Created - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Location: - - https://127.0.0.1:8443/hawkular/metrics/gauges/<%= id %> - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - Connection: - - keep-alive - Content-Length: - - '0' - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/gauges/<%= id %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '186' - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","tags":{"some":"value"},"dataRetention":123,"type":"gauge","tenantId":"<%= vcr_test_tenant %>"}' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_MetricDefinition.yml b/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_MetricDefinition.yml deleted file mode 100644 index 7bb4678..0000000 --- a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_MetricDefinition.yml +++ /dev/null @@ -1,99 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/gauges - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","dataRetention":90,"tags":{"tag":"value"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '87' - Host: - - 127.0.0.1:8443 - response: - status: - code: 201 - message: Created - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Location: - - https://127.0.0.1:8443/hawkular/metrics/gauges/<%= id %> - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - Connection: - - keep-alive - Content-Length: - - '0' - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/gauges/<%= id %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '184' - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","tags":{"tag":"value"},"dataRetention":90,"type":"gauge","tenantId":"<%= vcr_test_tenant %>"}' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_existing_gauge.yml b/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_existing_gauge.yml deleted file mode 100644 index cb8fa0a..0000000 --- a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_existing_gauge.yml +++ /dev/null @@ -1,281 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/gauges - body: - encoding: UTF-8 - string: '{"id":"<%= id %>"}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '45' - Host: - - 127.0.0.1:8443 - response: - status: - code: 201 - message: Created - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Location: - - https://127.0.0.1:8443/hawkular/metrics/gauges/<%= id %> - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - Connection: - - keep-alive - Content-Length: - - '0' - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/gauges/<%= id %>/raw - body: - encoding: UTF-8 - string: '[{"value":1,"timestamp":<%= now30 %>},{"value":2,"timestamp":<%= now20 %>},{"value":3,"timestamp":<%= now10 %>}]' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '115' - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/gauges/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '121' - body: - encoding: UTF-8 - string: '[{"timestamp":<%= now10 %>,"value":3.0},{"timestamp":<%= now20 %>,"value":2.0},{"timestamp":<%= now30 %>,"value":1.0}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/gauges/<%= id %>/raw - body: - encoding: UTF-8 - string: '[{"value":4,"timestamp":1471274442865}]' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '39' - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/gauges/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '161' - body: - encoding: UTF-8 - string: '[{"timestamp":1471274442865,"value":4.0},{"timestamp":<%= now10 %>,"value":3.0},{"timestamp":<%= now20 %>,"value":2.0},{"timestamp":<%= now30 %>,"value":1.0}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters/<%= id %>/raw/?end=<%= ends %>&start=<%= starts %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 204 - message: No Content - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_non-existing_gauge.yml b/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_non-existing_gauge.yml deleted file mode 100644 index a037955..0000000 --- a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_non-existing_gauge.yml +++ /dev/null @@ -1,144 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/gauges/<%= id %>/raw - body: - encoding: UTF-8 - string: '[{"value":3.1415926,"timestamp":1471274442722}]' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '47' - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/gauges/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '47' - body: - encoding: UTF-8 - string: '[{"timestamp":1471274442722,"value":3.1415926}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/gauges/<%= id %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '218' - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","dataRetention":7,"type":"gauge","tenantId":"<%= vcr_test_tenant %>","minTimestamp":1471274442722,"maxTimestamp":1471274442722}' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_return_periods.yml b/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_return_periods.yml deleted file mode 100644 index 18193ad..0000000 --- a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_return_periods.yml +++ /dev/null @@ -1,97 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/gauges/<%= id %>/raw - body: - encoding: UTF-8 - string: '[{"value":1,"timestamp":<%= minus30 %>},{"value":2,"timestamp":<%= minus20 %>},{"value":3,"timestamp":<%= start %>}]' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '115' - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:43 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:43 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/gauges/<%= id %>/periods?op=lte&start=<%= before4h %>&threshold=4 - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:43 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '31' - body: - encoding: UTF-8 - string: "[[<%= minus30 %>,<%= start %>]]" - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:43 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_update_tags_for_gauge_definition.yml b/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_update_tags_for_gauge_definition.yml deleted file mode 100644 index a96fdfb..0000000 --- a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_update_tags_for_gauge_definition.yml +++ /dev/null @@ -1,240 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/gauges - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","tags":{"myTag":"<%= id %>"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '101' - Host: - - 127.0.0.1:8443 - response: - status: - code: 201 - message: Created - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Location: - - https://127.0.0.1:8443/hawkular/metrics/gauges/<%= id %> - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - Connection: - - keep-alive - Content-Length: - - '0' - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/gauges/<%= id %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:42 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '216' - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","tags":{"myTag":"<%= id %>"},"dataRetention":7,"type":"gauge","tenantId":"<%= vcr_test_tenant %>"}' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:42 GMT -- request: - method: put - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/gauges/<%= id %>/tags - body: - encoding: UTF-8 - string: '{"newTag":"newValue"}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '21' - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:43 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:43 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/gauges/<%= id %> - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:43 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '236' - body: - encoding: UTF-8 - string: '{"id":"<%= id %>","tags":{"myTag":"<%= id %>","newTag":"newValue"},"dataRetention":7,"type":"gauge","tenantId":"<%= vcr_test_tenant %>"}' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:43 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/metrics/?tags=myTag:<%= id %>&type=gauge - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:43 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '238' - body: - encoding: UTF-8 - string: '[{"id":"<%= id %>","tags":{"myTag":"<%= id %>","newTag":"newValue"},"dataRetention":7,"type":"gauge","tenantId":"<%= vcr_test_tenant %>"}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:43 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml b/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml deleted file mode 100644 index c80b0f3..0000000 --- a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml +++ /dev/null @@ -1,326 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters/raw/query - body: - encoding: UTF-8 - string: '{"ids":["<%= id1 %>","<%= id2 %>","<%= id3 %>"],"start":null,"end":null,"limit":null,"order":null}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '176' - Host: - - 127.0.0.1:8443 - response: - status: - code: 204 - message: No Content - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:40 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:40 GMT -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/gauges/raw/query - body: - encoding: UTF-8 - string: '{"ids":["<%= id1 %>","<%= id2 %>","<%= id3 %>"],"start":null,"end":null,"limit":null,"order":null}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '176' - Host: - - 127.0.0.1:8443 - response: - status: - code: 204 - message: No Content - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:40 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:40 GMT -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/availability/raw/query - body: - encoding: UTF-8 - string: '{"ids":["<%= id1 %>","<%= id2 %>","<%= id3 %>"],"start":null,"end":null,"limit":null,"order":null}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '176' - Host: - - 127.0.0.1:8443 - response: - status: - code: 204 - message: No Content - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:40 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:40 GMT -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/metrics/raw - body: - encoding: UTF-8 - string: '{"gauges":[{"id":"<%= id1 %>","data":[{"value":1.1,"timestamp":1471274440972}]},{"id":"<%= id2 %>","data":[{"value":2.2,"timestamp":1471274440972}]},{"id":"<%= id3 %>","data":[{"value":3.3,"timestamp":1471274440972}]}],"counters":[{"id":"<%= id1 %>","data":[{"value":1,"timestamp":1471274440972}]},{"id":"<%= id2 %>","data":[{"value":2,"timestamp":1471274440972}]},{"id":"<%= id3 %>","data":[{"value":3,"timestamp":1471274440972}]}],"availabilities":[{"id":"<%= id1 %>","data":[{"value":"up","timestamp":1471274440972}]},{"id":"<%= id2 %>","data":[{"value":"down","timestamp":1471274440972}]},{"id":"<%= id3 %>","data":[{"value":"up","timestamp":1471274440972}]}]}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '898' - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:40 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:40 GMT -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters/raw/query - body: - encoding: UTF-8 - string: '{"ids":["<%= id1 %>","<%= id2 %>","<%= id3 %>"],"start":null,"end":null,"limit":null,"order":null}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '176' - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '280' - body: - encoding: UTF-8 - string: '[{"id":"<%= id1 %>","data":[{"timestamp":1471274440972,"value":1}]},{"id":"<%= id2 %>","data":[{"timestamp":1471274440972,"value":2}]},{"id":"<%= id3 %>","data":[{"timestamp":1471274440972,"value":3}]}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/gauges/raw/query - body: - encoding: UTF-8 - string: '{"ids":["<%= id1 %>","<%= id2 %>","<%= id3 %>"],"start":null,"end":null,"limit":null,"order":null}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '176' - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '286' - body: - encoding: UTF-8 - string: '[{"id":"<%= id1 %>","data":[{"timestamp":1471274440972,"value":1.1}]},{"id":"<%= id2 %>","data":[{"timestamp":1471274440972,"value":2.2}]},{"id":"<%= id3 %>","data":[{"timestamp":1471274440972,"value":3.3}]}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/availability/raw/query - body: - encoding: UTF-8 - string: '{"ids":["<%= id1 %>","<%= id2 %>","<%= id3 %>"],"start":null,"end":null,"limit":null,"order":null}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - <%= vcr_test_tenant %> - Content-Type: - - application/json - Content-Length: - - '176' - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '291' - body: - encoding: UTF-8 - string: '[{"id":"<%= id1 %>","data":[{"timestamp":1471274440972,"value":"up"}]},{"id":"<%= id2 %>","data":[{"timestamp":1471274440972,"value":"down"}]},{"id":"<%= id3 %>","data":[{"timestamp":1471274440972,"value":"up"}]}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml b/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml deleted file mode 100644 index 8bcb59f..0000000 --- a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml +++ /dev/null @@ -1,314 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - hawkular - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 204 - message: No Content - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/gauges/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - hawkular - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 204 - message: No Content - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/availability/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - hawkular - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 204 - message: No Content - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/metrics/raw - body: - encoding: UTF-8 - string: '{"gauges":[{"id":"<%= id %>","data":[{"value":1.1,"timestamp":1471274441339}]}],"counters":[{"id":"<%= id %>","data":[{"value":1,"timestamp":1471274441339}]}],"availabilities":[{"id":"<%= id %>","data":[{"value":"down","timestamp":1471274441339}]}]}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - hawkular - Content-Type: - - application/json - Content-Length: - - '330' - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - hawkular - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '39' - body: - encoding: UTF-8 - string: '[{"timestamp":1471274441339,"value":1}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/gauges/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - hawkular - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '41' - body: - encoding: UTF-8 - string: '[{"timestamp":1471274441339,"value":1.1}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/availability/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - hawkular - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '44' - body: - encoding: UTF-8 - string: '[{"timestamp":1471274441339,"value":"down"}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request_of_a_single_type.yml b/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request_of_a_single_type.yml deleted file mode 100644 index b1ea684..0000000 --- a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request_of_a_single_type.yml +++ /dev/null @@ -1,285 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/metrics/raw - body: - encoding: UTF-8 - string: '{"gauges":[],"counters":[{"id":"<%= id %>","data":[{"value":1,"timestamp":1471274441100}]}],"availabilities":[]}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - hawkular - Content-Type: - - application/json - Content-Length: - - '139' - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - hawkular - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '39' - body: - encoding: UTF-8 - string: '[{"timestamp":1471274441100,"value":1}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/metrics/raw - body: - encoding: UTF-8 - string: '{"gauges":[],"counters":[],"availabilities":[{"id":"<%= id %>","data":[{"value":"down","timestamp":1471274441149}]}]}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - hawkular - Content-Type: - - application/json - Content-Length: - - '144' - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/availability/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - hawkular - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '44' - body: - encoding: UTF-8 - string: '[{"timestamp":1471274441149,"value":"down"}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/metrics/raw - body: - encoding: UTF-8 - string: '{"gauges":[{"id":"<%= id %>","data":[{"value":1.1,"timestamp":1471274441206}]}],"counters":[],"availabilities":[]}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - hawkular - Content-Type: - - application/json - Content-Length: - - '141' - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Connection: - - keep-alive - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Content-Length: - - '0' - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/gauges/<%= id %>/raw/ - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - hawkular - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:41 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '41' - body: - encoding: UTF-8 - string: '[{"timestamp":1471274441206,"value":1.1}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:41 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/No_Tenant/Should_fail.yml b/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/No_Tenant/Should_fail.yml deleted file mode 100644 index d6e64d8..0000000 --- a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/No_Tenant/Should_fail.yml +++ /dev/null @@ -1,50 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters/<%= id %>/raw - body: - encoding: UTF-8 - string: '[{"value":4,"timestamp":1471274440886}]' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Content-Type: - - application/json - Content-Length: - - '39' - Host: - - 127.0.0.1:8443 - response: - status: - code: 400 - message: Bad Request - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:40 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '69' - body: - encoding: UTF-8 - string: '{"errorMsg":"Tenant is not specified. Use ''Hawkular-Tenant'' header."}' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:40 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Simple/Should_be_Cool.yml b/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Simple/Should_be_Cool.yml deleted file mode 100644 index 26b4df2..0000000 --- a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Simple/Should_be_Cool.yml +++ /dev/null @@ -1,48 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:8080/hawkular/metrics - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:8080 - response: - status: - code: 401 - message: Unauthorized - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:40 GMT - Connection: - - keep-alive - Www-Authenticate: - - Basic realm="ApplicationRealm" - Content-Type: - - text/html;charset=UTF-8 - Content-Length: - - '71' - body: - encoding: UTF-8 - string: "ErrorUnauthorized" - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:40 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Tenants/Should_create_and_return_tenant.yml b/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Tenants/Should_create_and_return_tenant.yml deleted file mode 100644 index e5c5350..0000000 --- a/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Tenants/Should_create_and_return_tenant.yml +++ /dev/null @@ -1,99 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/tenants - body: - encoding: UTF-8 - string: '{"id":"<%= id %>"}' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - hawkular - Content-Type: - - application/json - Content-Length: - - '45' - Host: - - 127.0.0.1:8443 - response: - status: - code: 201 - message: Created - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Location: - - https://127.0.0.1:8443/hawkular/metrics/tenants - Date: - - Mon, 15 Aug 2016 15:20:40 GMT - Connection: - - keep-alive - Content-Length: - - '0' - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:40 GMT -- request: - method: get - uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/tenants - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - application/json - Accept-Encoding: - - identity - User-Agent: - - hawkular-client-ruby - Hawkular-Tenant: - - hawkular - Content-Type: - - application/json - Host: - - 127.0.0.1:8443 - response: - status: - code: 200 - message: OK - headers: - Expires: - - '0' - Cache-Control: - - no-cache, no-store, must-revalidate - X-Powered-By: - - Undertow/1 - Server: - - WildFly/10 - Pragma: - - no-cache - Date: - - Mon, 15 Aug 2016 15:20:40 GMT - Connection: - - keep-alive - Content-Type: - - application/json - Content-Length: - - '15994' - body: - encoding: UTF-8 - string: '[{"id":"67c774fa-b85e-478c-9d95-3d3d2d9c96eb"},{"id":"99513ff6-731b-4bf6-bc49-9b4cb589d438"},{"id":"c322404e-27a9-4916-acdc-82a073d7594e"},{"id":"d69421bc-f1a1-473c-9be8-1dba42c6bf50"},{"id":"51e7772e-d137-4874-aa59-85956c510a3c"},{"id":"721a3ef4-8259-4362-91a4-03b84db61294"},{"id":"a892a18a-186b-4fbc-9778-fd84fb0c9722"},{"id":"e24a96d4-36ef-4659-8f9d-7b47cc666776"},{"id":"9407d22f-dd11-496b-afe3-8187a0a5480c"},{"id":"0da2902f-d084-47b0-9ea9-0fd753378c78"},{"id":"abbbba05-5212-427f-a2dc-a1265ddeb275"},{"id":"3216f3d8-3fa5-4529-b45f-6ffa86de6f6e"},{"id":"a82a2c8d-39c2-4515-9feb-253ca74a22e4"},{"id":"1e40d594-82dc-4fa7-b409-94193ba2e345"},{"id":"7d0cfbfa-5bf9-4630-9350-d95023868f0b"},{"id":"58f1d65f-5156-4a1d-9940-b57cce463802"},{"id":"e324142c-d06b-41a0-a36b-a610bb6be114"},{"id":"<%= id %>"},{"id":"e0ae49ee-b0ec-4c87-a80f-72ce9ee7f5de"},{"id":"ccffa0a1-366f-45fc-851a-be4d4f3397f0"},{"id":"a6d002bc-9f11-46af-b755-c588c29010c8"},{"id":"3e0f698e-4546-4895-9009-a9012e586458"},{"id":"6bd98087-2343-456a-9f3f-15300b4b7e33"},{"id":"a7633e49-1560-4455-a5bd-20c3c478dc55"},{"id":"1a196765-a5be-4bd3-985f-7bae9f583815"},{"id":"7fe9d215-9596-4537-8f56-5fbb80f3cd07"},{"id":"098b0412-37d5-4dca-a1c1-b950051c3d2a"},{"id":"740bebc6-7383-474f-ba0a-c5cca06d3175"},{"id":"4136005f-907d-4acd-b4c4-d8fd829249b4"},{"id":"bcb91b80-341c-4443-bacd-2a732fe9c715"},{"id":"c1754b38-c217-43fb-88a8-b16bfb215be0"},{"id":"c722527b-4620-4ca9-b038-5afc7bad967c"},{"id":"b8e714bc-2c76-493c-864b-da212b2774f3"},{"id":"8a53c4d3-e193-4c4c-8f69-f20c43f5b7e4"},{"id":"ad31aee2-31ff-46fc-a718-f28511332d24"},{"id":"4e75b4fe-bfa6-49bd-bb6f-b5256b8fd5aa"},{"id":"baea3640-2994-487b-a41f-5a4397c908d5"},{"id":"6243f7d3-65f6-4e91-b01a-1fdec6ac62d0"},{"id":"50ab6182-61a6-4b5e-abfb-86f3d6280574"},{"id":"8fe1e629-e8a0-47e0-b84c-ad14cfaa291b"},{"id":"36a4017c-f97e-49c9-93c1-e24745137071"},{"id":"02f04b83-4ea7-4e1b-94c4-6141b2f8459d"},{"id":"950a103a-8810-4746-bdd2-c170355ed969"},{"id":"8f3bd1c4-cded-4f21-b7cf-76d93f3d7868"},{"id":"f43f3ce3-0fa1-4c6e-860c-c3d2307043c5"},{"id":"fd791113-dd2f-4e5b-acbc-f2fa08635e55"},{"id":"fd47a085-99b6-4996-a563-a6aa1c266673"},{"id":"b0337e54-5835-43b1-8216-809c53ab1c1f"},{"id":"78890432-9bf9-4932-861a-ea58be141027"},{"id":"5a8f6e22-da51-4601-a7ee-8c988d3ff485"},{"id":"a35d1e07-b6d1-49a7-a462-72f0640713f1"},{"id":"2ac8aaa4-6ef9-42a2-8a2e-d4263922c05f"},{"id":"03879bf9-46de-471f-8e13-472355f92248"},{"id":"88e626e6-e545-4549-84d4-68674e072618"},{"id":"dd9edf07-0e73-410f-89b8-d43a9fe9afe3"},{"id":"e9d3ea31-6399-4f75-a865-0da02690985c"},{"id":"7a1d5507-dd89-421a-88d2-d839999e63d3"},{"id":"e0eada82-970d-44f7-a50f-f8d31c844279"},{"id":"67f95568-b589-45a7-a612-5650ff6651e1"},{"id":"3b2e9c7b-f3aa-4e39-8390-cdbc8012f68f"},{"id":"346a236a-433c-4fca-b0ca-c3fa40eb6260"},{"id":"dd258f5c-c0c6-49d6-8923-068b76c0183c"},{"id":"e8982445-972d-478f-b999-37db4b577a73"},{"id":"ce49e9d4-7c42-4552-87fb-df9d5dd7173a"},{"id":"a66a9a4e-c83c-41f4-8a51-b085c39d9f79"},{"id":"4d5dd633-5f65-4f58-a7ac-57702548cff8"},{"id":"06ea9bd9-0aa1-4282-8124-73910f64550d"},{"id":"406c098e-6a12-4189-a1b3-cba1666704d7"},{"id":"2886d83d-30c3-4fd6-acdc-38529fa03dbf"},{"id":"957aa2b5-c1f1-4922-8f9c-eb0e0d5d305d"},{"id":"0249c88f-f1f9-469c-9c2e-c6c113f7fd05"},{"id":"ddf7c1a1-6d82-4a0f-925d-31c1fb3b00d0"},{"id":"78ffbc37-fce4-4629-b970-2247e5476b6d"},{"id":"5cd22a59-28a7-4bf8-a2b7-0a162a38b524"},{"id":"6859f311-7b1d-4503-95d5-bd9cf4be51f8"},{"id":"7feb54ec-86d4-4362-924c-a5d9da85d4dd"},{"id":"c0a5388c-1d3e-4cf7-abec-e4c5945c6170"},{"id":"19654817-32e7-441d-8cdb-b5608947b70b"},{"id":"57c3c0bd-ef9d-4439-a9c7-b7d6de71413c"},{"id":"2939977d-600d-43c6-a384-c4fbc8ec4573"},{"id":"6e8dbfad-c4e7-4139-98e8-dad53665c9f1"},{"id":"e7476fd4-b5f9-4a58-9e99-a9bee7810744"},{"id":"d8ef79bd-2716-4872-964c-dd39e5ed7f89"},{"id":"f7edad81-7319-4863-9d9a-1ae8279804ed"},{"id":"be7d8ba7-b63a-44d4-ac05-c370f7c016dd"},{"id":"5afaf0b7-515f-431b-b39c-3da9de4cc7eb"},{"id":"586ceac1-78e8-46f0-86c9-78da83116364"},{"id":"8b92461c-c763-48c5-b5fc-68252f5bcb22"},{"id":"Secure-vcr-tenant-c77f4963-e197-4957-8b90-07d89ccea9f7"},{"id":"NonSecuremetrics_services-vcr-tenant-81444d01-db25-4c6e-ace0-99ba715fb125"},{"id":"Securemetrics_services-vcr-tenant-944b6918-61a5-4211-8cd0-b41f9dfb5199"},{"id":"Securemetrics_0_16_0-vcr-tenant-e305e8db-dcba-4002-9a2e-1eaf7c977ac7"},{"id":"Securemetrics_0_16_0-vcr-tenant-c77f4963-e197-4957-8b90-07d89ccea9f7"},{"id":"Securemetrics_services-vcr-tenant-c1741aac-87f9-4c9e-9584-a9d65638b52e"},{"id":"NonSecuremetrics_0_16_0-vcr-tenant-e000d5c1-bad9-4229-97c8-70a5524b46d3"},{"id":"Securemetrics_0_16_0-vcr-tenant-3786b501-83eb-4b43-8c79-e637d1413b06"},{"id":"Securemetrics_services-vcr-tenant-d03ee744-a61e-4d77-805a-8867259eacf5"},{"id":"NonSecuremetrics_services-vcr-tenant-1fb625f3-0dab-4405-b18c-3be1b3e6e6bb"},{"id":"Secure-vcr-tenant-e305e8db-dcba-4002-9a2e-1eaf7c977ac7"},{"id":"Securemetrics_0_16_0-vcr-tenant-2e243ab2-0c65-42c5-94b3-00757306b2ad"},{"id":"NonSecure-vcr-tenant-c77f4963-e197-4957-8b90-07d89ccea9f7"},{"id":"NonSecuremetrics_services-vcr-tenant-2e243ab2-0c65-42c5-94b3-00757306b2ad"},{"id":"Securemetrics_services-vcr-tenant-81444d01-db25-4c6e-ace0-99ba715fb125"},{"id":"c4e22361-6fab-47ab-b7a5-6209a674bbcd"},{"id":"3e65525b-f872-4758-a271-f7c21989163a"},{"id":"Non<%= vcr_test_tenant %>"},{"id":"27570616-02cd-4d1e-92c3-75956c3d5cf9"},{"id":"6ca85574-dc0e-4e59-ba5f-fdaf30d9df6b"},{"id":"75e7ff8b-d06b-473d-8c43-c1a05f619d68"},{"id":"0fa53e33-a49d-4bdc-a1a1-26012b25b425"},{"id":"Securemetrics_services-vcr-tenant-c77f4963-e197-4957-8b90-07d89ccea9f7"},{"id":"Securemetrics_0_16_0-vcr-tenant-791957b6-5aad-4379-b9c2-1f9bf20baa74"},{"id":"1d17d491-a82d-4b25-a515-eef4456ad07b"},{"id":"9efc98df-61e2-4c20-9f36-4423b650c558"},{"id":"NonSecure-vcr-tenant-944043a2-5382-4b69-b536-feef36fb8059"},{"id":"Securemetrics_0_16_0-vcr-tenant-e7631b1e-ee4f-49d6-ad44-fffaa645f90e"},{"id":"NonSecuremetrics_services-vcr-tenant-3786b501-83eb-4b43-8c79-e637d1413b06"},{"id":"Secure-vcr-tenant-3206db20-2183-40fc-9d56-42280e4d3cba"},{"id":"NonSecuremetrics_0_16_0-vcr-tenant-c77f4963-e197-4957-8b90-07d89ccea9f7"},{"id":"NonSecuremetrics_0_16_0-vcr-tenant-80f51f08-9519-4faf-8bef-936762bb979e"},{"id":"Securemetrics_0_16_0-vcr-tenant-d03ee744-a61e-4d77-805a-8867259eacf5"},{"id":"NonSecure-vcr-tenant-f875e627-acaa-4ab0-81b0-cf5a4733ee14"},{"id":"Securemetrics_services-vcr-tenant-e7631b1e-ee4f-49d6-ad44-fffaa645f90e"},{"id":"Secure-vcr-tenant-05c819cb-2acf-49f9-8caa-348d159b2e7c"},{"id":"Secure-vcr-test-tenant"},{"id":"NonSecuremetrics_0_16_0-vcr-tenant-2ec41673-b692-4033-988b-0c8accd209cd"},{"id":"NonSecure-vcr-tenant-e305e8db-dcba-4002-9a2e-1eaf7c977ac7"},{"id":"3d79f0d6-2851-4c9e-b5fe-29051c9143b5"},{"id":"NonSecuremetrics_0_16_0-vcr-tenant-791957b6-5aad-4379-b9c2-1f9bf20baa74"},{"id":"NonSecure-vcr-tenant-326af131-55e1-4adb-bf12-5035a318f113"},{"id":"NonSecuremetrics_0_16_0-vcr-tenant-6eca7c2a-23b7-4f07-81cb-9753686496f5"},{"id":"vcr-test-tenant-123"},{"id":"NonSecure-vcr-tenant-05c819cb-2acf-49f9-8caa-348d159b2e7c"},{"id":"16fb4124-b73f-4a66-a5bb-e5d66b7116cb"},{"id":"4b784620-cd0d-4448-94b4-ec5f6f3644f9"},{"id":"Secure-vcr-tenant-326af131-55e1-4adb-bf12-5035a318f113"},{"id":"Securemetrics_services-vcr-tenant-7baf0743-323e-49a5-a65c-39bba4af78d4"},{"id":"Securemetrics_services-vcr-tenant-1fb625f3-0dab-4405-b18c-3be1b3e6e6bb"},{"id":"NonSecuremetrics_services-vcr-tenant-944043a2-5382-4b69-b536-feef36fb8059"},{"id":"Secure-vcr-tenant-4a0673ed-007c-42b2-ae4c-6ba21108b59b"},{"id":"NonSecuremetrics_0_16_0-vcr-tenant-e7631b1e-ee4f-49d6-ad44-fffaa645f90e"},{"id":"NonSecuremetrics_services-vcr-tenant-4a0673ed-007c-42b2-ae4c-6ba21108b59b"},{"id":"NonSecuremetrics_0_16_0-vcr-tenant-326af131-55e1-4adb-bf12-5035a318f113"},{"id":"Secure-vcr-tenant-944043a2-5382-4b69-b536-feef36fb8059"},{"id":"Securemetrics_services-vcr-tenant-f875e627-acaa-4ab0-81b0-cf5a4733ee14"},{"id":"NonSecure-vcr-tenant-cbad1ed5-86e6-47bb-813b-1116b5a810d7"},{"id":"NonSecuremetrics_services-vcr-tenant-c710b8c6-c560-4ed4-8f82-7aab71fb0bc4"},{"id":"273b066d-ac8d-4211-b7f2-d216cac6f83a"},{"id":"vcr-test"},{"id":"NonSecuremetrics_services-vcr-tenant-c77f4963-e197-4957-8b90-07d89ccea9f7"},{"id":"NonSecuremetrics_0_16_0-vcr-tenant-7baf0743-323e-49a5-a65c-39bba4af78d4"},{"id":"Securemetrics_services-vcr-tenant-3786b501-83eb-4b43-8c79-e637d1413b06"},{"id":"Securemetrics_services-vcr-tenant-791957b6-5aad-4379-b9c2-1f9bf20baa74"},{"id":"Secure-vcr-tenant-944b6918-61a5-4211-8cd0-b41f9dfb5199"},{"id":"NonSecure-vcr-tenant-3206db20-2183-40fc-9d56-42280e4d3cba"},{"id":"Securemetrics_0_16_0-vcr-tenant-1fb625f3-0dab-4405-b18c-3be1b3e6e6bb"},{"id":"Securemetrics_services-vcr-tenant-c710b8c6-c560-4ed4-8f82-7aab71fb0bc4"},{"id":"Securemetrics_services-vcr-tenant-4a0673ed-007c-42b2-ae4c-6ba21108b59b"},{"id":"NonSecuremetrics_0_16_0-vcr-tenant-d03ee744-a61e-4d77-805a-8867259eacf5"},{"id":"NonSecure-vcr-test-tenant"},{"id":"Securemetrics_0_16_0-vcr-tenant-4a0673ed-007c-42b2-ae4c-6ba21108b59b"},{"id":"NonSecuremetrics_services-vcr-tenant-7baf0743-323e-49a5-a65c-39bba4af78d4"},{"id":"NonSecuremetrics_services-vcr-tenant-13bd38f1-19a9-4681-8764-b4444cac07c3"},{"id":"Securemetrics_0_16_0-vcr-tenant-6eca7c2a-23b7-4f07-81cb-9753686496f5"},{"id":"NonSecuremetrics_0_16_0-vcr-tenant-81444d01-db25-4c6e-ace0-99ba715fb125"},{"id":"NonSecuremetrics_services-vcr-tenant-a1fd7aa1-9fa6-4d8c-bc01-3444a71e660e"},{"id":"Securemetrics_services-vcr-tenant-1924590f-1afe-48e2-ab02-bed6cd3f3e5b"},{"id":"NonSecuremetrics_0_16_0-vcr-tenant"},{"id":"NonSecuremetrics_services-vcr-tenant-05c819cb-2acf-49f9-8caa-348d159b2e7c"},{"id":"NonSecure-vcr-tenant-4a0673ed-007c-42b2-ae4c-6ba21108b59b"},{"id":"NonSecure-vcr-tenant-944b6918-61a5-4211-8cd0-b41f9dfb5199"},{"id":"Securemetrics_services-vcr-tenant-05c819cb-2acf-49f9-8caa-348d159b2e7c"},{"id":"NonSecuremetrics_0_16_0-vcr-tenant-e305e8db-dcba-4002-9a2e-1eaf7c977ac7"},{"id":"Secure-vcr-tenant"},{"id":"NonSecure-vcr-tenant-791957b6-5aad-4379-b9c2-1f9bf20baa74"},{"id":"Securemetrics_services-vcr-tenant-e305e8db-dcba-4002-9a2e-1eaf7c977ac7"},{"id":"NonSecuremetrics_services-vcr-tenant-6eca7c2a-23b7-4f07-81cb-9753686496f5"},{"id":"NonSecure-vcr-tenant"},{"id":"NonSecuremetrics_services-vcr-tenant-f875e627-acaa-4ab0-81b0-cf5a4733ee14"},{"id":"NonSecure-vcr-tenant-2e243ab2-0c65-42c5-94b3-00757306b2ad"},{"id":"NonSecuremetrics_services-vcr-tenant-2ec41673-b692-4033-988b-0c8accd209cd"},{"id":"Securemetrics_services-vcr-tenant"},{"id":"Secure-vcr-tenant-e7631b1e-ee4f-49d6-ad44-fffaa645f90e"},{"id":"Securemetrics_services-vcr-tenant-a1fd7aa1-9fa6-4d8c-bc01-3444a71e660e"},{"id":"Securemetrics_0_16_0-vcr-tenant-944043a2-5382-4b69-b536-feef36fb8059"},{"id":"Securemetrics_0_16_0-vcr-tenant-944b6918-61a5-4211-8cd0-b41f9dfb5199"},{"id":"Securemetrics_0_16_0-vcr-tenant-3206db20-2183-40fc-9d56-42280e4d3cba"},{"id":"NonSecuremetrics_0_16_0-vcr-tenant-4a0673ed-007c-42b2-ae4c-6ba21108b59b"},{"id":"NonSecuremetrics_0_16_0-vcr-tenant-c710b8c6-c560-4ed4-8f82-7aab71fb0bc4"},{"id":"NonSecuremetrics_0_16_0-vcr-tenant-af16af6f-1531-4fb8-ae89-5754dfc93a4d"},{"id":"Securemetrics_0_16_0-vcr-tenant"},{"id":"NonSecuremetrics_services-vcr-tenant-bb849c8d-0bca-42e6-b7e4-4224fc305d21"},{"id":"NonSecuremetrics_services-vcr-tenant-cbad1ed5-86e6-47bb-813b-1116b5a810d7"},{"id":"Securemetrics_0_16_0-vcr-tenant-7baf0743-323e-49a5-a65c-39bba4af78d4"},{"id":"Securemetrics_services-vcr-tenant-2e243ab2-0c65-42c5-94b3-00757306b2ad"},{"id":"NonSecuremetrics_0_16_0-vcr-tenant-944043a2-5382-4b69-b536-feef36fb8059"},{"id":"Securemetrics_services-vcr-tenant-2ec41673-b692-4033-988b-0c8accd209cd"},{"id":"Securemetrics_services-vcr-tenant-13bd38f1-19a9-4681-8764-b4444cac07c3"},{"id":"NonSecuremetrics_services-vcr-tenant-e000d5c1-bad9-4229-97c8-70a5524b46d3"},{"id":"Securemetrics_services-vcr-tenant-e000d5c1-bad9-4229-97c8-70a5524b46d3"},{"id":"NonSecuremetrics_services-vcr-tenant-af16af6f-1531-4fb8-ae89-5754dfc93a4d"},{"id":"Securemetrics_0_16_0-vcr-tenant-2ec41673-b692-4033-988b-0c8accd209cd"},{"id":"Securemetrics_services-vcr-tenant-bb849c8d-0bca-42e6-b7e4-4224fc305d21"},{"id":"NonSecuremetrics_0_16_0-vcr-tenant-bb849c8d-0bca-42e6-b7e4-4224fc305d21"},{"id":"Securemetrics_0_16_0-vcr-tenant-05c819cb-2acf-49f9-8caa-348d159b2e7c"},{"id":"NonSecuremetrics_0_16_0-vcr-tenant-cbad1ed5-86e6-47bb-813b-1116b5a810d7"},{"id":"Securemetrics_0_16_0-vcr-tenant-e000d5c1-bad9-4229-97c8-70a5524b46d3"},{"id":"Securemetrics_services-vcr-tenant-3206db20-2183-40fc-9d56-42280e4d3cba"},{"id":"NonSecuremetrics_services-vcr-tenant-c1741aac-87f9-4c9e-9584-a9d65638b52e"},{"id":"NonSecuremetrics_0_16_0-vcr-tenant-a1fd7aa1-9fa6-4d8c-bc01-3444a71e660e"},{"id":"NonSecuremetrics_0_16_0-vcr-tenant-05c819cb-2acf-49f9-8caa-348d159b2e7c"},{"id":"Securemetrics_0_16_0-vcr-tenant-c710b8c6-c560-4ed4-8f82-7aab71fb0bc4"},{"id":"hawkular"},{"id":"NonSecuremetrics_0_16_0-vcr-tenant-944b6918-61a5-4211-8cd0-b41f9dfb5199"},{"id":"Secure-vcr-tenant-cbad1ed5-86e6-47bb-813b-1116b5a810d7"},{"id":"NonSecuremetrics_services-vcr-tenant-d03ee744-a61e-4d77-805a-8867259eacf5"},{"id":"Secure-vcr-tenant-791957b6-5aad-4379-b9c2-1f9bf20baa74"},{"id":"NonSecuremetrics_services-vcr-tenant-1924590f-1afe-48e2-ab02-bed6cd3f3e5b"},{"id":"NonSecuremetrics_0_16_0-vcr-tenant-3786b501-83eb-4b43-8c79-e637d1413b06"},{"id":"Secure-vcr-tenant-2e243ab2-0c65-42c5-94b3-00757306b2ad"},{"id":"Securemetrics_0_16_0-vcr-tenant-81444d01-db25-4c6e-ace0-99ba715fb125"},{"id":"NonSecuremetrics_0_16_0-vcr-tenant-1924590f-1afe-48e2-ab02-bed6cd3f3e5b"},{"id":"NonSecuremetrics_0_16_0-vcr-tenant-1fb625f3-0dab-4405-b18c-3be1b3e6e6bb"},{"id":"NonSecuremetrics_services-vcr-tenant-80f51f08-9519-4faf-8bef-936762bb979e"},{"id":"NonSecure-vcr-tenant-e7631b1e-ee4f-49d6-ad44-fffaa645f90e"},{"id":"NonSecuremetrics_services-vcr-tenant-e305e8db-dcba-4002-9a2e-1eaf7c977ac7"},{"id":"Securemetrics_0_16_0-vcr-tenant-326af131-55e1-4adb-bf12-5035a318f113"},{"id":"NonSecuremetrics_0_16_0-vcr-tenant-c1741aac-87f9-4c9e-9584-a9d65638b52e"},{"id":"NonSecuremetrics_services-vcr-tenant-944b6918-61a5-4211-8cd0-b41f9dfb5199"},{"id":"Securemetrics_0_16_0-vcr-tenant-a1fd7aa1-9fa6-4d8c-bc01-3444a71e660e"},{"id":"NonSecuremetrics_services-vcr-tenant-3206db20-2183-40fc-9d56-42280e4d3cba"},{"id":"NonSecuremetrics_services-vcr-tenant-e7631b1e-ee4f-49d6-ad44-fffaa645f90e"},{"id":"NonSecure-vcr-tenant-c710b8c6-c560-4ed4-8f82-7aab71fb0bc4"},{"id":"NonSecuremetrics_0_16_0-vcr-tenant-3206db20-2183-40fc-9d56-42280e4d3cba"},{"id":"Securemetrics_0_16_0-vcr-tenant-c1741aac-87f9-4c9e-9584-a9d65638b52e"},{"id":"NonSecuremetrics_services-vcr-tenant-791957b6-5aad-4379-b9c2-1f9bf20baa74"},{"id":"Securemetrics_0_16_0-vcr-tenant-13bd38f1-19a9-4681-8764-b4444cac07c3"},{"id":"Securemetrics_0_16_0-vcr-tenant-af16af6f-1531-4fb8-ae89-5754dfc93a4d"},{"id":"Securemetrics_services-vcr-tenant-326af131-55e1-4adb-bf12-5035a318f113"},{"id":"Secure-vcr-tenant-c710b8c6-c560-4ed4-8f82-7aab71fb0bc4"},{"id":"Securemetrics_0_16_0-vcr-tenant-cbad1ed5-86e6-47bb-813b-1116b5a810d7"},{"id":"NonSecuremetrics_services-vcr-tenant-326af131-55e1-4adb-bf12-5035a318f113"},{"id":"NonSecuremetrics_0_16_0-vcr-tenant-2e243ab2-0c65-42c5-94b3-00757306b2ad"},{"id":"Securemetrics_0_16_0-vcr-tenant-1924590f-1afe-48e2-ab02-bed6cd3f3e5b"},{"id":"Securemetrics_0_16_0-vcr-tenant-bb849c8d-0bca-42e6-b7e4-4224fc305d21"},{"id":"Securemetrics_services-vcr-tenant-80f51f08-9519-4faf-8bef-936762bb979e"},{"id":"Securemetrics_services-vcr-tenant-944043a2-5382-4b69-b536-feef36fb8059"},{"id":"NonSecuremetrics_0_16_0-vcr-tenant-13bd38f1-19a9-4681-8764-b4444cac07c3"},{"id":"NonSecuremetrics_services-vcr-tenant"},{"id":"Securemetrics_0_16_0-vcr-tenant-80f51f08-9519-4faf-8bef-936762bb979e"},{"id":"Securemetrics_services-vcr-tenant-cbad1ed5-86e6-47bb-813b-1116b5a810d7"},{"id":"Securemetrics_services-vcr-tenant-af16af6f-1531-4fb8-ae89-5754dfc93a4d"},{"id":"Securemetrics_services-vcr-tenant-6eca7c2a-23b7-4f07-81cb-9753686496f5"}]' - http_version: - recorded_at: Mon, 15 Aug 2016 15:20:40 GMT -recorded_with: VCR 3.0.3