Sha256: a1f3b8514ea936cc223fd36d17b0ad3891e45ce4e9d18035403f052793ef5139

Contents?: true

Size: 548 Bytes

Versions: 4

Compression:

Stored size: 548 Bytes

Contents

Given(/^I describe the EC2 region "(.*?)"$/) do |region_name|
  @region = @ec2.describe_regions(region_names: [region_name]).data.regions.first
end

Then(/^the EC2 endpoint for the region should be "(.*?)"$/) do |endpoint|
  expect(@region.endpoint).to eq(endpoint)
end

Given(/^I describe a non-existent instance$/) do
  begin
    @ec2.describe_instances(instance_ids: ['i-12345678'])
  rescue => error
    @error = error
  end
end

Then(/^a "(.*?)" error should be raised$/) do |error_class|
  expect(@error.class.name).to match(error_class)
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aws-sdk-core-2.0.0.rc4 features/ec2/step_definitions.rb
aws-sdk-core-2.0.0.rc3 features/ec2/step_definitions.rb
aws-sdk-core-2.0.0.rc2 features/ec2/step_definitions.rb
aws-sdk-core-2.0.0.rc1 features/ec2/step_definitions.rb