mirror of
https://github.com/hashicorp/vault.git
synced 2026-04-24 15:47:33 -04:00
Don't spawn consul servers when testing unless it's an acceptance test
This commit is contained in:
parent
581d2cfee0
commit
404a7fafff
1 changed files with 16 additions and 0 deletions
|
|
@ -19,6 +19,10 @@ import (
|
|||
)
|
||||
|
||||
func TestBackend_basic(t *testing.T) {
|
||||
if os.Getenv("TF_ACC") == "" {
|
||||
return
|
||||
}
|
||||
|
||||
config, process := testStartConsulServer(t)
|
||||
defer testStopConsulServer(t, process)
|
||||
|
||||
|
|
@ -35,6 +39,10 @@ func TestBackend_basic(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestBackend_management(t *testing.T) {
|
||||
if os.Getenv("TF_ACC") == "" {
|
||||
return
|
||||
}
|
||||
|
||||
config, process := testStartConsulServer(t)
|
||||
defer testStopConsulServer(t, process)
|
||||
|
||||
|
|
@ -51,6 +59,10 @@ func TestBackend_management(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestBackend_crud(t *testing.T) {
|
||||
if os.Getenv("TF_ACC") == "" {
|
||||
return
|
||||
}
|
||||
|
||||
_, process := testStartConsulServer(t)
|
||||
defer testStopConsulServer(t, process)
|
||||
|
||||
|
|
@ -67,6 +79,10 @@ func TestBackend_crud(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestBackend_role_lease(t *testing.T) {
|
||||
if os.Getenv("TF_ACC") == "" {
|
||||
return
|
||||
}
|
||||
|
||||
_, process := testStartConsulServer(t)
|
||||
defer testStopConsulServer(t, process)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue