-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 WorkforcePool #6719
Add new resource WorkforcePool #6719
Conversation
Hello! I am a robot who works on Magic Modules PRs. I've detected that you're a community contributor. @slevenick, a repository maintainer, has been assigned to assist you and help review your changes. ❓ First time contributing? Click here for more detailsYour assigned reviewer will help review your code by:
You can help make sure that review is quick by running local tests and ensuring they're passing in between each push you make to your PR's branch. Also, try to leave a comment with each push you make, as pushes generally don't generate emails. If your reviewer doesn't get back to you within a week after your most recent change, please feel free to leave a comment on the issue asking them to take a look! In the absence of a dedicated review dashboard most maintainers manage their pending reviews through email, and those will sometimes get lost in their inbox. |
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. Terraform GA: Diff ( 9 files changed, 1128 insertions(+), 2 deletions(-)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccFirebaserulesRelease_BasicRelease|TestAccIAMWorkforceWorkforcePool_iamWorkforcePoolBasicExample|TestAccIAMWorkforceWorkforcePool_iamWorkforcePoolFullExample|TestAccIAMWorkforceWorkforcePool_minimal|TestAccIAMWorkforceWorkforcePool_full |
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
Does this API exist yet? It currently seems to fail with a 404: |
It is because the resource has a visibility label. The user project is necessary in order to access the method, so the X-Goog-User-Project header is needed. I enabled user_project_override locally and all the tests passed. |
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. Terraform GA: Diff ( 9 files changed, 1128 insertions(+), 2 deletions(-)) |
Will the visibility label be removed in the future do you know? |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccIAMWorkforcePoolWorkforcePool_minimal|TestAccIAMWorkforcePoolWorkforcePool_full|TestAccIAMWorkforcePoolWorkforcePool_iamWorkforcePoolFullExample|TestAccIAMWorkforcePoolWorkforcePool_iamWorkforcePoolBasicExample|TestAccFirebaserulesRelease_BasicRelease |
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
/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. Terraform GA: Diff ( 9 files changed, 1128 insertions(+), 2 deletions(-)) |
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. Terraform GA: Diff ( 3 files changed, 151 insertions(+)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccIAMWorkforcePoolWorkforcePool_minimal|TestAccIAMWorkforcePoolWorkforcePool_full|TestAccIAMWorkforcePoolWorkforcePool_iamWorkforcePoolFullExample|TestAccIAMWorkforcePoolWorkforcePool_iamWorkforcePoolBasicExample|TestAccFirebaserulesRelease_BasicRelease |
Tests passed during RECORDING mode: All tests passed |
@@ -0,0 +1,37 @@ | |||
const workforcePoolIdRegexp = `^[0-9a-z-]+$` | |||
|
|||
func validateWorkforcePoolId(v interface{}, k string) (ws []string, errors []error) { |
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.
Do we need this much effort client-side to validate names?
Typically we avoid adding too much validation client-side and let the server validate fields like this, as validation tends to change over time. If the validation changes server-side, clients don't need to change to use it, but if it's client-side and needs to change it causes delays in users being able to use the new validation
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 see. I will delete some of the checks. Thank you for pointing this out.
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. Terraform GA: Diff ( 3 files changed, 151 insertions(+)) |
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. Terraform GA: Diff ( 3 files changed, 151 insertions(+)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccIAMWorkforcePoolWorkforcePool_minimal|TestAccIAMWorkforcePoolWorkforcePool_full|TestAccFirebaserulesRelease_BasicRelease |
/gcbrun |
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.
Couple small notes, but LGTM overall. I'll merge after the little fixes
mmv1/templates/terraform/custom_check_destroy/iam_workforce_pool.go.erb
Outdated
Show resolved
Hide resolved
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. Terraform GA: Diff ( 3 files changed, 151 insertions(+)) |
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. Terraform GA: Diff ( 3 files changed, 154 insertions(+)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccBigtableAppProfile_bigtableAppProfileMulticlusterExample |
Add new resource WorkforcePool.
API: https://cloud.google.com/iam/docs/reference/rest/v1/locations.workforcePools
Issue: hashicorp/terraform-provider-google#12836
If this PR is for Terraform, I acknowledge that I have:
make test
andmake lint
to ensure it passes unit and linter tests.Release Note Template for Downstream PRs (will be copied)