test: Remove imports from github.com/hashicorp/boundary/testing/controller (#850)
* test: Update TestAccTargetHostSource to use boundary-enterprise instance * test: Remove unused code * chore: go mod tidy
This commit is contained in:
1 parent
089d155851
commit
5f0f43f9ec
4 files changed
+5
-138
No files matched your search
@@ -12,7 +12,6 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/hashicorp/boundary/testing/controller"
|
||||
"github.com/hashicorp/cap/ldap"
|
||||
"github.com/hashicorp/cap/oidc"
|
||||
wrapping "github.com/hashicorp/go-kms-wrapping/v2"
|
||||
@@ -30,11 +29,6 @@ var (
|
||||
tcLoginName = "admin"
|
||||
tcPassword = "password"
|
||||
tcPAUM = "ampw_1234567890"
|
||||
tcConfig = []controller.Option{
|
||||
controller.WithDefaultPasswordAuthMethodId(tcPAUM),
|
||||
controller.WithDefaultLoginName(tcLoginName),
|
||||
controller.WithDefaultPassword(tcPassword),
|
||||
}
|
||||
)
|
||||
|
||||
func providerFactories(p **schema.Provider) map[string]func() (*schema.Provider, error) {
|
||||
|
||||
@@ -11,11 +11,11 @@ import (
|
||||
|
||||
"github.com/hashicorp/boundary/api"
|
||||
"github.com/hashicorp/boundary/api/targets"
|
||||
"github.com/hashicorp/boundary/testing/controller"
|
||||
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/id"
|
||||
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
|
||||
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
|
||||
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
const fooTargetHostSourceTemplate = `
|
||||
@@ -70,11 +70,10 @@ var (
|
||||
)
|
||||
|
||||
func TestAccTargetHostSource(t *testing.T) {
|
||||
tc := controller.NewTestController(t, tcConfig...)
|
||||
t.Cleanup(tc.Shutdown)
|
||||
|
||||
url := tc.ApiAddrs()[0]
|
||||
cfg, err := loadTestConfig()
|
||||
require.NoError(t, err)
|
||||
suffix := id.UniqueId()
|
||||
url := cfg.BoundaryAddr
|
||||
|
||||
var provider *schema.Provider
|
||||
resource.Test(t, resource.TestCase{
|
||||
|
||||
Reference in new issue
Block a user