We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14d9657 commit 80fab23Copy full SHA for 80fab23
1 file changed
backend/remote-state/consul/client_test.go
@@ -8,7 +8,6 @@ import (
8
9
"github.com/hashicorp/terraform/backend"
10
"github.com/hashicorp/terraform/backend/remote-state"
11
- "github.com/hashicorp/terraform/helper/acctest"
12
"github.com/hashicorp/terraform/state/remote"
13
)
14
@@ -17,11 +16,15 @@ func TestRemoteClient_impl(t *testing.T) {
17
16
}
18
19
func TestRemoteClient(t *testing.T) {
20
- acctest.RemoteTestPrecheck(t)
+ addr := os.Getenv("CONSUL_HTTP_ADDR")
+ if addr == "" {
21
+ t.Log("consul tests require CONSUL_HTTP_ADDR")
22
+ t.Skip()
23
+ }
24
25
// Get the backend
26
b := backend.TestBackendConfig(t, New(), map[string]interface{}{
- "address": "demo.consul.io:80",
27
+ "address": addr,
28
"path": fmt.Sprintf("tf-unit/%s", time.Now().String()),
29
})
30
0 commit comments