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

Data source: azurerm_keyvault_secret - support not_before_date and expiration_date #21359

Merged
merged 1 commit into from
Apr 13, 2023

Conversation

herquan-docusign
Copy link
Contributor

@herquan-docusign herquan-docusign commented Apr 11, 2023

Attribute not_before_date and expiration_date is already supported in resource azurerm_key_vault_secret but not supported in data source.

Here is the test I run:

 % TF_ACC=1 ARM_TEST_LOCATION=westus3 ARM_SUBSCRIPTION_ID=... ARM_TENANT_ID=... go test -v ./in
ternal/services/keyvault -run=TestAccDataSourceKeyVaultSecret_complete -ldflags="-X=github.com/hashicorp/terraform-provider-azurerm/version.ProviderVersion=acc"
=== RUN   TestAccDataSourceKeyVaultSecret_complete
=== PAUSE TestAccDataSourceKeyVaultSecret_complete
=== CONT  TestAccDataSourceKeyVaultSecret_complete

--- PASS: TestAccDataSourceKeyVaultSecret_complete (338.69s)
PASS
ok      github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault      338.697s

I didn't use a service principal to run this time but used the user principal instead.

@herquan-docusign herquan-docusign marked this pull request as ready for review April 12, 2023 00:09
@herquan-docusign herquan-docusign changed the title Data source azurerm_keyvault_secret: support not_before_date and expiration_date Data source: azurerm_keyvault_secret - support not_before_date and expiration_date Apr 12, 2023
Copy link
Member

@jackofallops jackofallops left a comment

Choose a reason for hiding this comment

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

Thanks @herquan-docusign - Just a couple minor changes to take a look at, but should be good to merge once those are addressed.

website/docs/d/key_vault_secret.html.markdown Outdated Show resolved Hide resolved
website/docs/d/key_vault_secret.html.markdown Outdated Show resolved Hide resolved
internal/services/keyvault/key_vault_secret_data_source.go Outdated Show resolved Hide resolved
Copy link
Member

@jackofallops jackofallops left a comment

Choose a reason for hiding this comment

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

Thanks for making those changes @herquan-docusign - LGTM now 👍

@jackofallops
Copy link
Member

Tests passing:

image

…ration_date

Attribute `not_before_date` and `expiration_date` is already supported in resource `azurerm_key_vault_secret` but not supported in data source.
@herquan-docusign
Copy link
Contributor Author

@jackofallops I did a rebase so we can have a clean change before merge

@jackofallops
Copy link
Member

@jackofallops I did a rebase so we can have a clean change before merge

Thanks @herquan-docusign - This wasn't necessary in this case, you'd typically only need to do that to resolve conflicts or if you needed to pick up changes in the main branch, but we appreciate the diligence. 👍

@jackofallops jackofallops merged commit 62bfbaa into hashicorp:main Apr 13, 2023
@github-actions github-actions bot added this to the v3.52.0 milestone Apr 13, 2023
jackofallops added a commit that referenced this pull request Apr 13, 2023
@github-actions
Copy link

This functionality has been released in v3.52.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@herquan-docusign herquan-docusign deleted the herquancr1 branch April 14, 2023 22:16
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants