File tree Expand file tree Collapse file tree 4 files changed +26
-5
lines changed
full-workflow-with-state-store-fs
full-workflow-with-state-store-inmem Expand file tree Collapse file tree 4 files changed +26
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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+ }
File renamed without changes.
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments