Skip to content

Commit dd71d95

Browse files
committed
chore: test interop tests in v0.12.0.
Signed-off-by: i4k <t.nateldemoura@gmail.com>
1 parent b33bf52 commit dd71d95

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

e2etests/cloud/interop/interoperability_test.go

+7-8
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"os"
1212
"path"
1313
"path/filepath"
14+
"regexp"
1415
"strings"
1516
"testing"
1617

@@ -72,7 +73,7 @@ func TestInteropCloudSyncPreview(t *testing.T) {
7273
StderrRegexes: []string{
7374
"Preview created",
7475
},
75-
IgnoreStdout: true,
76+
StdoutRegex: regexp.QuoteMeta(`Terraform will perform the following actions`),
7677
},
7778
)
7879
})
@@ -154,9 +155,8 @@ func TestInteropDrift(t *testing.T) {
154155
AssertRunResult(t,
155156
tmcli.Run("run", "--quiet", "--sync-drift-status", "--target", defaultTarget, "--", TerraformTestPath, "plan", "-detailed-exitcode"),
156157
RunExpected{
157-
Status: 0,
158-
IgnoreStdout: true,
159-
IgnoreStderr: true,
158+
Status: 0,
159+
StdoutRegex: regexp.QuoteMeta(`Terraform will perform the following actions`),
160160
},
161161
)
162162
AssertRunResult(t,
@@ -180,13 +180,12 @@ func TestInteropDrift(t *testing.T) {
180180
// complete drift
181181
AssertRunResult(t,
182182
tmcli.Run(
183-
"run", "--sync-drift-status", "--target", defaultTarget, "--terraform-plan-file=out.plan", "--",
183+
"run", "--quiet", "--sync-drift-status", "--target", defaultTarget, "--terraform-plan-file=out.plan", "--",
184184
TerraformTestPath, "plan", "-out=out.plan", "-detailed-exitcode",
185185
),
186186
RunExpected{
187-
Status: 0,
188-
IgnoreStdout: true,
189-
IgnoreStderr: true,
187+
Status: 0,
188+
StdoutRegex: regexp.QuoteMeta(`Terraform will perform the following actions`),
190189
},
191190
)
192191
AssertRunResult(t,

0 commit comments

Comments
 (0)