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

Add 'google_folder_iam_binding' and 'google_folder_iam_member' resources #1076

Merged
merged 2 commits into from
Feb 13, 2018
Merged

Add 'google_folder_iam_binding' and 'google_folder_iam_member' resources #1076

merged 2 commits into from
Feb 13, 2018

Conversation

ewbankkit
Copy link
Contributor

Fixes #1075.

Acceptance tests:

  • google_folder_iam_binding resource
make testacc TEST=./google/ TESTARGS='-run=TestAccGoogleFolderIamBinding_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./google/ -v -run=TestAccGoogleFolderIamBinding_ -timeout 120m
=== RUN   TestAccGoogleFolderIamBinding_basic
=== RUN   TestAccGoogleFolderIamBinding_multiple
=== RUN   TestAccGoogleFolderIamBinding_multipleAtOnce
=== RUN   TestAccGoogleFolderIamBinding_update
=== RUN   TestAccGoogleFolderIamBinding_remove
--- PASS: TestAccGoogleFolderIamBinding_basic (17.41s)
--- PASS: TestAccGoogleFolderIamBinding_remove (19.18s)
--- PASS: TestAccGoogleFolderIamBinding_update (24.55s)
--- PASS: TestAccGoogleFolderIamBinding_multipleAtOnce (18.64s)
--- PASS: TestAccGoogleFolderIamBinding_multiple (23.73s)
PASS
ok  	github.com/terraform-providers/terraform-provider-google/google	103.516s
  • google_folder_iam_member resource
make testacc TEST=./google/ TESTARGS='-run=TestAccGoogleFolderIamMember_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./google/ -v -run=TestAccGoogleFolderIamMember_ -timeout 120m
=== RUN   TestAccGoogleFolderIamMember_basic
=== RUN   TestAccGoogleFolderIamMember_multiple
=== RUN   TestAccGoogleFolderIamMember_remove
--- PASS: TestAccGoogleFolderIamMember_basic (17.47s)
--- PASS: TestAccGoogleFolderIamMember_remove (19.73s)
--- PASS: TestAccGoogleFolderIamMember_multiple (22.66s)
PASS
ok  	github.com/terraform-providers/terraform-provider-google/google	59.874s

@ewbankkit
Copy link
Contributor Author

Regression tests for code refactored as part of this PR:

  • google_active_folder data source
make testacc TEST=./google/ TESTARGS='-run=TestAccDataSourceGoogleActiveFolder'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./google/ -v -run=TestAccDataSourceGoogleActiveFolder -timeout 120m
=== RUN   TestAccDataSourceGoogleActiveFolder
--- PASS: TestAccDataSourceGoogleActiveFolder (13.19s)
PASS
ok  	github.com/terraform-providers/terraform-provider-google/google	13.197s
  • google_folder_iam_policy resource
make testacc TEST=./google/ TESTARGS='-run=TestAccGoogleFolderIamPolicy_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./google/ -v -run=TestAccGoogleFolderIamPolicy_ -timeout 120m
=== RUN   TestAccGoogleFolderIamPolicy_basic
=== RUN   TestAccGoogleFolderIamPolicy_update
--- PASS: TestAccGoogleFolderIamPolicy_basic (15.52s)
--- PASS: TestAccGoogleFolderIamPolicy_update (17.98s)
PASS
ok  	github.com/terraform-providers/terraform-provider-google/google	33.507s

Copy link
Contributor

@nat-henderson nat-henderson left a comment

Choose a reason for hiding this comment

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

Looks good - I'm running the tests now.

@nat-henderson
Copy link
Contributor

Some test failures, which I have to imagine are flakes - rerunning to deflake now.

@nat-henderson
Copy link
Contributor

Hm, they're persistent:

------- Stdout: -------
=== RUN   TestAccGoogleFolderIamBinding_update
--- FAIL: TestAccGoogleFolderIamBinding_update (24.55s)
    testing.go:513: Step 3 error: Check failed: Check 1/1 error: IAM policy for folder "terraform-se307rl6m0" had no role "roles/compute.instanceAdmin"
FAIL

Any thoughts?

@ewbankkit
Copy link
Contributor Author

I rebased to remove the merge conflict and re-ran the tests:

make testacc TEST=./google/ TESTARGS='-run=TestAccGoogleFolderIamBinding_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./google/ -v -run=TestAccGoogleFolderIamBinding_ -timeout 120m
=== RUN   TestAccGoogleFolderIamBinding_basic
=== RUN   TestAccGoogleFolderIamBinding_multiple
=== RUN   TestAccGoogleFolderIamBinding_multipleAtOnce
=== RUN   TestAccGoogleFolderIamBinding_update
=== RUN   TestAccGoogleFolderIamBinding_remove
--- PASS: TestAccGoogleFolderIamBinding_basic (17.71s)
--- PASS: TestAccGoogleFolderIamBinding_multipleAtOnce (18.83s)
--- PASS: TestAccGoogleFolderIamBinding_remove (19.21s)
--- PASS: TestAccGoogleFolderIamBinding_multiple (20.58s)
--- PASS: TestAccGoogleFolderIamBinding_update (23.54s)
PASS
ok  	github.com/terraform-providers/terraform-provider-google/google	29.782s
make testacc TEST=./google/ TESTARGS='-run=TestAccGoogleFolderIamMember_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./google/ -v -run=TestAccGoogleFolderIamMember_ -timeout 120m
=== RUN   TestAccGoogleFolderIamMember_basic
=== RUN   TestAccGoogleFolderIamMember_multiple
=== RUN   TestAccGoogleFolderIamMember_remove
--- PASS: TestAccGoogleFolderIamMember_basic (16.62s)
--- PASS: TestAccGoogleFolderIamMember_remove (19.09s)
--- PASS: TestAccGoogleFolderIamMember_multiple (20.08s)
PASS
ok  	github.com/terraform-providers/terraform-provider-google/google	20.368s

I added additional information to the error message for the failing case.

@nat-henderson
Copy link
Contributor

I'll try it again.

@nat-henderson
Copy link
Contributor

Tests passed after that commit, merging.

@nat-henderson nat-henderson merged commit 21e0075 into hashicorp:master Feb 13, 2018
@ewbankkit ewbankkit deleted the issue-1075 branch February 13, 2018 21:18
chrisst pushed a commit to chrisst/terraform-provider-google that referenced this pull request Nov 9, 2018
modular-magician pushed a commit to modular-magician/terraform-provider-google that referenced this pull request Sep 27, 2019
Adding next_hop_ilb attribute to compute route resource
@ghost
Copy link

ghost commented Mar 29, 2020

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 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: Add 'google_folder_iam_binding' and 'google_folder_iam_member' resources
2 participants