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:
parent
33984bc567
commit
337c7560a8
3 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||||
|
|
|
@ -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) }
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue