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

Version Path
fog-aws-3.12.0 tests/models/iam/instance_profile_tests.rb
fog-aws-3.11.0 tests/models/iam/instance_profile_tests.rb
fog-aws-3.10.0 tests/models/iam/instance_profile_tests.rb
fog-aws-3.9.0 tests/models/iam/instance_profile_tests.rb
fog-aws-3.8.0 tests/models/iam/instance_profile_tests.rb
fog-aws-3.7.0 tests/models/iam/instance_profile_tests.rb
fog-aws-3.6.7 tests/models/iam/instance_profile_tests.rb
fog-aws-3.6.6 tests/models/iam/instance_profile_tests.rb
fog-aws-3.6.5 tests/models/iam/instance_profile_tests.rb
fog-aws-3.6.4 tests/models/iam/instance_profile_tests.rb
fog-aws-3.6.3 tests/models/iam/instance_profile_tests.rb
fog-aws-3.6.2 tests/models/iam/instance_profile_tests.rb
fog-aws-3.5.2 tests/models/iam/instance_profile_tests.rb
fog-aws-3.5.1 tests/models/iam/instance_profile_tests.rb
fog-aws-3.5.0 tests/models/iam/instance_profile_tests.rb
fog-aws-3.4.0 tests/models/iam/instance_profile_tests.rb
fog-aws-3.3.0 tests/models/iam/instance_profile_tests.rb
fog-aws-3.2.0 tests/models/iam/instance_profile_tests.rb
fog-aws-3.1.0 tests/models/iam/instance_profile_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-aws-2.0.1/tests/models/iam/instance_profile_tests.rb