Venafi / terraform-provider-venafi

HashiCorp Terraform provider that uses Venafi to streamline machine identity (certificate and key) acquisition.
https://www.terraform.io/docs/providers/venafi/
Mozilla Public License 2.0
16 stars 20 forks source link

Fix for expiration_window, adds validation in certificate resource cr… #84

Closed luispresuelVenafi closed 2 years ago

luispresuelVenafi commented 2 years ago

Closes: https://github.com/Venafi/terraform-provider-venafi/issues/79 and https://github.com/Venafi/terraform-provider-venafi/issues/82

Fix for expiration_window: adds validation in certificate resource creation and update. Refactors function in order to only call a log as a warning we setting a greater expiration_window than the cert validity. Adds refactoring for tests as well as more tests accordingly