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

Use terraform-json to have better terraform plan testing #754

Merged
merged 3 commits into from Mar 31, 2021

Conversation

yorinasub17
Copy link
Contributor

Now that our opensource policy allows MPL, here is a PR that updates our examples to use terraform-json. Note that this also implements a struct that wraps terraform-json to provide a more ergonomic interface to navigate the plan struct by providing a map that maps the resource addresses to the corresponding struct values.

Copy link
Member

@brikis98 brikis98 left a comment

Choose a reason for hiding this comment

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

Nice improvement 👍

modules/terraform/plan_struct.go Outdated Show resolved Hide resolved
modules/terraform/plan_struct.go Outdated Show resolved Hide resolved
modules/terraform/plan_struct_test.go Show resolved Hide resolved
brikis98
brikis98 previously approved these changes Jan 8, 2021
Copy link
Member

@brikis98 brikis98 left a comment

Choose a reason for hiding this comment

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

LGTM!

@yorinasub17
Copy link
Contributor Author

Going to hold off merging this until we resolve the build issues with #756

Copy link
Contributor

@rhoboat rhoboat left a comment

Choose a reason for hiding this comment

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

LGTM!

@yorinasub17
Copy link
Contributor Author

Thanks for review. I ran the build a few times, and different tests fail each time, and they are all unrelated to this PR, so going to go ahead and merge this in.

@yorinasub17 yorinasub17 merged commit 0ee1f11 into master Mar 31, 2021
@yorinasub17 yorinasub17 deleted the yori-better-plan-testing branch March 31, 2021 14:50
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.

None yet

3 participants