Sha256: 31686de03cbea708b22318b373b1e43db1934172b363db4590323cb19cdbd132

Contents?: true

Size: 642 Bytes

Versions: 7

Compression:

Stored size: 642 Bytes

Contents

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

describe 'EC2.get_console_output' do
  describe 'success' do

    before(:each) do
      @instance_id = ec2.run_instances('ami-5ee70037', 1, 1).body['instancesSet'].first['instanceId']
    end

    after(:each) do
      ec2.terminate_instances([@instance_id])
    end

    it "should return proper attributes" do
      actual = ec2.get_console_output(@instance_id)
      actual.body['instanceId'].should be_a(String)
      actual.body['output'].should be_a(String)
      actual.body['requestId'].should be_a(String)
      actual.body['timestamp'].should be_a(Time)
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fog-0.0.9 spec/aws/requests/ec2/get_console_output_spec.rb
fog-0.0.8 spec/aws/requests/ec2/get_console_output_spec.rb
fog-0.0.7 spec/aws/requests/ec2/get_console_output_spec.rb
fog-0.0.6 spec/aws/requests/ec2/get_console_output_spec.rb
fog-0.0.5 spec/aws/requests/ec2/get_console_output_spec.rb
fog-0.0.4 spec/aws/requests/ec2/get_console_output_spec.rb
fog-0.0.3 spec/aws/requests/ec2/get_console_output_spec.rb