Sha256: 968d0fc472bcf4556df5eb67f410de3264f1a432dd9ed70408f6d4ed2b51f931

Contents?: true

Size: 1.64 KB

Versions: 170

Compression:

Stored size: 1.64 KB

Contents

Aws.config[:iam] = {
  stub_responses: {
    list_roles: {
      roles: [
        path: '/',
        role_name: 'my-iam-role',
        role_id: 'RABCDEFGHI123455689',
        arn: 'arn:aws:iam::123456789012:role/my-iam-role',
        create_date: Time.new(2015, 1, 2, 9, 00, 00, '+00:00')
      ]
    },
    list_attached_role_policies: {
      attached_policies: [
        {
          policy_arn: 'arn:aws:iam::aws:policy/ReadOnlyAccess',
          policy_name: 'ReadOnlyAccess'
        }
      ],
      is_truncated: false,
      marker: nil
    },
    list_role_policies: {
      policy_names: [
        'AllowS3BucketAccess'
      ],
      is_truncated: false,
      marker: nil
    },
    get_role: {
      role: {
        path: '/',
        role_name: 'my-iam-role',
        role_id: 'RABCDEFGHI123455689',
        arn: 'arn:aws:iam::123456789012:role/my-iam-role',
        create_date: Time.new(2015, 1, 2, 9, 00, 00, '+00:00')
      }
    },
    get_role_policy: {
      role_name: 'my-iam-role',
      policy_name: 'AllowS3BucketAccess',
      policy_document: '{"Statement": [{"Action": ["s3:ListAllMyBuckets"],' \
                       '"Effect": "Allow","Resource": "arn:aws:s3:::*"},' \
                       '{"Action": "s3:*","Effect": "Allow","Resource":' \
                       '["arn:aws:s3:::my-bucket", "arn:aws:s3:::my-bucket/*"]}]}'
    },
    simulate_principal_policy: {
      evaluation_results: [
        {
          eval_action_name: 'ec2:DescribeInstances',
          eval_resource_name: '*',
          eval_decision: 'allowed',
          matched_statements: [
          ]
        }
      ],
      is_truncated: false,
      marker: nil
    }
  }
}

Version data entries

170 entries across 170 versions & 4 rubygems

Version Path
awspec-1.15.1 lib/awspec/stub/iam_role.rb
awspec-1.15.0 lib/awspec/stub/iam_role.rb
awspec-1.14.1 lib/awspec/stub/iam_role.rb
awspec-1.14.0 lib/awspec/stub/iam_role.rb
awspec-1.13.0 lib/awspec/stub/iam_role.rb
awspec-1.12.7 lib/awspec/stub/iam_role.rb
awspec-1.12.6 lib/awspec/stub/iam_role.rb
awspec-1.12.5 lib/awspec/stub/iam_role.rb
awspec-1.12.4 lib/awspec/stub/iam_role.rb
awspec-1.12.3 lib/awspec/stub/iam_role.rb
awspec-1.12.2 lib/awspec/stub/iam_role.rb
awspec-1.12.1 lib/awspec/stub/iam_role.rb
awspec-1.12.0 lib/awspec/stub/iam_role.rb
awspec-1.11.1 lib/awspec/stub/iam_role.rb
awspec-1.11.0 lib/awspec/stub/iam_role.rb
awspec-1.10.0 lib/awspec/stub/iam_role.rb
awspec-1.9.0 lib/awspec/stub/iam_role.rb
awspec-1.8.0 lib/awspec/stub/iam_role.rb
awspec-1.7.0 lib/awspec/stub/iam_role.rb
awspec-1.6.1 lib/awspec/stub/iam_role.rb