update communicators to use legacy types

This commit is contained in:
James Bardin 2020-11-18 10:06:28 -05:00
parent aa42841dd8
commit 590615f7c3
11 changed files with 11 additions and 11 deletions

View File

@ -11,7 +11,7 @@ import (
"github.com/hashicorp/terraform/communicator/remote"
"github.com/hashicorp/terraform/communicator/ssh"
"github.com/hashicorp/terraform/communicator/winrm"
"github.com/hashicorp/terraform/terraform"
"github.com/hashicorp/terraform/internal/legacy/terraform"
)
// Communicator is an interface that must be implemented by all communicators

View File

@ -8,7 +8,7 @@ import (
"time"
"github.com/hashicorp/terraform/communicator/remote"
"github.com/hashicorp/terraform/terraform"
"github.com/hashicorp/terraform/internal/legacy/terraform"
)
// MockCommunicator is an implementation of Communicator that can be used for tests.

View File

@ -8,7 +8,7 @@ import (
"testing"
"time"
"github.com/hashicorp/terraform/terraform"
"github.com/hashicorp/terraform/internal/legacy/terraform"
)
func TestCommunicator_new(t *testing.T) {

View File

@ -20,7 +20,7 @@ import (
"github.com/hashicorp/errwrap"
"github.com/hashicorp/terraform/communicator/remote"
"github.com/hashicorp/terraform/terraform"
"github.com/hashicorp/terraform/internal/legacy/terraform"
"golang.org/x/crypto/ssh"
"golang.org/x/crypto/ssh/agent"
)

View File

@ -20,7 +20,7 @@ import (
"time"
"github.com/hashicorp/terraform/communicator/remote"
"github.com/hashicorp/terraform/terraform"
"github.com/hashicorp/terraform/internal/legacy/terraform"
"golang.org/x/crypto/ssh"
)

View File

@ -14,7 +14,7 @@ import (
"time"
"github.com/hashicorp/terraform/communicator/shared"
"github.com/hashicorp/terraform/terraform"
"github.com/hashicorp/terraform/internal/legacy/terraform"
"github.com/mitchellh/mapstructure"
sshagent "github.com/xanzy/ssh-agent"
"golang.org/x/crypto/ssh"

View File

@ -3,7 +3,7 @@ package ssh
import (
"testing"
"github.com/hashicorp/terraform/terraform"
"github.com/hashicorp/terraform/internal/legacy/terraform"
)
func TestProvisioner_connInfo(t *testing.T) {

View File

@ -10,7 +10,7 @@ import (
"time"
"github.com/hashicorp/terraform/communicator/remote"
"github.com/hashicorp/terraform/terraform"
"github.com/hashicorp/terraform/internal/legacy/terraform"
"github.com/masterzen/winrm"
"github.com/packer-community/winrmcp/winrmcp"
)

View File

@ -9,7 +9,7 @@ import (
"github.com/dylanmei/winrmtest"
"github.com/hashicorp/terraform/communicator/remote"
"github.com/hashicorp/terraform/terraform"
"github.com/hashicorp/terraform/internal/legacy/terraform"
)
func newMockWinRMServer(t *testing.T) *winrmtest.Remote {

View File

@ -8,7 +8,7 @@ import (
"time"
"github.com/hashicorp/terraform/communicator/shared"
"github.com/hashicorp/terraform/terraform"
"github.com/hashicorp/terraform/internal/legacy/terraform"
"github.com/mitchellh/mapstructure"
)

View File

@ -3,7 +3,7 @@ package winrm
import (
"testing"
"github.com/hashicorp/terraform/terraform"
"github.com/hashicorp/terraform/internal/legacy/terraform"
)
func TestProvisioner_defaultHTTPSPort(t *testing.T) {