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 Private Service Connect to Looker #11487

Merged
merged 8 commits into from
Sep 18, 2024

Conversation

efeelaiho
Copy link
Contributor

@efeelaiho efeelaiho commented Aug 19, 2024

Adding Add Private Service Connect (PSC) connection to Looker instances

Release Note Template for Downstream PRs (will be copied)

looker:  added `psc_enabled` and `psc_config` to `google_looker_instance` resource

Copy link

Hello! I am a robot. Tests will require approval from a repository maintainer to run.

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

google provider: Diff ( 2 files changed, 284 insertions(+))
google-beta provider: Diff ( 2 files changed, 284 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 105 insertions(+))

Missing test report

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

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

resource "google_looker_instance" "primary" {
  psc_config {
    allowed_vpcs = # value needed
    service_attachments {
      local_fqdn                    = # value needed
      target_service_attachment_uri = # value needed
    }
  }
  psc_enabled = # value needed
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 5
Passed tests: 5
Skipped tests: 0
Affected tests: 0

Click here to see the affected service packages
  • looker

$\textcolor{green}{\textsf{All tests passed!}}$

View the build log

@efeelaiho
Copy link
Contributor Author

@c2thorn any thing I should do here to get this merged?

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

google provider: Diff ( 2 files changed, 284 insertions(+))
google-beta provider: Diff ( 2 files changed, 284 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 105 insertions(+))

Missing test report

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

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

resource "google_looker_instance" "primary" {
  psc_config {
    allowed_vpcs = # value needed
    service_attachments {
      local_fqdn                    = # value needed
      target_service_attachment_uri = # value needed
    }
  }
  psc_enabled = # value needed
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 5
Passed tests: 5
Skipped tests: 0
Affected tests: 0

Click here to see the affected service packages
  • looker

$\textcolor{green}{\textsf{All tests passed!}}$

View the build log

Copy link

@c2thorn This PR has been waiting for review for 3 weekdays. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link

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

psc_config {
allowed_vpcs: ["projects/test-project/global/networks/test"]
// update only
// service_attachments: [{local_fqdn: "www.local-fqdn.com" target_service_attachment_uri: "projects/my-project/regions/us-east1/serviceAttachments/sa"}]
Copy link
Member

Choose a reason for hiding this comment

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

are these meant to be commented out? Terraform comments use "#"

But if you are trying to make an update test, that should be done in a handwritten file. I'm not sure if one already exists for looker, but you can see our documentation here: https://googlecloudplatform.github.io/magic-modules/develop/test/test/#add-an-update-test

Copy link
Member

@c2thorn c2thorn left a comment

Choose a reason for hiding this comment

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

can you also update the release note to be in this specific style: https://googlecloudplatform.github.io/magic-modules/contribute/release-notes/

@github-actions github-actions bot requested a review from c2thorn August 28, 2024 16:38
@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.

google provider: Diff ( 2 files changed, 284 insertions(+))
google-beta provider: Diff ( 2 files changed, 284 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 105 insertions(+))
Open in Cloud Shell: Diff ( 4 files changed, 118 insertions(+))

Missing test report

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

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

resource "google_looker_instance" "primary" {
  psc_config {
    allowed_vpcs = # value needed
    service_attachments {
      local_fqdn                    = # value needed
      target_service_attachment_uri = # value needed
    }
  }
  psc_enabled = # value needed
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 6
Passed tests: 5
Skipped tests: 0
Affected tests: 1

Click here to see the affected service packages
  • looker

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
  • TestAccLookerInstance_lookerInstancePscExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

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

$\textcolor{red}{\textsf{Errors occurred during RECORDING mode. Please fix them 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.

google provider: Diff ( 3 files changed, 358 insertions(+))
google-beta provider: Diff ( 3 files changed, 358 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 105 insertions(+))
Open in Cloud Shell: Diff ( 4 files changed, 118 insertions(+))

Missing test report

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

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

resource "google_looker_instance" "primary" {
  psc_config {
    allowed_vpcs = # value needed
    service_attachments {
      local_fqdn                    = # value needed
      target_service_attachment_uri = # value needed
    }
  }
  psc_enabled = # value needed
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 6
Passed tests: 5
Skipped tests: 0
Affected tests: 1

Click here to see the affected service packages
  • looker

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
  • TestAccLookerInstance_lookerInstancePscExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

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

$\textcolor{red}{\textsf{Errors occurred during RECORDING mode. Please fix them to complete your PR.}}$

View the build log or the debug log for each test

Copy link

github-actions bot commented Sep 2, 2024

@c2thorn This PR has been waiting for review for 3 weekdays. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link

github-actions bot commented Sep 4, 2024

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

Copy link

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

Copy link
Member

@c2thorn c2thorn left a comment

Choose a reason for hiding this comment

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

test is still failing with

        Error: Argument or block definition required
        
          on terraform_plugin_test.tf line 14, in resource "google_looker_instance" "looker-instance":
          14:     allowed_vpcs: ["projects/test-project/global/networks/test"]
        
        An argument or block definition is required here. To set an argument, use the
        equals sign "=" to introduce the argument value.

@github-actions github-actions bot requested a review from c2thorn September 18, 2024 18:25
@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.

google provider: Diff ( 3 files changed, 358 insertions(+))
google-beta provider: Diff ( 3 files changed, 358 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 105 insertions(+))
Open in Cloud Shell: Diff ( 4 files changed, 118 insertions(+))

Missing test report

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

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

resource "google_looker_instance" "primary" {
  psc_config {
    service_attachments {
      local_fqdn                    = # value needed
      target_service_attachment_uri = # value needed
    }
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 7
Passed tests: 6
Skipped tests: 0
Affected tests: 1

Click here to see the affected service packages
  • looker

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
  • TestAccLookerInstance_lookerInstancePscExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

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

$\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

URI of the service attachment to connect to.
# PscConfig Object - End
- !ruby/object:Api::Type::Boolean
name: pscEnabled
Copy link
Member

Choose a reason for hiding this comment

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

interesting... this is usually in the config field itself.

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