Sha256: 878d75b2693b6653060ca45572bc512514cf9c69d3c3fcd03ecd714a769ae562
Contents?: true
Size: 611 Bytes
Versions: 30
Compression:
Stored size: 611 Bytes
Contents
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')) tests("#add_role('#{@role.rolename}')") do returns(true) { @instance.add_role(@role.rolename) } end returns(1) { @role.instance_profiles.count } returns(@instance) { @role.instance_profiles.first } tests("#remove_role('#{@role.rolename}')") do returns(true) { @instance.remove_role(@role.rolename) } end @role.destroy end end
Version data entries
30 entries across 28 versions & 2 rubygems