remove old version call site
This commit is contained in:
parent
2eb8278a0f
commit
dc9ded8618
|
@ -7,7 +7,7 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/hashicorp/terraform/e2e"
|
||||
tfcore "github.com/hashicorp/terraform/terraform"
|
||||
"github.com/hashicorp/terraform/version"
|
||||
)
|
||||
|
||||
func TestVersion(t *testing.T) {
|
||||
|
@ -31,7 +31,7 @@ func TestVersion(t *testing.T) {
|
|||
t.Errorf("unexpected stderr output:\n%s", stderr)
|
||||
}
|
||||
|
||||
wantVersion := fmt.Sprintf("Terraform v%s", tfcore.VersionString())
|
||||
wantVersion := fmt.Sprintf("Terraform v%s", version.String())
|
||||
if !strings.Contains(stdout, wantVersion) {
|
||||
t.Errorf("output does not contain our current version %q:\n%s", wantVersion, stdout)
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ func TestVersionWithProvider(t *testing.T) {
|
|||
t.Errorf("unexpected stderr output:\n%s", stderr)
|
||||
}
|
||||
|
||||
wantVersion := fmt.Sprintf("Terraform v%s", tfcore.VersionString())
|
||||
wantVersion := fmt.Sprintf("Terraform v%s", version.String())
|
||||
if !strings.Contains(stdout, wantVersion) {
|
||||
t.Errorf("output does not contain our current version %q:\n%s", wantVersion, stdout)
|
||||
}
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
package terraform
|
||||
|
||||
import (
|
||||
"github.com/hashicorp/terraform/version"
|
||||
)
|
||||
|
||||
// Deprecated: Providers should use schema.Provider.TerraformVersion instead
|
||||
func VersionString() string {
|
||||
return version.String()
|
||||
}
|
Loading…
Reference in New Issue