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

GCP subnet share conditions not working correctly #194

Merged
merged 11 commits into from
May 14, 2019

Conversation

kopachevsky
Copy link

@kopachevsky kopachevsky commented May 8, 2019

Issue #152

Ready for review

…rking correctly

- added regexp based subnet name validation
- added relative region and subnet values extractions from source string
@aaron-lane
Copy link
Contributor

Fixes #152.

modules/core_project_factory/main.tf Outdated Show resolved Hide resolved
test/integration/full/controls/shared-vpc.rb Outdated Show resolved Hide resolved
…rking correctly. - fixed subnet region to available
…rking correctly

- removed typos
- removed meta programming from tests
…rking correctly

- fixed local variables initialization from attributes
@kopachevsky kopachevsky requested a review from aaron-lane May 10, 2019 14:57
Copy link
Contributor

@aaron-lane aaron-lane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kopachevsky this looks good! Can you please add a CHANGELOG entry and provide a gist which contains the output of a Terraform process when it fails due to an invalid subnet being passed to shared_vpc_subnets?

…rking correctly

- temporary commit to check early fail if shared vpc subnet name not valid (HTTPS changed to HTTP)
- revert after check
…rking correctly

- revert: temporary commit to check early fail if shared vpc subnet name not valid (HTTPS changed to HTTP)
@kopachevsky
Copy link
Author

@aaron-lane

Can you please add a CHANGELOG entry and provide a gist which contains the output of a Terraform process when it fails due to an invalid subnet being passed to shared_vpc_subnets?

Added CHANGELOG
Regarding gist, it can take to much time execute locally full test without G Suite, so I've added bad sunet name in previous commit and got:

       1 error(s) occurred:
       
       * module.project-factory.module.project-factory.null_resource.check_if_shared_vpc_subnets_contains_items_with_invalid_name: Error running command 'false': exit status 1. Output: 

on Concourse build 422, should I copy/paste full terraform output from there for Full test suite? I think it could contain sensitive info

@aaron-lane aaron-lane merged commit 362a9c2 into terraform-google-modules:master May 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants