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

Inspec nested refactor #1368

Merged
merged 5 commits into from
Feb 13, 2019
Merged

Inspec nested refactor #1368

merged 5 commits into from
Feb 13, 2019

Conversation

slevenick
Copy link
Contributor

Refactor nested objects in InSpec to be namespaced by the entire path to get to that object. This makes sure that when a resource has two nested objects with the same name, but at different points within the object structure, they can have different formats.

For example: BigQuery Table schema can have a different nested object than externalDataConfiguration.schema


[all]

[terraform]

[terraform-beta]

[ansible]

[inspec]

@modular-magician
Copy link
Collaborator

I am a robot that works on MagicModules PRs!

I built this PR into one or more PRs on other repositories, and when those are closed, this PR will also be merged and closed.
depends: modular-magician/inspec-gcp#105

@slevenick
Copy link
Contributor Author

This also gets InSpec off of all the old style generation of files using the incorrect logic in type.rb for property_class and property_file methods.

@rambleraptor
Copy link
Contributor

Does the InSpec downstream pass Rubocop? It seems like there's some super long line lengths.

@slevenick
Copy link
Contributor Author

Yeah, rubocop is run during the generate step. The inspec-gcp rubocop file has very lenient line length restrictions

@modular-magician
Copy link
Collaborator

I am (still) a robot that works on MagicModules PRs!

I just wanted to let you know that your changes (as of commit fdc57a7) have been included in your existing downstream PRs.

@modular-magician modular-magician merged commit 5d75070 into master Feb 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants