github.com/pbthorste/terraform@v0.8.6-0.20170127005045-deb56bd93da2/backend/remote-state/consul/client_test.go (about) 1 package consul 2 3 import ( 4 "fmt" 5 "testing" 6 "time" 7 8 "github.com/hashicorp/terraform/backend" 9 "github.com/hashicorp/terraform/backend/remote-state" 10 "github.com/hashicorp/terraform/helper/acctest" 11 "github.com/hashicorp/terraform/state/remote" 12 ) 13 14 func TestRemoteClient_impl(t *testing.T) { 15 var _ remote.Client = new(RemoteClient) 16 } 17 18 func TestRemoteClient(t *testing.T) { 19 acctest.RemoteTestPrecheck(t) 20 21 // Get the backend 22 b := backend.TestBackendConfig(t, New(), map[string]interface{}{ 23 "address": "demo.consul.io:80", 24 "path": fmt.Sprintf("tf-unit/%s", time.Now().String()), 25 }) 26 27 // Test 28 remotestate.TestClient(t, b) 29 }