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 support for Managed zone resource of Integration Connectors. #9617

Closed
wants to merge 335 commits into from

Conversation

balanaguharsha
Copy link
Contributor

@balanaguharsha balanaguharsha commented Dec 9, 2023

Adding support for Managed zone resource of Integration connectors.

Release Note Template for Downstream PRs (will be copied)

`google_integration_connectors_managed_zone`

Fixes hashicorp/terraform-provider-google#16762

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

@rileykarson, 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 ( 5 files changed, 972 insertions(+), 2 deletions(-))
Terraform Beta: Diff ( 5 files changed, 972 insertions(+), 2 deletions(-))
TF Conversion: Diff ( 1 file changed, 116 insertions(+))
TF OiCS: Diff ( 4 files changed, 114 insertions(+))

Missing test report

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

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

resource "google_integration_connectors_managed_zone" "primary" {
  description    = # value needed
  dns            = # value needed
  labels         = # value needed
  name           = # value needed
  target_project = # value needed
  target_vpc     = # value needed
}

@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 ( 6 files changed, 972 insertions(+), 7 deletions(-))
Terraform Beta: Diff ( 6 files changed, 977 insertions(+), 2 deletions(-))
TF Conversion: Diff ( 1 file changed, 116 insertions(+))
TF OiCS: Diff ( 4 files changed, 114 insertions(+))

@balanaguharsha balanaguharsha force-pushed the mz branch 3 times, most recently from 3114ab7 to 2902538 Compare December 9, 2023 13:35
@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 ( 6 files changed, 1053 insertions(+), 2 deletions(-))
Terraform Beta: Diff ( 6 files changed, 1053 insertions(+), 2 deletions(-))
TF Conversion: Diff ( 1 file changed, 116 insertions(+))
TF OiCS: Diff ( 4 files changed, 114 insertions(+))

1 similar comment
@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 ( 6 files changed, 1053 insertions(+), 2 deletions(-))
Terraform Beta: Diff ( 6 files changed, 1053 insertions(+), 2 deletions(-))
TF Conversion: Diff ( 1 file changed, 116 insertions(+))
TF OiCS: Diff ( 4 files changed, 114 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 3281
Passed tests 2944
Skipped tests: 334
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
TestAccIntegrationConnectorsManagedZone_integrationConnectorsManagedZoneExample|TestAccIntegrationConnectorsManagedZone_integrationConnectorsManagedZoneExample_update|TestAccDataSourceGoogleServiceAccountIdToken_impersonation

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccDataSourceGoogleServiceAccountIdToken_impersonation[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:}}$
TestAccIntegrationConnectorsManagedZone_integrationConnectorsManagedZoneExample[Error message] [Debug log]
TestAccIntegrationConnectorsManagedZone_integrationConnectorsManagedZoneExample_update[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

mmv1/products/integrationconnectors/ManazedZone.yaml Outdated Show resolved Hide resolved
labels = {
intent = "example"
}
target_project="connectors-example"
Copy link
Member

Choose a reason for hiding this comment

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

See error message in the VCR results. We'll need a real target project- I think we will want to define a google_project resource inline and permission the service account against it as appropriate.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is to create a project in this same terraform config?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need a list of projects in which this may run, so that I can create IAM policies to allow the role in the project which has this resource. It didn't make sense to create end to end of this setup in terraform as this goes to terraform docs as well, please suggest.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @rileykarson please take a look

Copy link
Member

Choose a reason for hiding this comment

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

It didn't make sense to create end to end of this setup in terraform as this goes to terraform docs as well, please suggest.

That should be fine, we do that level of setup in those samples in other products too.

Copy link
Member

Choose a reason for hiding this comment

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

I'd recommend the full setup (including the target project) inline.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not just the target project, do we allow creating a new project, if so, which billing account to use, etc,etc

Copy link
Member

Choose a reason for hiding this comment

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


func testAccIntegrationConnectorsManagedZone_integrationConnectorsManagedZoneExample_full(context map[string]interface{}) string {
return acctest.Nprintf(`
data "google_project" "test_project" {
Copy link
Member

Choose a reason for hiding this comment

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

This is not getting used, we can remove it.

@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 ( 6 files changed, 1053 insertions(+), 2 deletions(-))
Terraform Beta: Diff ( 6 files changed, 1053 insertions(+), 2 deletions(-))
TF Conversion: Diff ( 1 file changed, 116 insertions(+))
TF OiCS: Diff ( 4 files changed, 114 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 12
Passed tests 10
Skipped tests: 0
Affected tests: 2

Click here to see the affected service packages
  • integrationconnectors

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
TestAccIntegrationConnectorsManagedZone_integrationConnectorsManagedZoneExample_update|TestAccIntegrationConnectorsManagedZone_integrationConnectorsManagedZoneExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccIntegrationConnectorsManagedZone_integrationConnectorsManagedZoneExample_update[Error message] [Debug log]
TestAccIntegrationConnectorsManagedZone_integrationConnectorsManagedZoneExample[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

@rileykarson
Copy link
Member

/gcbrun

@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 ( 9 files changed, 1401 insertions(+), 6 deletions(-))
Terraform Beta: Diff ( 9 files changed, 1401 insertions(+), 6 deletions(-))
TF Conversion: Diff ( 2 files changed, 242 insertions(+))
TF OiCS: Diff ( 5 files changed, 125 insertions(+))

Missing test report

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

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

resource "google_integration_connectors_connection" "primary" {
  eventing_config {
    proxy_destination_config {
      destination {
        service_attachment = # value needed
      }
    }
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 12
Passed tests: 9
Skipped tests: 0
Affected tests: 3

Click here to see the affected service packages
  • integrationconnectors

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
TestAccIntegrationConnectorsConnection_integrationConnectorsConnectionAdvancedExample|TestAccIntegrationConnectorsManagedZone_integrationConnectorsManagedZoneExample|TestAccIntegrationConnectorsManagedZone_integrationConnectorsManagedZoneExample_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

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

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


$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccIntegrationConnectorsManagedZone_integrationConnectorsManagedZoneExample[Error message] [Debug log]
TestAccIntegrationConnectorsManagedZone_integrationConnectorsManagedZoneExample_update[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
Member

@rileykarson rileykarson left a comment

Choose a reason for hiding this comment

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

Latest comment is #9617 (comment), commenting to dismiss review request until next update.

roaks3 and others added 28 commits May 2, 2024 14:45
@github-actions github-actions bot requested a review from rileykarson May 2, 2024 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment