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" "testing"
"github.com/aliyun/alibaba-cloud-sdk-go/services/ecs" "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" 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/aws"
"github.com/aws/aws-sdk-go/service/ec2" "github.com/aws/aws-sdk-go/service/ec2"
"github.com/hashicorp/packer/builder/amazon/common" "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" 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/aws"
"github.com/aws/aws-sdk-go/service/ec2" "github.com/aws/aws-sdk-go/service/ec2"
"github.com/hashicorp/packer/builder/amazon/common" "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" packersdk "github.com/hashicorp/packer/packer-plugin-sdk/packer"
) )

View File

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

View File

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

View File

@ -7,7 +7,7 @@ import (
"testing" "testing"
"github.com/digitalocean/godo" "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" "golang.org/x/oauth2"
) )

View File

@ -5,7 +5,7 @@ import (
"io/ioutil" "io/ioutil"
"testing" "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" packersdk "github.com/hashicorp/packer/packer-plugin-sdk/packer"
) )

View File

@ -4,7 +4,7 @@ import (
"os" "os"
"testing" "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) { func TestBuilderAcc_basic(t *testing.T) {

View File

@ -4,7 +4,7 @@ import (
"os" "os"
"testing" "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) { func TestBuilderAcc_basic(t *testing.T) {

View File

@ -4,7 +4,7 @@ import (
"os" "os"
"testing" "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) { func TestBuilderAcc_basic(t *testing.T) {

View File

@ -4,7 +4,7 @@ import (
"os" "os"
"testing" "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) { func TestBuilderAcc_basic(t *testing.T) {

View File

@ -4,7 +4,7 @@ package bsu
import ( import (
"testing" "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) { func TestBuilderAcc_basic(t *testing.T) {

View File

@ -3,7 +3,7 @@ package bsusurrogate
import ( import (
"testing" "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) { func TestBuilderAcc_basic(t *testing.T) {

View File

@ -4,7 +4,7 @@ package bsuvolume
import ( import (
"testing" "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) { func TestBuilderAcc_basic(t *testing.T) {

View File

@ -4,7 +4,7 @@ import (
"os" "os"
"testing" "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) { func TestBuilderAcc_basic(t *testing.T) {

View File

@ -9,7 +9,7 @@ import (
packersdk "github.com/hashicorp/packer/packer-plugin-sdk/packer" packersdk "github.com/hashicorp/packer/packer-plugin-sdk/packer"
"github.com/stretchr/testify/assert" "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) { func TestBuilderAcc_validateRegion(t *testing.T) {

View File

@ -5,7 +5,7 @@ import (
"path/filepath" "path/filepath"
"testing" "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) { func TestBuilderAcc_basic(t *testing.T) {

View File

@ -5,7 +5,7 @@ import (
"path/filepath" "path/filepath"
"testing" "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) { func TestBuilderAcc_basic(t *testing.T) {

View File

@ -11,7 +11,7 @@ import (
"strings" "strings"
"testing" "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" packersdk "github.com/hashicorp/packer/packer-plugin-sdk/packer"
"github.com/hashicorp/packer/packer-plugin-sdk/tmp" "github.com/hashicorp/packer/packer-plugin-sdk/tmp"
) )

View File

@ -6,7 +6,7 @@ import (
"github.com/hashicorp/packer/builder/vsphere/common" "github.com/hashicorp/packer/builder/vsphere/common"
commonT "github.com/hashicorp/packer/builder/vsphere/common/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" packersdk "github.com/hashicorp/packer/packer-plugin-sdk/packer"
"github.com/vmware/govmomi/vim25/types" "github.com/vmware/govmomi/vim25/types"
) )

View File

@ -7,7 +7,7 @@ import (
"testing" "testing"
commonT "github.com/hashicorp/packer/builder/vsphere/common/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" packersdk "github.com/hashicorp/packer/packer-plugin-sdk/packer"
"github.com/vmware/govmomi/vim25/types" "github.com/vmware/govmomi/vim25/types"
) )

View File

@ -7,7 +7,7 @@ import (
"github.com/go-resty/resty/v2" "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" const InstanceMetadataAddr = "169.254.169.254"

View File

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

View File

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