Sha256: c32783dcf7978283fd373acff7e36a0900ca120ac0483f425873e9b21704c0de

Contents?: true

Size: 1.95 KB

Versions: 170

Compression:

Stored size: 1.95 KB

Contents

Aws.config[:iam] = {
  stub_responses: {
    list_users: {
      users: [
        path: '/',
        user_name: 'my-iam-user',
        user_id: 'ABCDEFGHI1234556890',
        arn: 'arn:aws:iam::123456789012:user/my-iam-user',
        create_date: Time.new(2015, 1, 2, 10, 00, 00, '+00:00')
      ]
    },
    list_groups_for_user: {
      groups: [
        {
          path: '/',
          group_name: 'my-iam-group',
          group_id: 'GABCDEFGHI123455689',
          arn: 'arn:aws:iam::123456789012:group/my-iam-group',
          create_date: Time.new(2015, 1, 2, 10, 00, 00, '+00:00')
        }
      ]
    },
    list_attached_user_policies: {
      attached_policies: [
        {
          policy_arn: 'arn:aws:iam::aws:policy/ReadOnlyAccess',
          policy_name: 'ReadOnlyAccess'
        }
      ],
      is_truncated: false,
      marker: nil
    },
    list_user_policies: {
      policy_names: [
        'AllowS3BucketAccess'
      ],
      is_truncated: false,
      marker: nil
    },
    get_user: {
      user: {
        path: '/',
        user_name: 'my-iam-user',
        user_id: 'ABCDEFGHI1234556890',
        arn: 'arn:aws:iam::123456789012:user/my-iam-user',
        create_date: Time.new(2015, 1, 2, 10, 00, 00, '+00:00')
      }
    },
    get_user_policy: {
      user_name: 'my-iam-user',
      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_user.rb
awspec-1.15.0 lib/awspec/stub/iam_user.rb
awspec-1.14.1 lib/awspec/stub/iam_user.rb
awspec-1.14.0 lib/awspec/stub/iam_user.rb
awspec-1.13.0 lib/awspec/stub/iam_user.rb
awspec-1.12.7 lib/awspec/stub/iam_user.rb
awspec-1.12.6 lib/awspec/stub/iam_user.rb
awspec-1.12.5 lib/awspec/stub/iam_user.rb
awspec-1.12.4 lib/awspec/stub/iam_user.rb
awspec-1.12.3 lib/awspec/stub/iam_user.rb
awspec-1.12.2 lib/awspec/stub/iam_user.rb
awspec-1.12.1 lib/awspec/stub/iam_user.rb
awspec-1.12.0 lib/awspec/stub/iam_user.rb
awspec-1.11.1 lib/awspec/stub/iam_user.rb
awspec-1.11.0 lib/awspec/stub/iam_user.rb
awspec-1.10.0 lib/awspec/stub/iam_user.rb
awspec-1.9.0 lib/awspec/stub/iam_user.rb
awspec-1.8.0 lib/awspec/stub/iam_user.rb
awspec-1.7.0 lib/awspec/stub/iam_user.rb
awspec-1.6.1 lib/awspec/stub/iam_user.rb