-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add new resource google_folder_organization_policy #747
Conversation
45790d0
to
dc03279
Compare
dc03279
to
ff7d965
Compare
Rebased with the latest changes. |
} | ||
|
||
if policy.ListPolicy.AllValues != policyType { | ||
return fmt.Errorf("Expected the list policy to '%s' all values, got '%s'", policyType, policy.ListPolicy.AllValues) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not totally sure what this is supposed to say, can you reword it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wooahh. I don't even know what I meant. Reworded.
FYI, policyType is either ALLOW or DENY.
func testAccGoogleFolderOrganizationPolicy_boolean(org string, enforced bool) string { | ||
return fmt.Sprintf(` | ||
resource "google_folder" "orgpolicy" { | ||
display_name = "%s" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: indentation isn't consistent between this block and the next
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
enforced = %t | ||
} | ||
} | ||
`, acctest.RandomWithPrefix("tf-test"), "organizations/"+org, enforced) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even though you can rename a folder, let's use a consistent name per-test (rather than per-test-step) so we guarantee we're testing only the org policy behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
* Add new resource google_folder_organization_policy * Add documentation
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Fixes #414