diff --git a/internal/compatibility/compatibility.go b/internal/compatibility/compatibility.go index 252027ce23f..e089a7ddd3e 100644 --- a/internal/compatibility/compatibility.go +++ b/internal/compatibility/compatibility.go @@ -149,16 +149,6 @@ func NextMinorVersion(version string) (string, error) { return fmt.Sprintf("v%d.%d", major, minor+1), nil } -// PriorMinorVersion returns the prior minor version for a given canonical semver. -// The returned format is vMAJOR.MINOR. -func PriorMinorVersion(version string) (string, error) { - major, minor, err := parseCanonicalSemver(EnsurePrefixV(version)) - if err != nil { - return "", err - } - return fmt.Sprintf("v%d.%d", major, minor-1), nil -} - func parseCanonicalSemver(version string) (major int, minor int, err error) { version = semver.MajorMinor(version) // ensure version is in canonical form (vX.Y.Z) if version == "" { diff --git a/terraform-provider-constellation/internal/provider/BUILD.bazel b/terraform-provider-constellation/internal/provider/BUILD.bazel index 130d9cb6e1d..ea857a7a21b 100644 --- a/terraform-provider-constellation/internal/provider/BUILD.bazel +++ b/terraform-provider-constellation/internal/provider/BUILD.bazel @@ -92,7 +92,6 @@ go_test( "//internal/attestation/idkeydigest", "//internal/attestation/measurements", "//internal/attestation/variant", - "//internal/compatibility", "//internal/config", "//internal/constants", "//internal/semver", diff --git a/terraform-provider-constellation/internal/provider/cluster_resource_test.go b/terraform-provider-constellation/internal/provider/cluster_resource_test.go index fa669a10528..81f28b79261 100644 --- a/terraform-provider-constellation/internal/provider/cluster_resource_test.go +++ b/terraform-provider-constellation/internal/provider/cluster_resource_test.go @@ -23,7 +23,7 @@ import ( "github.com/stretchr/testify/require" ) -var providerVersion string = "v0.0.0" +const providerVersion string = "v0.0.0" func TestMicroserviceConstraint(t *testing.T) { providerVersion := semver.NewFromInt(2, 15, 0, "") @@ -469,7 +469,6 @@ func fullClusterTestingConfig(t *testing.T, csp string) string { provider "constellation" {} ` - image := "v2.14.0" switch csp { case "aws":