Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

its(:propagating_vgws) Syntax #442

Open
connor-tyndall opened this issue Jan 28, 2019 · 2 comments
Open

its(:propagating_vgws) Syntax #442

connor-tyndall opened this issue Jan 28, 2019 · 2 comments

Comments

@connor-tyndall
Copy link

Under the describe route_table resource, I'm wanting to use its(:propagating_vgws) argument. When I try to use this, I get the following error:

:in `block (3 levels) in <top (required)>'

I think my syntax is wrong in how I'm including the vgw_id.

its(:propagating_vgws) { should include "#{vgw_id}" }

Please advise.

@k1LoW
Copy link
Owner

k1LoW commented Jan 31, 2019

:propagating_vgws return array following

[
 {gateway_id: "xxxxxxxxxx"},
 {gateway_id: "yyyyyyyyyy"},
]

see: https://docs.aws.amazon.com/sdkforruby/api/Aws/EC2/Client.html#describe_route_tables-instance_method

@bplunkert
Copy link

bplunkert commented Jan 14, 2020

@k1LoW provided helpful information which got me going. This is the syntax I used:

its(:propagating_vgws) {
  should include(Aws::EC2::Types::PropagatingVgw.new(gateway_id: 'xxxxxxxxxx'))
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants