Skip to content

Commit 0c5275f

Browse files
committed
Small changes to inmem E2E test
1 parent 9a3db61 commit 0c5275f

File tree

4 files changed

+26
-5
lines changed

4 files changed

+26
-5
lines changed

internal/command/e2etest/primary_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ func TestPrimary_stateStore(t *testing.T) {
249249
}
250250
t.Parallel()
251251

252-
tf := e2e.NewBinary(t, terraformBin, "testdata/full-workflow-with-state-store")
252+
tf := e2e.NewBinary(t, terraformBin, "testdata/full-workflow-with-state-store-inmem")
253253

254254
// In order to test integration with PSS we need a provider plugin implementing a state store.
255255
// Here will build the simple6 (built with protocol v6) provider, which implements PSS.
@@ -293,5 +293,3 @@ func TestPrimary_stateStore(t *testing.T) {
293293
// We cannot inspect state or perform a destroy here, as the state isn't persisted between steps
294294
// when we use the simple6_inmem state store.
295295
}
296-
297-
// TODO: TestPrimarySeparatePlan_stateStore - once support for PSS in plan files is implemented
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
terraform {
2+
required_providers {
3+
simple6 = {
4+
source = "registry.terraform.io/hashicorp/simple6"
5+
}
6+
}
7+
8+
state_store "simple6_fs" {
9+
provider "simple6" {}
10+
}
11+
}
12+
13+
variable "name" {
14+
default = "world"
15+
}
16+
17+
resource "terraform_data" "my-data" {
18+
input = "hello ${var.name}"
19+
}
20+
21+
output "greeting" {
22+
value = resource.terraform_data.my-data.output
23+
}

internal/provider-simple-v6/state_store_inmem_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"github.com/zclconf/go-cty/cty"
1515
)
1616

17-
func TestBackendLocked(t *testing.T) {
17+
func TestInMemStoreLocked(t *testing.T) {
1818
// backend.TestBackendStateLocks assumes the default workspace exists
1919
// by default, so we need to make it exist using the method below.
2020
provider := ProviderWithDefaultWorkspace()
@@ -34,7 +34,7 @@ func TestBackendLocked(t *testing.T) {
3434
backend.TestBackendStateLocks(t, b1, b2)
3535
}
3636

37-
func TestRemoteState(t *testing.T) {
37+
func TestInMemStoreRemoteState(t *testing.T) {
3838
provider := Provider()
3939

4040
plug, err := pluggable.NewPluggable(provider, inMemStoreName)

0 commit comments

Comments
 (0)