mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-07 22:53:08 -06:00
e7d64b28bd
- vendor keyvault sdk package ``` TF_ACC=1 go test ./builtin/providers/azurerm -v -run TestAccAzureRMKeyV -timeout 120m === RUN TestAccAzureRMKeyVault_importBasic --- PASS: TestAccAzureRMKeyVault_importBasic (89.01s) === RUN TestAccAzureRMKeyVault_basic --- PASS: TestAccAzureRMKeyVault_basic (83.36s) === RUN TestAccAzureRMKeyVault_update --- PASS: TestAccAzureRMKeyVault_update (102.83s) PASS ok github.com/hashicorp/terraform/builtin/providers/azurerm 275.285s ```
22 lines
510 B
Go
22 lines
510 B
Go
package azurerm
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/satori/uuid"
|
|
)
|
|
|
|
func validateJsonString(v interface{}, k string) (ws []string, errors []error) {
|
|
if _, err := normalizeJsonString(v); err != nil {
|
|
errors = append(errors, fmt.Errorf("%q contains an invalid JSON: %s", k, err))
|
|
}
|
|
return
|
|
}
|
|
|
|
func validateUUID(v interface{}, k string) (ws []string, errors []error) {
|
|
if _, err := uuid.FromString(v.(string)); err != nil {
|
|
errors = append(errors, fmt.Errorf("%q is an invalid UUUID: %s", k, err))
|
|
}
|
|
return
|
|
}
|