Sha256: 605d3d2572a39af67dcf1b74310266a110e4af3a857e1abaaf26cfe5dda2a989

Contents?: true

Size: 1.22 KB

Versions: 87

Compression:

Stored size: 1.22 KB

Contents

### exist

```ruby
describe route_table('my-route-table') do
  it { should exist }
end
```

### have_route

```ruby
describe route_table('my-route-table') do
  it { should have_route('10.0.0.0/16').target(gateway: 'local') }
  it { should have_route('0.0.0.0/0').target(gateway: 'igw-1ab2345c') }
  it { should have_route('192.168.1.0/24').target(instance: 'my-ec2') }
  it { should have_route('192.168.2.0/24').target(vpc_peering_connection: 'my-pcx') }
  it { should have_route('192.168.3.0/24').target(nat: 'nat-7ff7777f') }
end
```

### have_subnet

```ruby
describe route_table('my-route-table') do
  it { should have_subnet('my-subnet') }
end
```

### have_tag

```ruby
describe route_table('my-route-table') do
  it { should have_tag('Name').value('my-route-table') }
end
```

### route_count
```ruby
describe route_table('my-route-table') do
  its (:route_count) { should eq 10 }
end
```

### advanced

`route_table` can use `Aws::EC2::RouteTable` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/EC2/RouteTable.html).

```ruby
describe route_table('my-route-table') do
  its('vpc.id') { should eq 'vpc-ab123cde' }
end
```

or

```ruby
describe s3_bucket('my-bucket') do
  its('resource.vpc.id') { should eq 'vpc-ab123cde' }
end
```

Version data entries

87 entries across 87 versions & 3 rubygems

Version Path
awspec-1.31.0 doc/_resource_types/route_table.md
awspec-1.30.0 doc/_resource_types/route_table.md
awspec-1.29.3 doc/_resource_types/route_table.md
awspec-1.29.2 doc/_resource_types/route_table.md
awspec-1.29.1 doc/_resource_types/route_table.md
awspec-1.29.0 doc/_resource_types/route_table.md
awspec-1.28.2 doc/_resource_types/route_table.md
awspec-1.28.1 doc/_resource_types/route_table.md
awspec-1.28.0 doc/_resource_types/route_table.md
awspec-1.27.1 doc/_resource_types/route_table.md
awspec-1.27.0 doc/_resource_types/route_table.md
awspec-1.26.0 doc/_resource_types/route_table.md
awspec-1.25.2 doc/_resource_types/route_table.md
awspec-1.25.1 doc/_resource_types/route_table.md
awspec-1.25.0 doc/_resource_types/route_table.md
awspec-1.24.4 doc/_resource_types/route_table.md
awspec-1.24.3 doc/_resource_types/route_table.md
awspec-1.24.2 doc/_resource_types/route_table.md
awspec-1.24.1 doc/_resource_types/route_table.md
awspec-1.24.0 doc/_resource_types/route_table.md