feat: implementation for iam resources on google_iam_workforce_pool#13861
Conversation
a4a17ad to
961a9ca
Compare
|
I put Some background: When I do not set Because the format string contains two times
magic-modules/mmv1/api/resource.go Line 1480 in aee304c When I look into this method, it only has if branches for specific keys, such as: A fix could be to add another if branch, or in the final else append else if param == "workforce_pool_id" {
importQualifiers = append(importQualifiers, `context["workforce_pool_id"]`)
}However, I don't know the background of this code well enough, so I don't know what is desired here. Would love to open the discussion and/or get some guidance on this! |
|
Another thing, while implementing I ran into another issue. The API seems to give 500s when trying to set the IAM policy on the resource (get the same error when I try this directly via the endpoint). POST /v1/locations/global/workforcePools/my-test-pool:setIamPolicy?alt=json HTTP/1.1 Body: {
"policy": {
"bindings": [
{
"members": [
"user:admin@example.com"
],
"role": "roles/iam.workforcePoolAdmin"
}
],
"etag": "BwY0e7cRtGo=",
"version": 2
}
}Response: {
"error": {
"code": 500,
"message": "Internal error encountered.",
"status": "INTERNAL"
}
} |
|
Hello! I am a robot. Tests will require approval from a repository maintainer to run. Googlers: For automatic test runs see go/terraform-auto-test-runs. @SirGitsalot, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_iam_workforce_pool_iam_binding" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
Resource: resource "google_iam_workforce_pool_iam_member" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
Missing doc report (experimental)The following resources have fields missing in documents.
|
Tests analyticsTotal tests: 20 Click here to see the affected service packages
Action takenFound 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
6ae618d to
ceb4486
Compare
ceb4486 to
372d2dc
Compare
372d2dc to
5e6f2ff
Compare
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_iam_workforce_pool_iam_binding" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
Resource: resource "google_iam_workforce_pool_iam_member" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
Missing doc report (experimental)The following resources have fields missing in documents.
|
Tests analyticsTotal tests: 22 Click here to see the affected service packages
Action takenFound 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
|
@BBBmau This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
5e6f2ff to
359522a
Compare
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_iam_workforce_pool_iam_binding" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
Resource: resource "google_iam_workforce_pool_iam_member" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
Missing doc report (experimental)The following resources have fields missing in documents.
|
Tests analyticsTotal tests: 22 Click here to see the affected service packages
Action takenFound 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_iam_workforce_pool_iam_binding" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
Resource: resource "google_iam_workforce_pool_iam_member" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
Multiple resources addedThis PR adds multiple new resources: |
Tests analyticsTotal tests: 24 Click here to see the affected service packages
Found 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
🟢 Tests passed during RECORDING mode: 🟢 No issues found for passed tests after REPLAYING rerun. 🟢 All tests passed! |
|
@SirGitsalot This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
|
@GoogleCloudPlatform/terraform-team @SirGitsalot This PR has been waiting for review for 1 week. Please take a look! Use the label |
|
/gcbrun |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_iam_workforce_pool_iam_binding" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
Resource: resource "google_iam_workforce_pool_iam_member" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
Multiple resources addedThis PR adds multiple new resources: |
Tests analyticsTotal tests: 24 Click here to see the affected service packages
View the build log |
|
@SirGitsalot This PR is approved and has been waiting for merge for 1 week. Is it ready to merge? Use the label |
|
@SirGitsalot This PR is approved and has been waiting for merge for 2 weeks. Is it ready to merge? Use the label |
a7baf6f

Closes hashicorp/terraform-provider-google#22589
Release Note Template for Downstream PRs (will be copied)
See Write release notes for guidance.