Add Cloud Identity Policy resource (v1beta1) to terraform google-beta#16241
Add Cloud Identity Policy resource (v1beta1) to terraform google-beta#16241hao-nan-li merged 8 commits intoGoogleCloudPlatform:mainfrom
Conversation
|
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. @hao-nan-li, 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_cloud_identity_policy" "primary" {
customer = # value needed
policy_query {
group = # value needed
org_unit = # value needed
query = # value needed
}
setting {
type = # value needed
value_json = # value needed
}
}
Missing service labelsThe following new resources do not have corresponding service labels:
If you believe this detection to be incorrect please raise the concern with your reviewer. Googlers: This error is safe to ignore once you've completed go/fix-missing-service-labels. |
Tests analyticsTotal tests: 3 Click here to see the affected service packages
🟢 All tests passed! View the build log |
hao-nan-li
left a comment
There was a problem hiding this comment.
Could you add some test for this new resource?
|
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_cloud_identity_policy" "primary" {
customer = # value needed
policy_query {
group = # value needed
org_unit = # value needed
query = # value needed
}
setting {
type = # value needed
value_json = # value needed
}
}
Missing service labelsThe following new resources do not have corresponding service labels:
If you believe this detection to be incorrect please raise the concern with your reviewer. Googlers: This error is safe to ignore once you've completed go/fix-missing-service-labels. |
Tests analyticsTotal tests: 5 Click here to see the affected service packages
Action takenFound 2 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. |
|
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 service labelsThe following new resources do not have corresponding service labels:
If you believe this detection to be incorrect please raise the concern with your reviewer. Googlers: This error is safe to ignore once you've completed go/fix-missing-service-labels. |
Tests analyticsTotal tests: 5 Click here to see the affected service packages
Action takenFound 2 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. |
|
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 service labelsThe following new resources do not have corresponding service labels:
If you believe this detection to be incorrect please raise the concern with your reviewer. Googlers: This error is safe to ignore once you've completed go/fix-missing-service-labels. |
Tests analyticsTotal tests: 5 Click here to see the affected service packages
Action takenFound 2 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. |
|
@hao-nan-li This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
|
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_cloud_identity_policy" "primary" {
policy_query {
group = # value needed
}
}
Missing service labelsThe following new resources do not have corresponding service labels:
If you believe this detection to be incorrect please raise the concern with your reviewer. Googlers: This error is safe to ignore once you've completed go/fix-missing-service-labels. |
Tests analyticsTotal tests: 4 Click here to see the affected service packages
Action takenFound 1 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. |
|
I have added resource acceptance tests to test out Create/Update/Delete/Get flows. I ran into 2 issues here.
The large PR is because of the checked in VCR cassette file, and if that is excluded, it is less than the limit of 500 lines of code. Thanks. |
|
|
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_cloud_identity_policy" "primary" {
policy_query {
group = # value needed
}
}
Missing service labelsThe following new resources do not have corresponding service labels:
If you believe this detection to be incorrect please raise the concern with your reviewer. Googlers: This error is safe to ignore once you've completed go/fix-missing-service-labels. |
Tests analyticsTotal tests: 4 Click here to see the affected service packages
Action takenFound 1 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. |
|
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_cloud_identity_policy" "primary" {
policy_query {
group = # value needed
}
}
Missing service labelsThe following new resources do not have corresponding service labels:
If you believe this detection to be incorrect please raise the concern with your reviewer. Googlers: This error is safe to ignore once you've completed go/fix-missing-service-labels. |
Non-exercised tests🔴 Tests were added that are skipped in VCR:
Tests analyticsTotal tests: 4 Click here to see the affected service packages
🟢 All tests passed! View the build log |
|
Perhaps I missed, have you uploaded the full log of the skipped test? |
Yes, please look at the file mmv1/third_party/terraform/services/cloudidentity/test-fixtures/TestAccCloudIdentityPolicy_cloudidentityPolicyBasic.yaml in the Files Changed tab. It contains logs from the test which was run in RECORDING mode. |
|
@hao-nan-li This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
Could you run it locally and put the log in gpaste? |
|
@GoogleCloudPlatform/terraform-team @hao-nan-li This PR has been waiting for review for 1 week. Please take a look! Use the label |
| @@ -0,0 +1,623 @@ | |||
| --- | |||
| version: 1 | |||
There was a problem hiding this comment.
Can you remove this file from this PR?
There was a problem hiding this comment.
Without this file, there is no checked in evidence that I was able to run the tests without skipping and those calls succeeded. There are other examples like https://github.com/GoogleCloudPlatform/magic-modules/blob/main/mmv1/third_party/terraform/services/compute/test-fixtures/openapi.yaml, which have checked in yaml files.
Also I can run the test in replay mode with this file present, and use it to debug in the future if any breakages occur.
There was a problem hiding this comment.
Deleted after offline discussion. http://gpaste/6308412330737664 for proof of test run.
| @@ -0,0 +1 @@ | |||
| 1965898075515349854 No newline at end of file | |||
There was a problem hiding this comment.
Yes, because it is used in conjunction with above yaml file to do replay runs.
There was a problem hiding this comment.
Deleted after offline discussion.
|
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_cloud_identity_policy" "primary" {
policy_query {
group = # value needed
}
}
Missing service labelsThe following new resources do not have corresponding service labels:
If you believe this detection to be incorrect please raise the concern with your reviewer. Googlers: This error is safe to ignore once you've completed go/fix-missing-service-labels. |
|
https://paste.googleplex.com/6308412330737664 for TestAccCloudIdentityPolicy_cloudidentityPolicyBasic |
Non-exercised tests🔴 Tests were added that are skipped in VCR:
Tests analyticsTotal tests: 4 Click here to see the affected service packages
🟢 All tests passed! View the build log |
| The PolicyQuery the Setting applies to. | ||
| type: NestedObject | ||
| required: true | ||
| immutable: true |
There was a problem hiding this comment.
I noticed most of the fields are marked as immutable, is this resource immutable?
There was a problem hiding this comment.
No, the setting object has a nested field called valueJson which is mutable.
dfb4166
notravis516-ux
left a comment
There was a problem hiding this comment.
I cannot connect it to my web address and I need a fix on these issues. I really appreciate it.
This PR is merged but not released yet. Did the issue happen when you tried to use this feature? |
|
I don't think so but I had to fix something before I ran the badge fix. I
am back in firebase now though doing everything I can but I'm kinda new at
this so I had to use Gemini a lot. I don't have a clue what's up with it. I
didn't think that you would be that fast to respond. I appreciate you. My
weird program was mostly installed when I had a freaking script error and
when I got past that now I just can't get it to link up??
…On Wed, Feb 11, 2026, 4:16 PM hao-nan-li ***@***.***> wrote:
*hao-nan-li* left a comment (GoogleCloudPlatform/magic-modules#16241)
<#16241 (comment)>
I cannot connect it to my web address and I need a fix on these issues. I
really appreciate it.
This PR is merged but not released yet. Did the issue happen when you
tried to use this feature?
—
Reply to this email directly, view it on GitHub
<#16241 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/B2LVEWKEYSDW6ZMGUJX4UVT4LOS4JAVCNFSM6AAAAACTCWEBFOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTQOBXGUZDQMRTHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Adding support for the resource https://docs.cloud.google.com/identity/docs/reference/rest/v1beta1/policies in Terraform beta
override-missing-service-label