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

VPC Endpoint testing #214

Closed
NBJS opened this issue Jan 18, 2017 · 5 comments
Closed

VPC Endpoint testing #214

NBJS opened this issue Jan 18, 2017 · 5 comments

Comments

@NBJS
Copy link

NBJS commented Jan 18, 2017

Will testing of VPC endpoints and related route table routes be included at some point?

I came across this whilst testing routes within a route table which contained an endpoint. The generate command shows:

it { should have_route('').target(gateway: 'vpce-xxxxxxxx') }

but the same spec gives an error

Failures:
  1) route_table 'my_route_table' should have route ""
     Failure/Error: it { should have_route('').target(gateway:'vpce-xxxxxxxx') }
       expected route_table 'my_route_table' to have route ""

Thanks

@k1LoW
Copy link
Owner

k1LoW commented Jan 18, 2017

Hi @NBJS .

I do not know why have_route('') (empty value).

I have 2 questions.

  1. Is this awspec generate bug? or it { should have_route('').target(gateway: 'vpce-xxxxxxxx') } written by you?
  2. How is my_route_table structured?

@NBJS
Copy link
Author

NBJS commented Jan 18, 2017

Hi

When you create an endpoint in the VPC, you specify the route table that is used to access it. This automatically adds a route into that table, see http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-endpoints.html#vpc-endpoints-routing

In the VPC console the route shows as Destination prefixed with pl- and Target with vpce- please see screenshot.
image

awspec generate shows this endpoint route as below (where the id is replaced by xxxxxxxx)

it { should have_route('').target(gateway: 'vpce-xxxxxxxx') }

At the moment I cannot find a way to test for this route. All other routes are fine and I have tested successfully.

I have tried replacing have_route('') with the Destination name pl- but no joy at the moment.

@k1LoW
Copy link
Owner

k1LoW commented Jan 27, 2017

Thank you for your nice report!!

I think awspec generate can not support vpc-endpoint.

Thank you.

@NBJS
Copy link
Author

NBJS commented Jan 27, 2017

You're welcome.

OK. And how about testing of vpc-endpoints?

@k1LoW
Copy link
Owner

k1LoW commented Jan 31, 2017

awspec do not support vpc-endpoint now

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

2 participants