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

1.8 fixes

This commit is contained in:
Eugene Howe 2017-01-19 12:02:54 -05:00
parent 33984bc567
commit 337c7560a8
3 changed files with 4 additions and 4 deletions

View file

@ -65,7 +65,7 @@ module Fog
end end
if options["PathPrefix"] if options["PathPrefix"]
data_set.select! { |p| p["Path"].match(/^#{options["PathPrefix"]}/) } data_set = data_set.select { |p| p["Path"].match(/^#{options["PathPrefix"]}/) }
end end
data = data_set.slice!(0, limit || 100) data = data_set.slice!(0, limit || 100)

View file

@ -1,6 +1,6 @@
Shindo.tests("Fog::AWS[:iam] | instance_profiles", ['aws', 'iam']) do Shindo.tests("Fog::AWS[:iam] | instance_profiles", ['aws', 'iam']) do
model_tests(Fog::AWS[:iam].instance_profiles, {name: uniq_id('fog-instance-profile')}) do model_tests(Fog::AWS[:iam].instance_profiles, {:name => uniq_id('fog-instance-profile')}) do
@role = Fog::AWS[:iam].roles.create(rolename: uniq_id('fog-role')) @role = Fog::AWS[:iam].roles.create(:rolename => uniq_id('fog-role'))
tests("#add_role('#{@role.rolename}')") do tests("#add_role('#{@role.rolename}')") do
returns(true) { @instance.add_role(@role.rolename) } returns(true) { @instance.add_role(@role.rolename) }

View file

@ -11,7 +11,7 @@ Shindo.tests("AWS::IAM | instance profile requests", ['aws']) do
Fog::AWS[:iam].get_instance_profile(profile_name).body Fog::AWS[:iam].get_instance_profile(profile_name).body
end end
@role = Fog::AWS[:iam].roles.create(rolename: uniq_id('instance-profile-role')) @role = Fog::AWS[:iam].roles.create(:rolename => uniq_id('instance-profile-role'))
tests("#add_role_to_instance_profile('#{@role.rolename}', '#{profile_name}')").formats(BASIC) do tests("#add_role_to_instance_profile('#{@role.rolename}', '#{profile_name}')").formats(BASIC) do
Fog::AWS[:iam].add_role_to_instance_profile(@role.rolename, profile_name).body Fog::AWS[:iam].add_role_to_instance_profile(@role.rolename, profile_name).body