mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 20:36:26 +02:00
Only run PKI backend setup functions when TF_ACC is set
This commit is contained in:
parent
3def72260d
commit
a86c1ba264
@ -36,6 +36,10 @@ var (
|
||||
// Performs basic tests on CA functionality
|
||||
// Uses the RSA CA key
|
||||
func TestBackend_RSAKey(t *testing.T) {
|
||||
if os.Getenv("TF_ACC") == "" {
|
||||
return
|
||||
}
|
||||
|
||||
defaultLeaseTTLVal := time.Hour * 24
|
||||
maxLeaseTTLVal := time.Hour * 24 * 30
|
||||
b, err := Factory(&logical.BackendConfig{
|
||||
@ -66,6 +70,10 @@ func TestBackend_RSAKey(t *testing.T) {
|
||||
// Performs basic tests on CA functionality
|
||||
// Uses the EC CA key
|
||||
func TestBackend_ECKey(t *testing.T) {
|
||||
if os.Getenv("TF_ACC") == "" {
|
||||
return
|
||||
}
|
||||
|
||||
defaultLeaseTTLVal := time.Hour * 24
|
||||
maxLeaseTTLVal := time.Hour * 24 * 30
|
||||
b, err := Factory(&logical.BackendConfig{
|
||||
@ -94,6 +102,10 @@ func TestBackend_ECKey(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestBackend_CSRValues(t *testing.T) {
|
||||
if os.Getenv("TF_ACC") == "" {
|
||||
return
|
||||
}
|
||||
|
||||
defaultLeaseTTLVal := time.Hour * 24
|
||||
maxLeaseTTLVal := time.Hour * 24 * 30
|
||||
b, err := Factory(&logical.BackendConfig{
|
||||
@ -122,6 +134,10 @@ func TestBackend_CSRValues(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestBackend_URLsCRUD(t *testing.T) {
|
||||
if os.Getenv("TF_ACC") == "" {
|
||||
return
|
||||
}
|
||||
|
||||
defaultLeaseTTLVal := time.Hour * 24
|
||||
maxLeaseTTLVal := time.Hour * 24 * 30
|
||||
b, err := Factory(&logical.BackendConfig{
|
||||
@ -153,6 +169,10 @@ func TestBackend_URLsCRUD(t *testing.T) {
|
||||
// of role flags to ensure that they are properly restricted
|
||||
// Uses the RSA CA key
|
||||
func TestBackend_RSARoles(t *testing.T) {
|
||||
if os.Getenv("TF_ACC") == "" {
|
||||
return
|
||||
}
|
||||
|
||||
defaultLeaseTTLVal := time.Hour * 24
|
||||
maxLeaseTTLVal := time.Hour * 24 * 30
|
||||
b, err := Factory(&logical.BackendConfig{
|
||||
@ -195,6 +215,10 @@ func TestBackend_RSARoles(t *testing.T) {
|
||||
// of role flags to ensure that they are properly restricted
|
||||
// Uses the RSA CA key
|
||||
func TestBackend_RSARoles_CSR(t *testing.T) {
|
||||
if os.Getenv("TF_ACC") == "" {
|
||||
return
|
||||
}
|
||||
|
||||
defaultLeaseTTLVal := time.Hour * 24
|
||||
maxLeaseTTLVal := time.Hour * 24 * 30
|
||||
b, err := Factory(&logical.BackendConfig{
|
||||
@ -237,6 +261,10 @@ func TestBackend_RSARoles_CSR(t *testing.T) {
|
||||
// of role flags to ensure that they are properly restricted
|
||||
// Uses the EC CA key
|
||||
func TestBackend_ECRoles(t *testing.T) {
|
||||
if os.Getenv("TF_ACC") == "" {
|
||||
return
|
||||
}
|
||||
|
||||
defaultLeaseTTLVal := time.Hour * 24
|
||||
maxLeaseTTLVal := time.Hour * 24 * 30
|
||||
b, err := Factory(&logical.BackendConfig{
|
||||
@ -279,6 +307,10 @@ func TestBackend_ECRoles(t *testing.T) {
|
||||
// of role flags to ensure that they are properly restricted
|
||||
// Uses the EC CA key
|
||||
func TestBackend_ECRoles_CSR(t *testing.T) {
|
||||
if os.Getenv("TF_ACC") == "" {
|
||||
return
|
||||
}
|
||||
|
||||
defaultLeaseTTLVal := time.Hour * 24
|
||||
maxLeaseTTLVal := time.Hour * 24 * 30
|
||||
b, err := Factory(&logical.BackendConfig{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user