-
Notifications
You must be signed in to change notification settings - Fork 556
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 Managed Keys support to TFVP #1508
Conversation
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.
Looking good. Looks like we are missing the website docs though.
@@ -217,6 +217,56 @@ func TestResourceMount_ExternalEntropyAccess(t *testing.T) { | |||
}) | |||
} | |||
|
|||
func TestResourceMountMangedKeys(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.
Ideally we could test this field in its own step, but I suppose that's ok.
Can you add a import test step.
Co-authored-by: Ben Ash <32777270+benashz@users.noreply.github.com>
…p/terraform-provider-vault into VAULT-4820/managed-keys-support
}, | ||
Config: testManagedKeysConfig_updated(name0), | ||
Check: resource.ComposeAggregateTestCheckFunc( | ||
resource.TestCheckResourceAttr(resourceName, "aws.#", "1"), |
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 doesn't really prove that the a delete/create operation took place. In the end you should end up with a new UUID that is different from the original created by the provider and the one created manually.
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.
Tracking this task in a separate Jira. Thanks for the callout!
Co-authored-by: Ben Ash <32777270+benashz@users.noreply.github.com>
Co-authored-by: Ben Ash <32777270+benashz@users.noreply.github.com>
Co-authored-by: Ben Ash <32777270+benashz@users.noreply.github.com>
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.
Ship it!
This PR adds support for Managed keys to the PKI Secret Engine and adds a new resource
vault_managed_keys
to the TFVP.Output from acceptance testing: