Skip to content

Commit 7bc3ea8

Browse files
committed
test: Update test to reflect changes in the test fixture configuration
1 parent d7b78a6 commit 7bc3ea8

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"
@@ -250,6 +251,7 @@ func TestPrimary_stateStore(t *testing.T) {
250251

251252
fixturePath := filepath.Join("testdata", "full-workflow-with-state-store-fs")
252253
tf := e2e.NewBinary(t, terraformBin, fixturePath)
254+
workspaceDirName := "states" // See workspace_dir value in the configuration
253255

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

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

0 commit comments

Comments
 (0)