github.com/archgrove/terraform@v0.9.5-0.20170502093151-adb789f0f8d2/backend/remote-state/inmem/client_test.go (about)

     1  package inmem
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/hashicorp/terraform/backend"
     7  	remotestate "github.com/hashicorp/terraform/backend/remote-state"
     8  	"github.com/hashicorp/terraform/state/remote"
     9  )
    10  
    11  func TestRemoteClient_impl(t *testing.T) {
    12  	var _ remote.Client = new(RemoteClient)
    13  	var _ remote.ClientLocker = new(RemoteClient)
    14  }
    15  
    16  func TestRemoteClient(t *testing.T) {
    17  	b := backend.TestBackendConfig(t, New(), nil)
    18  	remotestate.TestClient(t, b)
    19  }
    20  
    21  func TestInmemLocks(t *testing.T) {
    22  	s, err := backend.TestBackendConfig(t, New(), nil).State(backend.DefaultStateName)
    23  	if err != nil {
    24  		t.Fatal(err)
    25  	}
    26  
    27  	remote.TestRemoteLocks(t, s.(*remote.State).Client, s.(*remote.State).Client)
    28  }