Skip to content

Commit 67c13fe

Browse files
committed
remove the tests temporarily for the CI
1 parent 9b226e4 commit 67c13fe

File tree

3 files changed

+33
-24
lines changed

3 files changed

+33
-24
lines changed

go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@ module github.com/terraform-providers/terraform-provider-local
22

33
go 1.24.0
44

5-
replace github.com/hashicorp/terraform-plugin-testing => /Users/austin.valle/code/terraform-plugin-testing
6-
75
require (
86
github.com/google/go-cmp v0.7.0
97
github.com/hashicorp/terraform-plugin-framework v1.16.1
108
github.com/hashicorp/terraform-plugin-framework-validators v0.19.0
119
github.com/hashicorp/terraform-plugin-go v0.29.0
1210
github.com/hashicorp/terraform-plugin-log v0.9.0
13-
github.com/hashicorp/terraform-plugin-testing v1.13.3
11+
github.com/hashicorp/terraform-plugin-testing v1.14.0-beta.1.0.20251029152858-203e6cc410a0
1412
)
1513

1614
require (

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9T
9393
github.com/hashicorp/terraform-plugin-log v0.9.0/go.mod h1:rKL8egZQ/eXSyDqzLUuwUYLVdlYeamldAHSxjUFADow=
9494
github.com/hashicorp/terraform-plugin-sdk/v2 v2.38.1 h1:mlAq/OrMlg04IuJT7NpefI1wwtdpWudnEmjuQs04t/4=
9595
github.com/hashicorp/terraform-plugin-sdk/v2 v2.38.1/go.mod h1:GQhpKVvvuwzD79e8/NZ+xzj+ZpWovdPAe8nfV/skwNU=
96+
github.com/hashicorp/terraform-plugin-testing v1.14.0-beta.1.0.20251029152858-203e6cc410a0 h1:2ZfVb9DwefNk/aN3uJZLIADETfQOdxtOrDZ6iLGtx8o=
97+
github.com/hashicorp/terraform-plugin-testing v1.14.0-beta.1.0.20251029152858-203e6cc410a0/go.mod h1:UrIjRAJLN0kygs0miY1Moy4PxUzy2e9R5WxyRk8aliI=
9698
github.com/hashicorp/terraform-registry-address v0.4.0 h1:S1yCGomj30Sao4l5BMPjTGZmCNzuv7/GDTDX99E9gTk=
9799
github.com/hashicorp/terraform-registry-address v0.4.0/go.mod h1:LRS1Ay0+mAiRkUyltGT+UHWkIqTFvigGn/LbMshfflE=
98100
github.com/hashicorp/terraform-svchost v0.1.1 h1:EZZimZ1GxdqFRinZ1tpJwVxxt49xc/S52uzrw4x0jKQ=

internal/provider/action_local_command_test.go

Lines changed: 30 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import (
1313
"testing"
1414

1515
"github.com/google/go-cmp/cmp"
16-
"github.com/hashicorp/terraform-plugin-testing/actioncheck"
1716
"github.com/hashicorp/terraform-plugin-testing/config"
1817
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1918
"github.com/hashicorp/terraform-plugin-testing/tfversion"
@@ -46,10 +45,12 @@ func TestLocalCommandAction_bash(t *testing.T) {
4645
"scripts_folder_path": config.StringVariable(testScriptsDir),
4746
},
4847
ConfigDirectory: config.StaticDirectory(bashTestDirectory),
49-
ActionChecks: []actioncheck.ActionCheck{
50-
actioncheck.ExpectProgressCount("local_command", 1),
51-
actioncheck.ExpectProgressMessageContains("local_command", "Hello !"),
52-
},
48+
// TODO: Currently action checks don't exist, but eventually we can run these on the progress messages
49+
// https://github.com/hashicorp/terraform-plugin-testing/pull/570
50+
// ActionChecks: []actioncheck.ActionCheck{
51+
// actioncheck.ExpectProgressCount("local_command", 1),
52+
// actioncheck.ExpectProgressMessageContains("local_command", "Hello !"),
53+
// },
5354
PostApplyFunc: assertTestFile(t, filepath.Join(tempDir, "test_file.txt"), expectedFileContent),
5455
},
5556
},
@@ -81,10 +82,12 @@ func TestLocalCommandAction_bash_stdin(t *testing.T) {
8182
"scripts_folder_path": config.StringVariable(testScriptsDir),
8283
},
8384
ConfigDirectory: config.StaticDirectory(bashTestDirectory),
84-
ActionChecks: []actioncheck.ActionCheck{
85-
actioncheck.ExpectProgressCount("local_command", 1),
86-
actioncheck.ExpectProgressMessageContains("local_command", fmt.Sprintf("Hello %s!", stdin)),
87-
},
85+
// TODO: Currently action checks don't exist, but eventually we can run these on the progress messages
86+
// https://github.com/hashicorp/terraform-plugin-testing/pull/570
87+
// ActionChecks: []actioncheck.ActionCheck{
88+
// actioncheck.ExpectProgressCount("local_command", 1),
89+
// actioncheck.ExpectProgressMessageContains("local_command", fmt.Sprintf("Hello %s!", stdin)),
90+
// },
8891
PostApplyFunc: assertTestFile(t, filepath.Join(tempDir, "test_file.txt"), expectedFileContent),
8992
},
9093
},
@@ -124,10 +127,12 @@ func TestLocalCommandAction_bash_all(t *testing.T) {
124127
),
125128
},
126129
ConfigDirectory: config.StaticDirectory(bashTestDirectory),
127-
ActionChecks: []actioncheck.ActionCheck{
128-
actioncheck.ExpectProgressCount("local_command", 1),
129-
actioncheck.ExpectProgressMessageContains("local_command", fmt.Sprintf("Hello %s!", stdin)),
130-
},
130+
// TODO: Currently action checks don't exist, but eventually we can run these on the progress messages
131+
// https://github.com/hashicorp/terraform-plugin-testing/pull/570
132+
// ActionChecks: []actioncheck.ActionCheck{
133+
// actioncheck.ExpectProgressCount("local_command", 1),
134+
// actioncheck.ExpectProgressMessageContains("local_command", fmt.Sprintf("Hello %s!", stdin)),
135+
// },
131136
PostApplyFunc: assertTestFile(t, filepath.Join(tempDir, "test_file.txt"), expectedFileContent),
132137
},
133138
},
@@ -165,10 +170,12 @@ func TestLocalCommandAction_bash_null_args(t *testing.T) {
165170
),
166171
},
167172
ConfigDirectory: config.TestNameDirectory(),
168-
ActionChecks: []actioncheck.ActionCheck{
169-
actioncheck.ExpectProgressCount("local_command", 1),
170-
actioncheck.ExpectProgressMessageContains("local_command", "Hello !"),
171-
},
173+
// TODO: Currently action checks don't exist, but eventually we can run these on the progress messages
174+
// https://github.com/hashicorp/terraform-plugin-testing/pull/570
175+
// ActionChecks: []actioncheck.ActionCheck{
176+
// actioncheck.ExpectProgressCount("local_command", 1),
177+
// actioncheck.ExpectProgressMessageContains("local_command", "Hello !"),
178+
// },
172179
PostApplyFunc: assertTestFile(t, filepath.Join(tempDir, "test_file.txt"), expectedFileContent),
173180
},
174181
},
@@ -204,10 +211,12 @@ func TestLocalCommandAction_absolute_path_bash(t *testing.T) {
204211
"scripts_folder_path": config.StringVariable(testScriptsDir),
205212
},
206213
ConfigDirectory: config.StaticDirectory(bashTestDirectory),
207-
ActionChecks: []actioncheck.ActionCheck{
208-
actioncheck.ExpectProgressCount("local_command", 1),
209-
actioncheck.ExpectProgressMessageContains("local_command", "Hello !"),
210-
},
214+
// TODO: Currently action checks don't exist, but eventually we can run these on the progress messages
215+
// https://github.com/hashicorp/terraform-plugin-testing/pull/570
216+
// ActionChecks: []actioncheck.ActionCheck{
217+
// actioncheck.ExpectProgressCount("local_command", 1),
218+
// actioncheck.ExpectProgressMessageContains("local_command", "Hello !"),
219+
// },
211220
PostApplyFunc: assertTestFile(t, filepath.Join(tempDir, "test_file.txt"), expectedFileContent),
212221
},
213222
},

0 commit comments

Comments
 (0)