Skip to content

Commit

Permalink
Fix Terraform version assumptions in test data (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko authored Jun 24, 2021
1 parent 920b436 commit 0080404
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tfexec/internal/e2etest/show_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
)

var (
v1_1_0 = version.Must(version.NewVersion("1.1.0"))
v1_0_1 = version.Must(version.NewVersion("1.0.1"))
)

func TestShow(t *testing.T) {
Expand All @@ -36,7 +36,7 @@ func TestShow(t *testing.T) {

formatVersion := "0.1"
var sensitiveValues json.RawMessage
if tfv.Core().GreaterThanOrEqual(v1_1_0) {
if tfv.Core().GreaterThanOrEqual(v1_0_1) {
formatVersion = "0.2"
sensitiveValues = json.RawMessage([]byte("{}"))
}
Expand Down Expand Up @@ -537,7 +537,7 @@ func TestShowBigInt(t *testing.T) {

formatVersion := "0.1"
var sensitiveValues json.RawMessage
if tfv.Core().GreaterThanOrEqual(v1_1_0) {
if tfv.Core().GreaterThanOrEqual(v1_0_1) {
formatVersion = "0.2"
sensitiveValues = json.RawMessage([]byte("{}"))
}
Expand Down
2 changes: 1 addition & 1 deletion tfexec/internal/e2etest/state_mv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func TestStateMv(t *testing.T) {

formatVersion := "0.1"
var sensitiveValues json.RawMessage
if tfv.Core().GreaterThanOrEqual(v1_1_0) {
if tfv.Core().GreaterThanOrEqual(v1_0_1) {
formatVersion = "0.2"
sensitiveValues = json.RawMessage([]byte("{}"))
}
Expand Down
2 changes: 1 addition & 1 deletion tfexec/internal/e2etest/state_rm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func TestStateRm(t *testing.T) {
}

formatVersion := "0.1"
if tfv.Core().GreaterThanOrEqual(v1_1_0) {
if tfv.Core().GreaterThanOrEqual(v1_0_1) {
formatVersion = "0.2"
}

Expand Down

0 comments on commit 0080404

Please sign in to comment.