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
|
||||
|
||||
if options["PathPrefix"]
|
||||
data_set.select! { |p| p["Path"].match(/^#{options["PathPrefix"]}/) }
|
||||
data_set = data_set.select { |p| p["Path"].match(/^#{options["PathPrefix"]}/) }
|
||||
end
|
||||
|
||||
data = data_set.slice!(0, limit || 100)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Shindo.tests("Fog::AWS[:iam] | instance_profiles", ['aws', 'iam']) 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'))
|
||||
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'))
|
||||
|
||||
tests("#add_role('#{@role.rolename}')") do
|
||||
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
|
||||
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
|
||||
Fog::AWS[:iam].add_role_to_instance_profile(@role.rolename, profile_name).body
|
||||
|
|
Loading…
Reference in a new issue