Skip to content

Commit fe6866b

Browse files
committed
test: Update test to reflect changes in the test fixture configuration
1 parent 612c4fc commit fe6866b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/command/e2etest/primary_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
package e2etest
55

66
import (
7+
"fmt"
78
"os"
89
"path/filepath"
910
"reflect"
@@ -251,6 +252,7 @@ func TestPrimary_stateStore(t *testing.T) {
251252
t.Parallel()
252253

253254
tf := e2e.NewBinary(t, terraformBin, "testdata/full-workflow-with-state-store-fs")
255+
workspaceDirName := "states" // See workspace_dir value in the configuration
254256

255257
// In order to test integration with PSS we need a provider plugin implementing a state store.
256258
// Here will build the simple6 (built with protocol v6) provider, which implements PSS.
@@ -292,7 +294,7 @@ func TestPrimary_stateStore(t *testing.T) {
292294
}
293295

294296
// Check the statefile saved by the fs state store.
295-
path := "terraform.tfstate.d/default/terraform.tfstate"
297+
path := fmt.Sprintf("%s/default/terraform.tfstate", workspaceDirName)
296298
f, err := tf.OpenFile(path)
297299
if err != nil {
298300
t.Fatalf("unexpected error opening state file %s: %s\nstderr:\n%s", path, err, stderr)

0 commit comments

Comments
 (0)