Sha256: 2a835abce139fcc6b11c7ab1a51dc1af100492b2fd177b7f59b7fa298f0f9a27

Contents?: true

Size: 1.48 KB

Versions: 35

Compression:

Stored size: 1.48 KB

Contents

Aws.config[:s3] = {
  stub_responses: {
    list_buckets: {
      buckets: [
        {
          name: 'my-bucket'
        }
      ]
    },
    head_object: {
      content_type: 'binary/octet-stream'
    },
    get_bucket_acl: {
      owner: {
        display_name: 'my-bucket-owner'
      },
      grants: [
        {
          grantee: {
            display_name: 'my-bucket-owner',
            type: 'CanonicalUser'
          },
          permission: 'FULL_CONTROL'
        },
        {
          grantee: {
            uri: 'http://acs.amazonaws.com/groups/s3/LogDelivery',
            type: 'CanonicalUser'
          },
          permission: 'WRITE'
        },
        {
          grantee: {
            id: '68f4bb06b094152df53893bfba57760e',
            type: 'CanonicalUser'
          },
          permission: 'READ'
        }
      ]
    },
    get_bucket_cors: {
      cors_rules: [
        {
          allowed_methods: ['GET'],
          allowed_origins: ['*']
        },
        {
          allowed_headers: ['*'],
          allowed_methods: ['GET'],
          allowed_origins: ['https://example.com', 'https://example.org'],
          expose_headers:  ['X-Custom-Header'],
          max_age_seconds: 3600
        }
      ]
    },
    get_bucket_policy: {
      policy: '{"Version":"2012-10-17","Statement":' \
              '[{"Sid":"AllowPublicRead","Effect":"Allow",' \
              '"Principal":"*","Action":"s3:GetObject",' \
              '"Resource":"arn:aws:s3:::my-bucket/*"}]}'
    }
  }
}

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
awspec-0.41.0 lib/awspec/stub/s3_bucket.rb
awspec-0.40.0 lib/awspec/stub/s3_bucket.rb
awspec-0.39.0 lib/awspec/stub/s3_bucket.rb
awspec-0.38.0 lib/awspec/stub/s3_bucket.rb
awspec-0.37.8 lib/awspec/stub/s3_bucket.rb
awspec-0.37.7 lib/awspec/stub/s3_bucket.rb
awspec-0.37.6 lib/awspec/stub/s3_bucket.rb
awspec-0.37.5 lib/awspec/stub/s3_bucket.rb
awspec-0.37.4 lib/awspec/stub/s3_bucket.rb
awspec-0.37.3 lib/awspec/stub/s3_bucket.rb
awspec-0.37.2 lib/awspec/stub/s3_bucket.rb
awspec-0.37.1 lib/awspec/stub/s3_bucket.rb
awspec-0.37.0 lib/awspec/stub/s3_bucket.rb
awspec-0.36.1 lib/awspec/stub/s3_bucket.rb
awspec-0.36.0 lib/awspec/stub/s3_bucket.rb
awspec-0.35.0 lib/awspec/stub/s3_bucket.rb
awspec-0.34.0 lib/awspec/stub/s3_bucket.rb
awspec-0.33.0 lib/awspec/stub/s3_bucket.rb
awspec-0.32.0 lib/awspec/stub/s3_bucket.rb
awspec-0.31.0 lib/awspec/stub/s3_bucket.rb