File tree Expand file tree Collapse file tree 5 files changed +11
-15
lines changed
override-backend-with-state-store
override-cloud-with-state-store
override-state-store-no-base Expand file tree Collapse file tree 5 files changed +11
-15
lines changed Original file line number Diff line number Diff line change @@ -36,16 +36,11 @@ func TestParserLoadConfigDirSuccess(t *testing.T) {
3636 t .Run (name , func (t * testing.T ) {
3737 parser := NewParser (nil )
3838
39- var expectWarning bool
4039 if strings .Contains (name , "state-store" ) {
4140 // The PSS project is currently gated as experimental
4241 // TODO(SarahFrench/radeksimko) - remove this from the test once
4342 // the feature is GA.
4443 parser .allowExperiments = true
45-
46- // While the feature is experimental a warning will always be returned
47- // about the feature.
48- expectWarning = true
4944 }
5045
5146 path := filepath .Join ("testdata/valid-modules" , name )
@@ -79,19 +74,13 @@ func TestParserLoadConfigDirSuccess(t *testing.T) {
7974 diags = filterDiags
8075 }
8176 if diags .HasErrors () {
82- t .Errorf ("unexpected error diagnostics" )
77+ t .Error ("unexpected error diagnostics" )
8378 for _ , diag := range diags .Errs () {
8479 t .Logf ("- %s" , diag )
8580 }
8681 }
87- if ! expectWarning && len (diags ) != 0 {
88- t .Errorf ("unexpected diagnostics: expected no warnings" )
89- for _ , diag := range diags {
90- t .Logf ("- %s" , diag )
91- }
92- }
93- if expectWarning && len (diags ) != 1 {
94- t .Errorf ("unexpected diagnostics: expected a single warning" )
82+ if len (diags ) > 0 {
83+ t .Error ("unexpected diagnostics:" )
9584 for _ , diag := range diags {
9685 t .Logf ("- %s" , diag )
9786 }
Original file line number Diff line number Diff line change 11terraform {
2+ # Not including an experiments list here
3+ # See https://github.com/hashicorp/terraform/issues/38012
24 required_providers {
35 foo = {
46 source = " my-org/foo"
Original file line number Diff line number Diff line change 11terraform {
2+ # Not including an experiments list here
3+ # See https://github.com/hashicorp/terraform/issues/38012
24 required_providers {
35 foo = {
46 source = " my-org/foo"
Original file line number Diff line number Diff line change 11terraform {
2- experiments = [pluggable_state_stores ]
2+ # Not including an experiments list here
3+ # See https://github.com/hashicorp/terraform/issues/38012
34 required_providers {
45 test = {
56 source = " hashicorp/test"
Original file line number Diff line number Diff line change 11terraform {
2+ # Not including an experiments list here
3+ # See https://github.com/hashicorp/terraform/issues/38012
24 required_providers {
35 bar = {
46 source = " my-org/bar"
You can’t perform that action at this time.
0 commit comments