@@ -85,7 +85,7 @@ func TestParseTerragruntConfigRemoteStateMinimalConfig(t *testing.T) {
8585
8686 config :=
8787 `
88- remoteState = {
88+ remote_state = {
8989 backend = "s3"
9090 }
9191 `
@@ -96,15 +96,15 @@ func TestParseTerragruntConfigRemoteStateMinimalConfig(t *testing.T) {
9696 assert .Nil (t , terragruntConfig .Lock )
9797 assert .NotNil (t , terragruntConfig .RemoteState )
9898 assert .Equal (t , "s3" , terragruntConfig .RemoteState .Backend )
99- assert .Empty (t , terragruntConfig .RemoteState .BackendConfigs )
99+ assert .Empty (t , terragruntConfig .RemoteState .Config )
100100}
101101
102102func TestParseTerragruntConfigRemoteStateMissingBackend (t * testing.T ) {
103103 t .Parallel ()
104104
105105 config :=
106106 `
107- remoteState = {
107+ remote_state = {
108108 }
109109 `
110110
@@ -117,9 +117,9 @@ func TestParseTerragruntConfigRemoteStateFullConfig(t *testing.T) {
117117
118118 config :=
119119 `
120- remoteState = {
120+ remote_state = {
121121 backend = "s3"
122- backendConfigs = {
122+ config = {
123123 encrypt = "true"
124124 bucket = "my-bucket"
125125 key = "terraform.tfstate"
@@ -134,11 +134,11 @@ func TestParseTerragruntConfigRemoteStateFullConfig(t *testing.T) {
134134 assert .Nil (t , terragruntConfig .Lock )
135135 assert .NotNil (t , terragruntConfig .RemoteState )
136136 assert .Equal (t , "s3" , terragruntConfig .RemoteState .Backend )
137- assert .NotEmpty (t , terragruntConfig .RemoteState .BackendConfigs )
138- assert .Equal (t , "true" , terragruntConfig .RemoteState .BackendConfigs ["encrypt" ])
139- assert .Equal (t , "my-bucket" , terragruntConfig .RemoteState .BackendConfigs ["bucket" ])
140- assert .Equal (t , "terraform.tfstate" , terragruntConfig .RemoteState .BackendConfigs ["key" ])
141- assert .Equal (t , "us-east-1" , terragruntConfig .RemoteState .BackendConfigs ["region" ])
137+ assert .NotEmpty (t , terragruntConfig .RemoteState .Config )
138+ assert .Equal (t , "true" , terragruntConfig .RemoteState .Config ["encrypt" ])
139+ assert .Equal (t , "my-bucket" , terragruntConfig .RemoteState .Config ["bucket" ])
140+ assert .Equal (t , "terraform.tfstate" , terragruntConfig .RemoteState .Config ["key" ])
141+ assert .Equal (t , "us-east-1" , terragruntConfig .RemoteState .Config ["region" ])
142142}
143143
144144func TestParseTerragruntConfigRemoteStateAndDynamoDbFullConfig (t * testing.T ) {
@@ -156,9 +156,9 @@ func TestParseTerragruntConfigRemoteStateAndDynamoDbFullConfig(t *testing.T) {
156156 }
157157 }
158158
159- remoteState = {
159+ remote_state = {
160160 backend = "s3"
161- backendConfigs = {
161+ config {
162162 encrypt = "true"
163163 bucket = "my-bucket"
164164 key = "terraform.tfstate"
@@ -180,11 +180,11 @@ func TestParseTerragruntConfigRemoteStateAndDynamoDbFullConfig(t *testing.T) {
180180
181181 assert .NotNil (t , terragruntConfig .RemoteState )
182182 assert .Equal (t , "s3" , terragruntConfig .RemoteState .Backend )
183- assert .NotEmpty (t , terragruntConfig .RemoteState .BackendConfigs )
184- assert .Equal (t , "true" , terragruntConfig .RemoteState .BackendConfigs ["encrypt" ])
185- assert .Equal (t , "my-bucket" , terragruntConfig .RemoteState .BackendConfigs ["bucket" ])
186- assert .Equal (t , "terraform.tfstate" , terragruntConfig .RemoteState .BackendConfigs ["key" ])
187- assert .Equal (t , "us-east-1" , terragruntConfig .RemoteState .BackendConfigs ["region" ])
183+ assert .NotEmpty (t , terragruntConfig .RemoteState .Config )
184+ assert .Equal (t , "true" , terragruntConfig .RemoteState .Config ["encrypt" ])
185+ assert .Equal (t , "my-bucket" , terragruntConfig .RemoteState .Config ["bucket" ])
186+ assert .Equal (t , "terraform.tfstate" , terragruntConfig .RemoteState .Config ["key" ])
187+ assert .Equal (t , "us-east-1" , terragruntConfig .RemoteState .Config ["region" ])
188188}
189189
190190func TestParseTerragruntConfigInvalidLockBackend (t * testing.T ) {
0 commit comments