move builder/testing to acctest inside sdk

This commit is contained in:
Megan Marsh 2020-12-03 11:46:58 -08:00
parent f3f4fef44a
commit becf7723e6
24 changed files with 24 additions and 24 deletions

View File

@ -8,7 +8,7 @@ import (
"testing"
"github.com/aliyun/alibaba-cloud-sdk-go/services/ecs"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/builder/testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/acctest"
packersdk "github.com/hashicorp/packer/packer-plugin-sdk/packer"
)

View File

@ -12,7 +12,7 @@ import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/hashicorp/packer/builder/amazon/common"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/builder/testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/acctest"
packersdk "github.com/hashicorp/packer/packer-plugin-sdk/packer"
)

View File

@ -8,7 +8,7 @@ import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/hashicorp/packer/builder/amazon/common"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/builder/testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/acctest"
packersdk "github.com/hashicorp/packer/packer-plugin-sdk/packer"
)

View File

@ -25,7 +25,7 @@ import (
"fmt"
"os"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/builder/testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/acctest"
)
const DeviceLoginAcceptanceTest = "DEVICELOGIN_TEST"

View File

@ -28,7 +28,7 @@ package dtl
import (
"testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/builder/testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/acctest"
)
const DeviceLoginAcceptanceTest = "DEVICELOGIN_TEST"

View File

@ -7,7 +7,7 @@ import (
"testing"
"github.com/digitalocean/godo"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/builder/testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/acctest"
"golang.org/x/oauth2"
)

View File

@ -5,7 +5,7 @@ import (
"io/ioutil"
"testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/builder/testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/acctest"
packersdk "github.com/hashicorp/packer/packer-plugin-sdk/packer"
)

View File

@ -4,7 +4,7 @@ import (
"os"
"testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/builder/testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/acctest"
)
func TestBuilderAcc_basic(t *testing.T) {

View File

@ -4,7 +4,7 @@ import (
"os"
"testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/builder/testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/acctest"
)
func TestBuilderAcc_basic(t *testing.T) {

View File

@ -4,7 +4,7 @@ import (
"os"
"testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/builder/testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/acctest"
)
func TestBuilderAcc_basic(t *testing.T) {

View File

@ -4,7 +4,7 @@ import (
"os"
"testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/builder/testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/acctest"
)
func TestBuilderAcc_basic(t *testing.T) {

View File

@ -4,7 +4,7 @@ package bsu
import (
"testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/builder/testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/acctest"
)
func TestBuilderAcc_basic(t *testing.T) {

View File

@ -3,7 +3,7 @@ package bsusurrogate
import (
"testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/builder/testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/acctest"
)
func TestBuilderAcc_basic(t *testing.T) {

View File

@ -4,7 +4,7 @@ package bsuvolume
import (
"testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/builder/testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/acctest"
)
func TestBuilderAcc_basic(t *testing.T) {

View File

@ -4,7 +4,7 @@ import (
"os"
"testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/builder/testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/acctest"
)
func TestBuilderAcc_basic(t *testing.T) {

View File

@ -9,7 +9,7 @@ import (
packersdk "github.com/hashicorp/packer/packer-plugin-sdk/packer"
"github.com/stretchr/testify/assert"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/builder/testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/acctest"
)
func TestBuilderAcc_validateRegion(t *testing.T) {

View File

@ -5,7 +5,7 @@ import (
"path/filepath"
"testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/builder/testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/acctest"
)
func TestBuilderAcc_basic(t *testing.T) {

View File

@ -5,7 +5,7 @@ import (
"path/filepath"
"testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/builder/testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/acctest"
)
func TestBuilderAcc_basic(t *testing.T) {

View File

@ -11,7 +11,7 @@ import (
"strings"
"testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/builder/testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/acctest"
packersdk "github.com/hashicorp/packer/packer-plugin-sdk/packer"
"github.com/hashicorp/packer/packer-plugin-sdk/tmp"
)

View File

@ -6,7 +6,7 @@ import (
"github.com/hashicorp/packer/builder/vsphere/common"
commonT "github.com/hashicorp/packer/builder/vsphere/common/testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/builder/testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/acctest"
packersdk "github.com/hashicorp/packer/packer-plugin-sdk/packer"
"github.com/vmware/govmomi/vim25/types"
)

View File

@ -7,7 +7,7 @@ import (
"testing"
commonT "github.com/hashicorp/packer/builder/vsphere/common/testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/builder/testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/acctest"
packersdk "github.com/hashicorp/packer/packer-plugin-sdk/packer"
"github.com/vmware/govmomi/vim25/types"
)

View File

@ -7,7 +7,7 @@ import (
"github.com/go-resty/resty/v2"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/builder/testing"
builderT "github.com/hashicorp/packer/packer-plugin-sdk/acctest"
)
const InstanceMetadataAddr = "169.254.169.254"

View File

@ -1,4 +1,4 @@
package testing
package acctest
import (
"context"

View File

@ -1,4 +1,4 @@
package testing
package acctest
import (
"os"