|
@@ -7,7 +7,6 @@ import (
|
|
|
"regexp"
|
|
|
"testing"
|
|
|
|
|
|
- "github.com/hashicorp/go-version"
|
|
|
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
|
|
|
"github.com/hashicorp/terraform-plugin-testing/tfversion"
|
|
|
)
|
|
@@ -15,7 +14,7 @@ import (
|
|
|
func TestExampleFunction_Known(t *testing.T) {
|
|
|
resource.UnitTest(t, resource.TestCase{
|
|
|
TerraformVersionChecks: []tfversion.TerraformVersionCheck{
|
|
|
- tfversion.SkipBelow(version.Must(version.NewVersion("1.8.0"))),
|
|
|
+ tfversion.SkipBelow(tfversion.Version1_8_0),
|
|
|
},
|
|
|
ProtoV6ProviderFactories: testAccProtoV6ProviderFactories,
|
|
|
Steps: []resource.TestStep{
|
|
@@ -36,7 +35,7 @@ func TestExampleFunction_Known(t *testing.T) {
|
|
|
func TestExampleFunction_Null(t *testing.T) {
|
|
|
resource.UnitTest(t, resource.TestCase{
|
|
|
TerraformVersionChecks: []tfversion.TerraformVersionCheck{
|
|
|
- tfversion.SkipBelow(version.Must(version.NewVersion("1.8.0"))),
|
|
|
+ tfversion.SkipBelow(tfversion.Version1_8_0),
|
|
|
},
|
|
|
ProtoV6ProviderFactories: testAccProtoV6ProviderFactories,
|
|
|
Steps: []resource.TestStep{
|
|
@@ -56,7 +55,7 @@ func TestExampleFunction_Null(t *testing.T) {
|
|
|
func TestExampleFunction_Unknown(t *testing.T) {
|
|
|
resource.UnitTest(t, resource.TestCase{
|
|
|
TerraformVersionChecks: []tfversion.TerraformVersionCheck{
|
|
|
- tfversion.SkipBelow(version.Must(version.NewVersion("1.8.0"))),
|
|
|
+ tfversion.SkipBelow(tfversion.Version1_8_0),
|
|
|
},
|
|
|
ProtoV6ProviderFactories: testAccProtoV6ProviderFactories,
|
|
|
Steps: []resource.TestStep{
|