|
|
|
|
@ -10,16 +10,18 @@ import (
|
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
|
|
tfe "github.com/hashicorp/go-tfe"
|
|
|
|
|
"github.com/hashicorp/terraform-svchost"
|
|
|
|
|
"github.com/hashicorp/terraform-svchost/auth"
|
|
|
|
|
"github.com/hashicorp/terraform-svchost/disco"
|
|
|
|
|
"github.com/hashicorp/terraform/backend"
|
|
|
|
|
"github.com/hashicorp/terraform/configs"
|
|
|
|
|
"github.com/hashicorp/terraform/configs/configschema"
|
|
|
|
|
"github.com/hashicorp/terraform/httpclient"
|
|
|
|
|
"github.com/hashicorp/terraform/providers"
|
|
|
|
|
"github.com/hashicorp/terraform/state/remote"
|
|
|
|
|
"github.com/hashicorp/terraform/svchost"
|
|
|
|
|
"github.com/hashicorp/terraform/svchost/auth"
|
|
|
|
|
"github.com/hashicorp/terraform/svchost/disco"
|
|
|
|
|
"github.com/hashicorp/terraform/terraform"
|
|
|
|
|
"github.com/hashicorp/terraform/tfdiags"
|
|
|
|
|
"github.com/hashicorp/terraform/version"
|
|
|
|
|
"github.com/mitchellh/cli"
|
|
|
|
|
"github.com/zclconf/go-cty/cty"
|
|
|
|
|
|
|
|
|
|
@ -268,6 +270,7 @@ func testDisco(s *httptest.Server) *disco.Disco {
|
|
|
|
|
"versions.v1": fmt.Sprintf("%s/v1/versions/", s.URL),
|
|
|
|
|
}
|
|
|
|
|
d := disco.NewWithCredentialsSource(credsSrc)
|
|
|
|
|
d.SetUserAgent(httpclient.TerraformUserAgent(version.String()))
|
|
|
|
|
|
|
|
|
|
d.ForceHostServices(svchost.Hostname(defaultHostname), services)
|
|
|
|
|
d.ForceHostServices(svchost.Hostname("localhost"), services)
|
|
|
|
|
|