mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-09 15:43:53 -06:00
9b76f6e138
This was legacy remote state client and backends can use this test function without an import cycle.
18 lines
295 B
Go
18 lines
295 B
Go
package remotestate
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/hashicorp/terraform/backend"
|
|
"github.com/hashicorp/terraform/state/remote"
|
|
)
|
|
|
|
func TestClient(t *testing.T, raw backend.Backend) {
|
|
b, ok := raw.(*Backend)
|
|
if !ok {
|
|
t.Fatalf("not Backend: %T", raw)
|
|
}
|
|
|
|
remote.TestClient(t, b.client)
|
|
}
|