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 dynamicGroupMetadata in cloud_identity_group #9452

Closed
wants to merge 10 commits into from

Conversation

sqin2019
Copy link
Contributor

Add dynamicGroupMetadata in cloud_identity_group

cann't test the change as I don't have a test cloud identity account.

cloudidentity: added support for `dynamic_group_metadata` block to `google_cloud_identity_group` resource

@modular-magician
Copy link
Collaborator

Hello! I am a robot. It looks like you are a: Community Contributor Googler Core Contributor. Tests will run automatically.

@slevenick, 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.

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 3 files changed, 436 insertions(+), 3 deletions(-))
Terraform Beta: Diff ( 3 files changed, 436 insertions(+), 3 deletions(-))
TF Conversion: Diff ( 1 file changed, 103 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 3226
Passed tests 2895
Skipped tests: 329
Affected tests: 2

Action taken

Found 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccCloudIdentityGroup|TestAccCloudIdentityGroup_cloudIdentityGroupsDynamicExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccCloudIdentityGroup[Error message] [Debug log]
TestAccCloudIdentityGroup_cloudIdentityGroupsDynamicExample[Error message] [Debug log]

$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$
View the build log or the debug log for each test

@sqin2019
Copy link
Contributor Author

sqin2019 commented Nov 11, 2023

Failed with Error

Error: Error creating Group: googleapi: Error 403: Error(3006): This feature (Dynamic Groups) requires a premium SKU.
        
          with google_cloud_identity_group.cloud_identity_groups_dynamic,
          on terraform_plugin_test.tf line 2, in resource "google_cloud_identity_group" "cloud_identity_groups_dynamic":
           2: resource "google_cloud_identity_group" "cloud_identity_groups_dynamic" {

test account need to be upgrade to cloud identity premium according to @rileykarson

@sqin2019 sqin2019 marked this pull request as ready for review November 14, 2023 00:46
@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 3 files changed, 436 insertions(+), 3 deletions(-))
Terraform Beta: Diff ( 3 files changed, 436 insertions(+), 3 deletions(-))
TF Conversion: Diff ( 1 file changed, 103 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 3231
Passed tests 2898
Skipped tests: 330
Affected tests: 3

Action taken

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
TestAccCloudIdentityGroup|TestAccCloudIdentityGroup_cloudIdentityGroupsDynamicExample|TestAccDataSourceGoogleServiceAccountAccessToken_basic

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccDataSourceGoogleServiceAccountAccessToken_basic[Debug log]

Rerun these tests in REPLAYING mode to catch issues

$\textcolor{green}{\textsf{No issues found for passed tests after REPLAYING rerun.}}$


$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccCloudIdentityGroup[Error message] [Debug log]
TestAccCloudIdentityGroup_cloudIdentityGroupsDynamicExample[Error message] [Debug log]

$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$
View the build log or the debug log for each test

id = "tf-test-my-identity-dynamic-group%{random_suffix}@%{org_domain}"
}

labels = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like the automatically added dynamic group label is causing problems here. We may need to either add a DiffSuppressFunc for that label, or add it explicitly to the tests

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, added it to the tests.

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 3 files changed, 437 insertions(+), 3 deletions(-))
Terraform Beta: Diff ( 3 files changed, 437 insertions(+), 3 deletions(-))
TF Conversion: Diff ( 1 file changed, 103 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 3233
Passed tests 2900
Skipped tests: 330
Affected tests: 3

Action taken

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
TestAccCloudIdentityGroup|TestAccCloudIdentityGroup_cloudIdentityGroupsDynamicExample|TestAccDataprocJobIamPolicy

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccDataprocJobIamPolicy[Debug log]

Rerun these tests in REPLAYING mode to catch issues

$\textcolor{green}{\textsf{No issues found for passed tests after REPLAYING rerun.}}$


$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccCloudIdentityGroup[Error message] [Debug log]
TestAccCloudIdentityGroup_cloudIdentityGroupsDynamicExample[Error message] [Debug log]

$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$
View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 4 files changed, 442 insertions(+), 3 deletions(-))
Terraform Beta: Diff ( 4 files changed, 437 insertions(+), 8 deletions(-))
TF Conversion: Diff ( 1 file changed, 103 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 3233
Passed tests 2901
Skipped tests: 330
Affected tests: 2

Action taken

Found 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccCloudIdentityGroup|TestAccCloudIdentityGroup_cloudIdentityGroupsDynamicExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccCloudIdentityGroup[Error message] [Debug log]
TestAccCloudIdentityGroup_cloudIdentityGroupsDynamicExample[Error message] [Debug log]

$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$
View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 3 files changed, 429 insertions(+), 3 deletions(-))
Terraform Beta: Diff ( 3 files changed, 429 insertions(+), 3 deletions(-))
TF Conversion: Diff ( 1 file changed, 103 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 3233
Passed tests 2902
Skipped tests: 330
Affected tests: 1

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccCloudIdentityGroup_cloudIdentityGroupsDynamicExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccCloudIdentityGroup_cloudIdentityGroupsDynamicExample[Error message] [Debug log]

$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$
View the build log or the debug log for each test

Copy link
Contributor

@slevenick slevenick left a comment

Choose a reason for hiding this comment

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

I'm still seeing this show up in the tests:
~ labels = {
- "cloudidentity.googleapis.com/groups.dynamic" = "" -> null
# (1 unchanged element hidden)
}

Are you able to successfully run the tests?

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 3 files changed, 440 insertions(+), 14 deletions(-))
Terraform Beta: Diff ( 3 files changed, 443 insertions(+), 17 deletions(-))
TF Conversion: Diff ( 1 file changed, 103 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_cloud_identity_group (1 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_cloud_identity_group" "primary" {
  dynamic_group_metadata {
    queries {
      query         = # value needed
      resource_type = # value needed
    }
  }
}

@sqin2019
Copy link
Contributor Author

sqin2019 commented Dec 9, 2023

The test failed at group creation, added a diffsuppressfunc instead, workaround to use diffsupressfunc for map.

@modular-magician
Copy link
Collaborator

$\textcolor{red}{\textsf{The provider crashed while running the VCR tests in REPLAYING mode}}$
$\textcolor{red}{\textsf{Please fix it to complete your PR}}$
View the build log

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 3 files changed, 423 insertions(+), 5 deletions(-))
Terraform Beta: Diff ( 3 files changed, 423 insertions(+), 5 deletions(-))
TF Conversion: Diff ( 1 file changed, 131 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 3280
Passed tests 2941
Skipped tests: 337
Affected tests: 2

Action taken

Found 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccCloudIdentityGroup|TestAccCloudIdentityGroup_cloudIdentityGroupsDynamicExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccCloudIdentityGroup[Debug log]

Rerun these tests in REPLAYING mode to catch issues

$\textcolor{green}{\textsf{No issues found for passed tests after REPLAYING rerun.}}$


$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccCloudIdentityGroup_cloudIdentityGroupsDynamicExample[Error message] [Debug log]

$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$
View the build log or the debug log for each test

Copy link
Contributor

@slevenick slevenick left a comment

Choose a reason for hiding this comment

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

Continuing to fail due to server-set label

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 3 files changed, 423 insertions(+), 5 deletions(-))
Terraform Beta: Diff ( 3 files changed, 423 insertions(+), 5 deletions(-))
TF Conversion: Diff ( 1 file changed, 131 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 3291
Passed tests 2952
Skipped tests: 337
Affected tests: 2

Action taken

Found 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccCloudIdentityGroup_cloudIdentityGroupsDynamicExample|TestAccComputeRegionPerInstanceConfig_removeInstanceOnDestroy

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccComputeRegionPerInstanceConfig_removeInstanceOnDestroy[Debug log]

Rerun these tests in REPLAYING mode to catch issues

$\textcolor{green}{\textsf{No issues found for passed tests after REPLAYING rerun.}}$


$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccCloudIdentityGroup_cloudIdentityGroupsDynamicExample[Error message] [Debug log]

$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$
View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 3 files changed, 423 insertions(+), 5 deletions(-))
Terraform Beta: Diff ( 3 files changed, 423 insertions(+), 5 deletions(-))
TF Conversion: Diff ( 1 file changed, 131 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 3291
Passed tests 2952
Skipped tests: 337
Affected tests: 2

Action taken

Found 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccCloudIdentityGroup_cloudIdentityGroupsDynamicExample|TestAccDataprocClusterIamPolicy

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccDataprocClusterIamPolicy[Debug log]

Rerun these tests in REPLAYING mode to catch issues

$\textcolor{green}{\textsf{No issues found for passed tests after REPLAYING rerun.}}$


$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccCloudIdentityGroup_cloudIdentityGroupsDynamicExample[Error message] [Debug log]

$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$
View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 3 files changed, 423 insertions(+), 5 deletions(-))
Terraform Beta: Diff ( 3 files changed, 423 insertions(+), 5 deletions(-))
TF Conversion: Diff ( 1 file changed, 131 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 3291
Passed tests 2952
Skipped tests: 338
Affected tests: 1

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccCloudIdentityGroup_cloudIdentityGroupsDynamicExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccCloudIdentityGroup_cloudIdentityGroupsDynamicExample[Debug log]

Rerun these tests in REPLAYING mode to catch issues

$\textcolor{green}{\textsf{No issues found for passed tests after REPLAYING rerun.}}$


$\textcolor{green}{\textsf{All tests passed!}}$
View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 3 files changed, 456 insertions(+), 5 deletions(-))
Terraform Beta: Diff ( 3 files changed, 456 insertions(+), 5 deletions(-))
TF Conversion: Diff ( 1 file changed, 131 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 3293
Passed tests 2954
Skipped tests: 338
Affected tests: 1

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccCloudIdentityGroup_cloudIdentityGroupsDynamicExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccCloudIdentityGroup_cloudIdentityGroupsDynamicExample[Error message] [Debug log]

$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$
View the build log or the debug log for each test

Copy link

@GoogleCloudPlatform/terraform-team This PR has been waiting for review for 3 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link
Contributor

@slevenick slevenick left a comment

Choose a reason for hiding this comment

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

Test failing, please fix

Copy link

github-actions bot commented Jun 5, 2024

@sqin2019, this PR is waiting for action from you. Please address any comments or change requests, or re-request review from a core reviewer if no action is required.

Image showing the re-request review button

If no action is taken, this PR will be closed in 28 days.

This notification can be disabled with the disable-automatic-closure label.

Copy link

@sqin2019, this PR is waiting for action from you. Please address any comments or change requests, or re-request review from a core reviewer if no action is required.

Image showing the re-request review button

If no action is taken, this PR will be closed in 14 days.

This notification can be disabled with the disable-automatic-closure label.

@sqin2019 sqin2019 closed this Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants