Skip to content

Update dataplex_datascan_full_profile.tf.erb#8700

Merged
melinath merged 7 commits into
GoogleCloudPlatform:mainfrom
saurabh-net:add-export-example
Aug 29, 2023
Merged

Update dataplex_datascan_full_profile.tf.erb#8700
melinath merged 7 commits into
GoogleCloudPlatform:mainfrom
saurabh-net:add-export-example

Conversation

@saurabh-net

Copy link
Copy Markdown
Contributor

Add an example using the export BigQuery table feature.

If this PR is for Terraform, I acknowledge that I have:

  • Searched through the issue tracker for an open issue that this either resolves or contributes to, commented on it to claim it, and written "fixes {url}" or "part of {url}" in this PR description. If there were no relevant open issues, I opened one and commented that I would like to work on it (not necessary for very small changes).
  • Ensured that all new fields I added that can be set by a user appear in at least one example (for generated resources) or third_party test (for handwritten resources or update tests).
  • Generated Terraform providers, and ran make test and make lint in the generated providers to ensure it passes unit and linter tests.
  • Ran relevant acceptance tests using my own Google Cloud project and credentials (If the acceptance tests do not yet pass or you are unable to run them, please let your reviewer know).
  • Read Write release notes before writing my release note below.

Release Note Template for Downstream PRs (will be copied)


@modular-magician

Copy link
Copy Markdown
Collaborator

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

@melinath, 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
Copy Markdown
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 ( 2 files changed, 34 insertions(+))
Terraform Beta: Diff ( 2 files changed, 34 insertions(+))

@modular-magician

Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 2968
Passed tests 2664
Skipped tests: 302
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
TestAccDataplexDatascan_dataplexDatascanFullProfileExample|TestAccServiceAccountIamPolicy

Get to know how VCR tests work

@modular-magician

Copy link
Copy Markdown
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccDataplexDatascan_dataplexDatascanFullProfileExample[Debug log]
TestAccServiceAccountIamPolicy[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

Comment thread mmv1/templates/terraform/examples/dataplex_datascan_full_profile.tf.erb Outdated
@modular-magician

Copy link
Copy Markdown
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 ( 2 files changed, 34 insertions(+))
Terraform Beta: Diff ( 2 files changed, 34 insertions(+))

@modular-magician

Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 2988
Passed tests 2688
Skipped tests: 296
Affected tests: 4

Action taken

Found 4 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccBigtableAppProfile_bigtableAppProfileAnyclusterExample|TestAccBigtableAppProfile_bigtableAppProfileMulticlusterExample|TestAccDataplexDatascan_dataplexDatascanFullProfileExample|TestAccHealthcareDatasetIamPolicy

Get to know how VCR tests work

@modular-magician

Copy link
Copy Markdown
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccBigtableAppProfile_bigtableAppProfileAnyclusterExample[Debug log]
TestAccBigtableAppProfile_bigtableAppProfileMulticlusterExample[Debug log]
TestAccHealthcareDatasetIamPolicy[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:}}$
TestAccDataplexDatascan_dataplexDatascanFullProfileExample[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

}

resource "google_bigquery_dataset" "source" {
dataset_id = "dataplex_dataset_%{random_suffix}"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this should be:

Suggested change
dataset_id = "dataplex_dataset_%{random_suffix}"
dataset_id = "<%= ctx[:vars]['dataset_name'] %>"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

it would be great to make the datascan_id earlier in this example also use a var - basically the reason we do it this way is so that the user-facing documentation has friendly names, but the tests use a tf-test prefix + random suffix, generated from the same example.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ahh i just realized that I added test to the var name as well, so it says "tf-test-test-datascan%{random_suffix}".

I think it's only for internal code, not public facing, but let me submit a commit to clean it up anyways.

@modular-magician

Copy link
Copy Markdown
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, 47 insertions(+), 13 deletions(-))
Terraform Beta: Diff ( 3 files changed, 47 insertions(+), 13 deletions(-))

@modular-magician

Copy link
Copy Markdown
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, 47 insertions(+), 13 deletions(-))
Terraform Beta: Diff ( 3 files changed, 47 insertions(+), 13 deletions(-))

@modular-magician

Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 2995
Passed tests 2692
Skipped tests: 296
Affected tests: 7

Action taken

Found 7 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccDataplexDatascan_dataplexDatascanBasicProfileExample|TestAccDataplexDatascan_dataplexDatascanFullQualityExample|TestAccDataplexDatascanIamMemberGenerated|TestAccDataplexDatascan_dataplexDatascanBasicQualityExample|TestAccDataplexDatascanIamBindingGenerated|TestAccDataplexDatascan_dataplexDatascanFullProfileExample|TestAccDataplexDatascanIamPolicyGenerated

Get to know how VCR tests work

@modular-magician

Copy link
Copy Markdown
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccDataplexDatascan_dataplexDatascanBasicProfileExample[Debug log]
TestAccDataplexDatascan_dataplexDatascanFullQualityExample[Debug log]
TestAccDataplexDatascan_dataplexDatascanBasicQualityExample[Debug log]
TestAccDataplexDatascan_dataplexDatascanFullProfileExample[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:}}$
TestAccDataplexDatascanIamMemberGenerated[Error message] [Debug log]
TestAccDataplexDatascanIamBindingGenerated[Error message] [Debug log]
TestAccDataplexDatascanIamPolicyGenerated[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

@melinath melinath left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Getting close, just one more change probably.

Comment thread mmv1/products/dataplex/Datascan.yaml Outdated
@modular-magician

Copy link
Copy Markdown
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, 52 insertions(+), 18 deletions(-))
Terraform Beta: Diff ( 3 files changed, 52 insertions(+), 18 deletions(-))

@modular-magician

Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 2996
Passed tests 2697
Skipped tests: 296
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
TestAccDataplexDatascanIamMemberGenerated|TestAccDataplexDatascanIamBindingGenerated|TestAccDataplexDatascanIamPolicyGenerated

Get to know how VCR tests work

@modular-magician

Copy link
Copy Markdown
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccDataplexDatascanIamMemberGenerated[Debug log]
TestAccDataplexDatascanIamBindingGenerated[Debug log]
TestAccDataplexDatascanIamPolicyGenerated[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

@melinath melinath merged commit d1908d3 into GoogleCloudPlatform:main Aug 29, 2023
BBBmau pushed a commit to BBBmau/magic-modules that referenced this pull request Aug 29, 2023
* Update dataplex_datascan_full_profile.tf.erb

Add an export table

* Add env vars for export table

* Fix datascan and dataset references for full datascan example.

* Use a var for datascan name across all the examples.

* update resource name

* update resource name for IAM
RileyHYZ pushed a commit to RileyHYZ/magic-modules that referenced this pull request Sep 15, 2023
* Update dataplex_datascan_full_profile.tf.erb

Add an export table

* Add env vars for export table

* Fix datascan and dataset references for full datascan example.

* Use a var for datascan name across all the examples.

* update resource name

* update resource name for IAM
joelkattapuram pushed a commit to joelkattapuram/magic-modules that referenced this pull request Sep 20, 2023
* Update dataplex_datascan_full_profile.tf.erb

Add an export table

* Add env vars for export table

* Fix datascan and dataset references for full datascan example.

* Use a var for datascan name across all the examples.

* update resource name

* update resource name for IAM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants