Added support for versionAliases field in google_secret_manager_secret resource#8555
Conversation
…t-manager-add-version-aliases
|
Hello! I am a robot. It looks like you are a community contributor. @NickElliot, 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. |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 3 files changed, 276 insertions(+)) |
Tests analyticsTotal tests: Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccSecretManagerSecret_versionAliasesUpdate|TestAccBigQueryDataTable_bigtable |
|
Rerun these tests in REPLAYING mode to catch issues$\textcolor{green}{\textsf{All tests passed!}} |
NickElliot
left a comment
There was a problem hiding this comment.
Looks good, but I want to clarify: is there a scenario you're trying to test for with the 5-step update test? The situation I assume of "you can add aliases and remove them" could be covered by a simpler 3-step test like there is for annotations.
Unlike the |
There was a problem hiding this comment.
I see, thank you for the explanation! In that case, would it be possible to remove just the 4th step, as repeating the testAccSecretManagerSecret_versionAliasesBasic version is not testing any functionality not tested via the original Basic-Updated version? I.e. step 3 is doing a key update, value update, removal, and addition, while step 4 repeats the same four operation tests.
Because of how TPG creates API requests, the ordering of the fields in a list is irrelevant (they all get sent in alphabetical order of the keys), so there is not a scenario being tested via adding a KVP in the middle of the list vs the end (which appears to be the only distinction between the basic->updated and updated->basic scenarios).
| ImportStateVerifyIgnore: []string{"ttl"}, | ||
| }, | ||
| { | ||
| Config: testAccSecretManagerSecret_versionAliasesBasic(context), |
There was a problem hiding this comment.
| Config: testAccSecretManagerSecret_versionAliasesBasic(context), |
There was a problem hiding this comment.
Okay, I've removed step 4 of this test.
|
@NickElliot Could you please start the tests as it is awaiting your approval and merge this PR? |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 3 files changed, 267 insertions(+)) |
Tests analyticsTotal tests: Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccSecretManagerSecret_versionAliasesUpdate |
|
Rerun these tests in REPLAYING mode to catch issues
|
|
However it needs the merge conflict resolved now, sorry for the delay that caused that |
…t-manager-add-version-aliases
No problem, I've resolved the merge conflict. Could you please trigger the tests again and merge this PR? |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 3 files changed, 267 insertions(+)) Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_secret_manager_secret" "primary" {
version_aliases = # value needed
}
|
Tests analyticsTotal tests:
|
…t resource (GoogleCloudPlatform#8555) * Added support for versionAliases field in google_secret_manager_secret resource * Removed redundant test step from the version_aliases field testcases
…t resource (GoogleCloudPlatform#8555) * Added support for versionAliases field in google_secret_manager_secret resource * Removed redundant test step from the version_aliases field testcases
…t resource (GoogleCloudPlatform#8555) * Added support for versionAliases field in google_secret_manager_secret resource * Removed redundant test step from the version_aliases field testcases
…t resource (GoogleCloudPlatform#8555) * Added support for versionAliases field in google_secret_manager_secret resource * Removed redundant test step from the version_aliases field testcases
…t resource (GoogleCloudPlatform#8555) * Added support for versionAliases field in google_secret_manager_secret resource * Removed redundant test step from the version_aliases field testcases
If version_alias can't be set during secrets creation, does it make more sense that the version_alias field should be implemented during creation of the secret version resource then? |
Added support for
version_aliasesfield ingoogle_secret_manager_secretresource.If this PR is for Terraform, I acknowledge that I have:
make testandmake lintin the generated providers to ensure it passes unit and linter tests.Release Note Template for Downstream PRs (will be copied)