@ -247,11 +247,8 @@ func TestPrimary_stateStore(t *testing.T) {
t . Skip ( "can't run without building a new provider executable" )
}
t . Setenv ( e2e . TestExperimentFlag , "true" )
terraformBin := e2e . GoBuild ( "github.com/hashicorp/terraform" , "terraform" )
fixturePath := filepath . Join ( "testdata" , "full-workflow-with-state-store-fs" )
tf := e2e . NewBinary ( t , terraformBin, fixturePath )
tf := e2e . NewBinary ( t , experimentalTerraformBin , fixturePath )
workspaceDirName := "states" // See workspace_dir value in the configuration
// In order to test integration with PSS we need a provider plugin implementing a state store.
@ -321,11 +318,8 @@ func TestPrimary_stateStore_planFile(t *testing.T) {
t . Skip ( "can't run without building a new provider executable" )
}
t . Setenv ( e2e . TestExperimentFlag , "true" )
terraformBin := e2e . GoBuild ( "github.com/hashicorp/terraform" , "terraform" )
fixturePath := filepath . Join ( "testdata" , "full-workflow-with-state-store-fs" )
tf := e2e . NewBinary ( t , terraformBin, fixturePath )
tf := e2e . NewBinary ( t , experimentalTerraformBin , fixturePath )
// In order to test integration with PSS we need a provider plugin implementing a state store.
// Here will build the simple6 (built with protocol v6) provider, which implements PSS.
@ -410,9 +404,7 @@ func TestPrimary_stateStore_swapProviderSupplyMode_betweenInitAndPlanApply(t *te
fixturePath := filepath . Join ( "testdata" , "full-workflow-with-state-store-fs" )
t . Setenv ( e2e . TestExperimentFlag , "true" )
terraformBin := e2e . GoBuild ( "github.com/hashicorp/terraform" , "terraform" )
tf := e2e . NewBinary ( t , terraformBin , fixturePath )
tf := e2e . NewBinary ( t , experimentalTerraformBin , fixturePath )
reattachStr , _ := reattachedProviderForTest ( t , addrs . NewDefaultProvider ( "simple6" ) , 6 )
tf . AddEnv ( "TF_REATTACH_PROVIDERS=" + string ( reattachStr ) )
@ -493,9 +485,7 @@ func TestPrimary_stateStore_swapProviderSupplyMode_betweenInitAndPlanApply(t *te
fixturePath := filepath . Join ( "testdata" , "full-workflow-with-state-store-fs" )
t . Setenv ( e2e . TestExperimentFlag , "true" )
terraformBin := e2e . GoBuild ( "github.com/hashicorp/terraform" , "terraform" )
tf := e2e . NewBinary ( t , terraformBin , fixturePath )
tf := e2e . NewBinary ( t , experimentalTerraformBin , fixturePath )
// Build provider binaries that will be used via a filesystem mirror/-plugin-dir flag.
simple6Provider := filepath . Join ( tf . WorkDir ( ) , "terraform-provider-simple6" )
@ -589,9 +579,7 @@ func TestPrimary_stateStore_swapProviderSupplyMode_betweenInitAndPlanApply(t *te
fixturePath := filepath . Join ( "testdata" , "full-workflow-with-state-store-fs" )
t . Setenv ( e2e . TestExperimentFlag , "true" )
terraformBin := e2e . GoBuild ( "github.com/hashicorp/terraform" , "terraform" )
tf := e2e . NewBinary ( t , terraformBin , fixturePath )
tf := e2e . NewBinary ( t , experimentalTerraformBin , fixturePath )
// Build a new provider binary and direct Terraform to use it via CLI configuration file.
simple6Provider := filepath . Join ( tf . WorkDir ( ) , "terraform-provider-simple6" )
@ -697,9 +685,7 @@ func TestPrimary_stateStore_swapProviderSupplyMode_betweenSuccessiveInits(t *tes
fixturePath := filepath . Join ( "testdata" , "full-workflow-with-state-store-fs" )
t . Setenv ( e2e . TestExperimentFlag , "true" )
terraformBin := e2e . GoBuild ( "github.com/hashicorp/terraform" , "terraform" )
tf := e2e . NewBinary ( t , terraformBin , fixturePath )
tf := e2e . NewBinary ( t , experimentalTerraformBin , fixturePath )
reattachStr , _ := reattachedProviderForTest ( t , addrs . NewDefaultProvider ( "simple6" ) , 6 )
tf . AddEnv ( "TF_REATTACH_PROVIDERS=" + string ( reattachStr ) )
@ -774,9 +760,7 @@ func TestPrimary_stateStore_swapProviderSupplyMode_betweenSuccessiveInits(t *tes
fixturePath := filepath . Join ( "testdata" , "full-workflow-with-state-store-fs" )
t . Setenv ( e2e . TestExperimentFlag , "true" )
terraformBin := e2e . GoBuild ( "github.com/hashicorp/terraform" , "terraform" )
tf := e2e . NewBinary ( t , terraformBin , fixturePath )
tf := e2e . NewBinary ( t , experimentalTerraformBin , fixturePath )
// Build provider binaries that will be used via a filesystem mirror/-plugin-dir flag.
simple6Provider := filepath . Join ( tf . WorkDir ( ) , "terraform-provider-simple6" )
@ -864,9 +848,7 @@ func TestPrimary_stateStore_swapProviderSupplyMode_betweenSuccessiveInits(t *tes
fixturePath := filepath . Join ( "testdata" , "full-workflow-with-state-store-fs" )
t . Setenv ( e2e . TestExperimentFlag , "true" )
terraformBin := e2e . GoBuild ( "github.com/hashicorp/terraform" , "terraform" )
tf := e2e . NewBinary ( t , terraformBin , fixturePath )
tf := e2e . NewBinary ( t , experimentalTerraformBin , fixturePath )
// Build a new provider binary and direct Terraform to use it via CLI configuration file.
simple6Provider := filepath . Join ( tf . WorkDir ( ) , "terraform-provider-simple6" )