-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add Secret Manager Secret Data Source #4815
Conversation
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. |
I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=189292" |
I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=189292" |
I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=189294" |
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" |
Tests failed during RECORDING mode: TestAccDataSourceSecretManagerSecret_basic Please fix these to complete your PR |
There was a problem hiding this 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
mmv1/third_party/terraform/website/docs/d/secret_manager_secret.html.markdown
Outdated
Show resolved
Hide resolved
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" | ||
) | ||
|
||
func TestAccDataSourceSecretManagerSecret_basic(t *testing.T) { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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)
/gcbrun |
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 |
Tests failed during RECORDING mode: TestAccDataSourceSecretManagerSecret_basic|TestAccContainerNodePool_withGPU Please fix these to complete your PR |
bump |
} | ||
|
||
func dataSourceSecretManagerSecretRead(d *schema.ResourceData, meta interface{}) error { | ||
|
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fixed now.
mmv1/third_party/terraform/tests/data_source_secret_manager_secret_test.go
Outdated
Show resolved
Hide resolved
/gcbrun |
Error trying to cancel build () |
2 similar comments
Error trying to cancel build () |
Error trying to cancel build () |
/gcbrun |
Error trying to cancel build () |
1 similar comment
Error trying to cancel build () |
Error trying to cancel build () |
3 similar comments
Error trying to cancel build () |
Error trying to cancel build () |
Error trying to cancel build () |
ebd1616
to
2266b94
Compare
/gcbrun |
/gcbrun |
/gcbrun |
Is it me or is the CI a bit wobbly this month? |
@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. |
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 |
Co-authored-by: upodroid <[email protected]> Co-authored-by: Cameron Thornton <[email protected]>
Fixes: hashicorp/terraform-provider-google#9202
If this PR is for Terraform, I acknowledge that I have:
make test
andmake lint
to ensure it passes unit and linter tests.Release Note Template for Downstream PRs (will be copied)