Sha256: 037158e9bd4c73e453d4bb1392245d1689d06c1b4671bbd27fbcee6564a25efe

Contents?: true

Size: 979 Bytes

Versions: 58

Compression:

Stored size: 979 Bytes

Contents

require File.dirname(__FILE__) + '/../../../spec_helper'

describe 'S3.get_service' do
  describe 'success' do

    before(:all) do
      AWS[:s3].put_bucket('foggetservice')
      Fog.wait_for { AWS[:s3].directories.get('foggetservice') }
    end

    after(:all) do
      AWS[:s3].delete_bucket('foggetservice')
    end

    it 'should return proper_attributes' do
      actual = AWS[:s3].get_service
      actual.body['Buckets'].should be_an(Array)
      bucket = actual.body['Buckets'].select {|bucket| bucket['Name'] == 'foggetservice'}.first
      bucket['CreationDate'].should be_a(Time)
      bucket['Name'].should == 'foggetservice'
      owner = actual.body['Owner']
      owner['DisplayName'].should be_a(String)
      owner['ID'].should be_a(String)
    end

    it 'should include foggetservice in get_service' do
      actual = AWS[:s3].get_service
      actual.body['Buckets'].collect { |bucket| bucket['Name'] }.should include('foggetservice')
    end

  end
end

Version data entries

58 entries across 58 versions & 2 rubygems

Version Path
fog-0.2.30 spec/aws/requests/s3/get_service_spec.rb
fog-0.2.28 spec/aws/requests/s3/get_service_spec.rb
fog-0.2.27 spec/aws/requests/s3/get_service_spec.rb
fog-0.2.26 spec/aws/requests/s3/get_service_spec.rb
fog-0.2.25 spec/aws/requests/s3/get_service_spec.rb
fog-0.2.24 spec/aws/requests/s3/get_service_spec.rb
tecnh-fog-0.2.23.vpc spec/aws/requests/s3/get_service_spec.rb
fog-0.2.23 spec/aws/requests/s3/get_service_spec.rb
fog-0.2.22 spec/aws/requests/s3/get_service_spec.rb
fog-0.2.21 spec/aws/requests/s3/get_service_spec.rb
fog-0.2.20 spec/aws/requests/s3/get_service_spec.rb
fog-0.2.19 spec/aws/requests/s3/get_service_spec.rb
fog-0.2.18 spec/aws/requests/s3/get_service_spec.rb
fog-0.2.17 spec/aws/requests/s3/get_service_spec.rb
fog-0.2.16 spec/aws/requests/s3/get_service_spec.rb
fog-0.2.15 spec/aws/requests/s3/get_service_spec.rb
fog-0.2.14 spec/aws/requests/s3/get_service_spec.rb
fog-0.2.13 spec/aws/requests/s3/get_service_spec.rb
fog-0.2.12 spec/aws/requests/s3/get_service_spec.rb
fog-0.2.11 spec/aws/requests/s3/get_service_spec.rb