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 Secret Manager Secret Data Source #4815

Merged

Conversation

upodroid
Copy link
Contributor

Fixes: hashicorp/terraform-provider-google#9202

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).
  • Generated Terraform, and ran make test and make lint to ensure it passes unit and linter tests.
  • 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).
  • Ran relevant acceptance tests (If the acceptance tests do not yet pass or you are unable to run them, please let your reviewer know).
  • Read the Release Notes Guide before writing my release note below.

Release Note Template for Downstream PRs (will be copied)

`google_secret_manager_secret`

@google-cla google-cla bot added the cla: yes label May 26, 2021
@modular-magician
Copy link
Collaborator

Hello! I am a robot who works on Magic Modules PRs.

I have detected that you are a community contributor, so your PR will be assigned to someone with a commit-bit on this repo for initial review.

Thanks for your contribution! A human will be with you soon.

@c2thorn, please review this PR or find an appropriate assignee.

@modular-magician modular-magician requested a review from c2thorn May 26, 2021 21:22
@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 6 files changed, 120 insertions(+), 164 deletions(-))
Terraform Beta: Diff ( 6 files changed, 120 insertions(+), 164 deletions(-))

@modular-magician
Copy link
Collaborator

I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=189292"

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 6 files changed, 120 insertions(+), 164 deletions(-))
Terraform Beta: Diff ( 6 files changed, 120 insertions(+), 164 deletions(-))

@modular-magician
Copy link
Collaborator

I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=189292"

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 6 files changed, 120 insertions(+), 164 deletions(-))
Terraform Beta: Diff ( 6 files changed, 120 insertions(+), 164 deletions(-))

@modular-magician
Copy link
Collaborator

I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=189294"

@modular-magician
Copy link
Collaborator

I have triggered VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccDataSourceSecretManagerSecret_basic|TestAccBigQueryDataTable_bigtable You can view the result here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=189296"

@modular-magician
Copy link
Collaborator

Tests failed during RECORDING mode: TestAccDataSourceSecretManagerSecret_basic Please fix these to complete your PR

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.

Going over PR's I missed. This needs a rebase as well

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)

func TestAccDataSourceSecretManagerSecret_basic(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

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

This test failed with a no "id" found in attributes error

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is it similar to this? #4515 (comment)

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 6 files changed, 120 insertions(+), 164 deletions(-))
Terraform Beta: Diff ( 7 files changed, 121 insertions(+), 165 deletions(-))

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 6 files changed, 120 insertions(+), 164 deletions(-))
Terraform Beta: Diff ( 6 files changed, 120 insertions(+), 164 deletions(-))

@c2thorn
Copy link
Member

c2thorn commented Jul 8, 2021

/gcbrun

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 6 files changed, 120 insertions(+), 164 deletions(-))
Terraform Beta: Diff ( 7 files changed, 121 insertions(+), 165 deletions(-))

@modular-magician
Copy link
Collaborator

I have triggered VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccDataSourceSecretManagerSecret_basic|TestAccContainerNodePool_withGPU You can view the result here: https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=195678

@modular-magician
Copy link
Collaborator

Tests failed during RECORDING mode: TestAccDataSourceSecretManagerSecret_basic|TestAccContainerNodePool_withGPU Please fix these to complete your PR

@upodroid
Copy link
Contributor Author

upodroid commented Aug 5, 2021

bump

}

func dataSourceSecretManagerSecretRead(d *schema.ResourceData, meta interface{}) error {

Copy link
Member

Choose a reason for hiding this comment

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

Had some time to look into this, and realized that this function doesn't set an ID for the datasource. This should address the test failure from before.

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 fixed now.

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 6 files changed, 97 insertions(+), 164 deletions(-))
Terraform Beta: Diff ( 7 files changed, 98 insertions(+), 165 deletions(-))

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 6 files changed, 125 insertions(+), 164 deletions(-))
Terraform Beta: Diff ( 6 files changed, 125 insertions(+), 164 deletions(-))

@c2thorn
Copy link
Member

c2thorn commented Aug 10, 2021

/gcbrun

@modular-magician
Copy link
Collaborator

Error trying to cancel build ()

2 similar comments
@modular-magician
Copy link
Collaborator

Error trying to cancel build ()

@modular-magician
Copy link
Collaborator

Error trying to cancel build ()

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 6 files changed, 125 insertions(+), 164 deletions(-))
Terraform Beta: Diff ( 7 files changed, 126 insertions(+), 165 deletions(-))

@c2thorn
Copy link
Member

c2thorn commented Aug 11, 2021

/gcbrun

@modular-magician
Copy link
Collaborator

Error trying to cancel build ()

1 similar comment
@modular-magician
Copy link
Collaborator

Error trying to cancel build ()

@modular-magician
Copy link
Collaborator

Error trying to cancel build ()

3 similar comments
@modular-magician
Copy link
Collaborator

Error trying to cancel build ()

@modular-magician
Copy link
Collaborator

Error trying to cancel build ()

@modular-magician
Copy link
Collaborator

Error trying to cancel build ()

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 6 files changed, 125 insertions(+), 165 deletions(-))
Terraform Beta: Diff ( 6 files changed, 125 insertions(+), 165 deletions(-))

@c2thorn c2thorn force-pushed the secret-manager-secret-ds branch from ebd1616 to 2266b94 Compare August 30, 2021 16:27
@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 6 files changed, 125 insertions(+), 167 deletions(-))
Terraform Beta: Diff ( 6 files changed, 125 insertions(+), 167 deletions(-))

@c2thorn
Copy link
Member

c2thorn commented Aug 30, 2021

/gcbrun

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 6 files changed, 125 insertions(+), 167 deletions(-))
Terraform Beta: Diff ( 9 files changed, 128 insertions(+), 173 deletions(-))

@c2thorn
Copy link
Member

c2thorn commented Aug 30, 2021

/gcbrun

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 6 files changed, 125 insertions(+), 167 deletions(-))
Terraform Beta: Diff ( 6 files changed, 125 insertions(+), 167 deletions(-))

@c2thorn
Copy link
Member

c2thorn commented Aug 31, 2021

/gcbrun

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 6 files changed, 125 insertions(+), 167 deletions(-))
Terraform Beta: Diff ( 7 files changed, 126 insertions(+), 168 deletions(-))

@upodroid
Copy link
Contributor Author

Is it me or is the CI a bit wobbly this month?

@c2thorn
Copy link
Member

c2thorn commented Aug 31, 2021

@upodroid we made a lot of changes at the beginning of the month in attempts to improve things but also broke a few things along the way... Most of them should be fixed, but for this PR I'm having issues with the VCR build that I haven't seen in anywhere else.

@modular-magician
Copy link
Collaborator

I have triggered VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccDataSourceSecretManagerSecret_basic|TestAccComputeRouterNat_withManualIpAndSubnetConfiguration|TestAccComputeRouterNat_withDisabledIndependentEndpointMapping|TestAccComputeRouterNat_withNatIpsAndDrainNatIps|TestAccPrivatecaCaPool_privatecaCapoolEmptyBaseline You can view the result here: https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=203673

@c2thorn c2thorn merged commit 82bf899 into GoogleCloudPlatform:master Sep 2, 2021
@c2thorn c2thorn deleted the secret-manager-secret-ds branch September 2, 2021 15:59
khajduczenia pushed a commit to khajduczenia/magic-modules that referenced this pull request Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New data source: google_secret_manager_secret
3 participants