1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00

fix(Tests):Remove debugging

This commit is contained in:
Paulo Ribeiro 2017-09-14 16:44:51 -03:00
parent 630cf375dc
commit 7cf0de41f8
6 changed files with 3 additions and 24 deletions

View file

@ -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

View file

@ -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

View file

@ -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" }

View file

@ -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

View file

@ -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

View file

@ -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