Sha256: 4de175945537ef40a8c964aa46a6a3aea9a340cb4d64cbecfcd1f00476ab3c7a

Contents?: true

Size: 726 Bytes

Versions: 2

Compression:

Stored size: 726 Bytes

Contents

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

describe 'EC2.create_snapshot' do

  before(:all) do
    @ec2 = Fog::AWS::EC2.gen
    @volume_id = @ec2.create_volume('us-east-1a', 1).body['volumeId']
  end

  after(:all) do
    @ec2.delete_volume(@volume_id)
    eventually do
      @ec2.delete_snapshot(@snapshot_id)
    end
  end

  it "should return proper attributes" do
    actual = @ec2.create_snapshot(@volume_id)
    actual.body['progress'].should be_a(String)
    @snapshot_id = actual.body['snapshotId']
    actual.body['snapshotId'].should be_a(String)
    actual.body['startTime'].should be_a(Time)
    actual.body['status'].should be_a(String)
    actual.body['volumeId'].should be_a(String)
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
geemus-fog-0.0.1 spec/aws/requests/ec2/create_snapshot_spec.rb
geemus-fog-0.0.3 spec/aws/requests/ec2/create_snapshot_spec.rb