From 7cf0de41f89a3c32d978d70fabf01ec8767feb3e Mon Sep 17 00:00:00 2001 From: Paulo Ribeiro Date: Thu, 14 Sep 2017 16:44:51 -0300 Subject: [PATCH] fix(Tests):Remove debugging --- tests/models/elasticache/subnet_groups_tests.rb | 1 - tests/models/storage/versions_tests.rb | 5 ----- tests/requests/dns/dns_tests.rb | 4 ---- tests/requests/iam/managed_policy_tests.rb | 1 - .../iam/versioned_managed_policy_tests.rb | 15 +++------------ tests/requests/storage/object_tests.rb | 1 - 6 files changed, 3 insertions(+), 24 deletions(-) diff --git a/tests/models/elasticache/subnet_groups_tests.rb b/tests/models/elasticache/subnet_groups_tests.rb index 7575b69e0..82afcc044 100644 --- a/tests/models/elasticache/subnet_groups_tests.rb +++ b/tests/models/elasticache/subnet_groups_tests.rb @@ -14,7 +14,6 @@ Shindo.tests('AWS::Elasticache | subnet group', ['aws', 'elasticache']) do @subnets = (1..3).map do result = Fog::Compute[:aws].create_subnet(@vpc.id, "10.#{vpc_range}.#{subnet_range}.0/24", 'AvailabilityZone' => subnet_az) - puts result subnet = result.body['subnet'] subnet_az = subnet_az.succ subnet_range *= 2 diff --git a/tests/models/storage/versions_tests.rb b/tests/models/storage/versions_tests.rb index fa02fb351..986e5e3fd 100644 --- a/tests/models/storage/versions_tests.rb +++ b/tests/models/storage/versions_tests.rb @@ -15,15 +15,10 @@ Shindo.tests("Storage[:aws] | versions", ["aws"]) do versions = [] versions << @instance.service.put_object(@instance.key, 'one', 'abcde').headers['x-amz-version-id'] - - puts versions.first - versions << @instance.service.put_object(@instance.key, 'one', '32423').headers['x-amz-version-id'] versions << @instance.service.delete_object(@instance.key, 'one').headers['x-amz-version-id'] versions.reverse! - puts versions.first - versions << @instance.service.put_object(@instance.key, 'two', 'aoeu').headers['x-amz-version-id'] tests('#versions') do diff --git a/tests/requests/dns/dns_tests.rb b/tests/requests/dns/dns_tests.rb index ff4617d0f..8b6802b31 100644 --- a/tests/requests/dns/dns_tests.rb +++ b/tests/requests/dns/dns_tests.rb @@ -188,10 +188,6 @@ Shindo.tests('Fog::DNS[:aws] | DNS requests', ['aws', 'dns']) do change_batch << resource_record_set options = { :comment => 'add ALIAS record to domain'} - puts "Hosted Zone ID (ELB): #{hosted_zone_id}" - puts "DNS Name (ELB): #{dns_name}" - puts "Zone ID for Route 53: #{@zone_id}" - response = @r53_connection.change_resource_record_sets(@zone_id, change_batch, options) Fog.wait_for { @r53_connection.get_change(response.body["Id"]).body["Status"] != "PENDING" } diff --git a/tests/requests/iam/managed_policy_tests.rb b/tests/requests/iam/managed_policy_tests.rb index 7c517a3d0..88fe38322 100644 --- a/tests/requests/iam/managed_policy_tests.rb +++ b/tests/requests/iam/managed_policy_tests.rb @@ -43,7 +43,6 @@ Shindo.tests('AWS::IAM | managed policy requests', ['aws']) do tests("#create_policy('fog_policy')").formats(create_policy_format) do body = Fog::AWS[:iam].create_policy('fog_policy', @policy, '/fog/').body - puts body.inspect @policy_arn = body['Policy']['Arn'] body end diff --git a/tests/requests/iam/versioned_managed_policy_tests.rb b/tests/requests/iam/versioned_managed_policy_tests.rb index 03a7c15dc..87f719b9b 100644 --- a/tests/requests/iam/versioned_managed_policy_tests.rb +++ b/tests/requests/iam/versioned_managed_policy_tests.rb @@ -57,10 +57,7 @@ Shindo.tests('AWS::IAM | versioned managed policy requests', ['aws']) do } tests("#create_policy('fog_policy')").formats(create_policy_format) do - body = Fog::AWS[:iam].create_policy('fog_policy', @policy, '/fog/').body - puts body.inspect - @policy_arn = body['Policy']['Arn'] - body + Fog::AWS[:iam].create_policy('fog_policy', @policy, '/fog/').body['Policy']['Arn'] end tests("#list_policies('fog_policy')").formats(list_policies_format) do @@ -72,10 +69,7 @@ Shindo.tests('AWS::IAM | versioned managed policy requests', ['aws']) do end tests("#create_versioned_policy('fog_policy')").formats(create_versioned_policy_format) do - body = Fog::AWS[:iam].create_versioned_policy(@policy_arn, @policy_v2, true).body - puts body.inspect - @policy_version_document = body['PolicyVersion']['Document'] - body + Fog::AWS[:iam].create_versioned_policy(@policy_arn, @policy_v2, true).body['PolicyVersion']['Document'] end tests("#list_policy_versions('fog_policy')").formats(list_policy_versions_format) do @@ -95,10 +89,7 @@ Shindo.tests('AWS::IAM | versioned managed policy requests', ['aws']) do end tests("#delete_versioned_policy('fog_policy')").formats(AWS::IAM::Formats::BASIC) do - body = Fog::AWS[:iam].delete_policy(@policy_arn, 'v2').body - puts body.inspect - @policy_version_document = body['PolicyVersion']['Document'] - body + Fog::AWS[:iam].delete_policy(@policy_arn, 'v2').body['PolicyVersion']['Document'] end tests("#delete_policy('fog_policy')").formats(AWS::IAM::Formats::BASIC) do diff --git a/tests/requests/storage/object_tests.rb b/tests/requests/storage/object_tests.rb index e606b2470..945f89773 100644 --- a/tests/requests/storage/object_tests.rb +++ b/tests/requests/storage/object_tests.rb @@ -156,7 +156,6 @@ Shindo.tests('AWS::Storage | object requests', ['aws']) do tests("#head_object_url('#{@directory.identity}', 'fog_object', expiration timestamp)").returns(true) do object_url = Fog::Storage[:aws].head_object_url(@directory.identity, 'fog_object', (Time.now + 60)) - puts object_url (object_url =~ /https:\/\/#{Regexp.quote(@directory.identity)}\.s3\.amazonaws\.com\/fog_object/) != nil end