@@ -863,7 +863,7 @@ func TestConvertResources(t *testing.T) {
863
863
expected := expected
864
864
t .Run (folderName , func (t * testing.T ) {
865
865
t .Parallel ()
866
- dir := filepath .Join (filepath .Dir (filename ), "testdata" , folderName )
866
+ dir := filepath .Join (filepath .Dir (filename ), "testdata" , "resources" , folderName )
867
867
t .Run ("Plan" , func (t * testing.T ) {
868
868
t .Parallel ()
869
869
ctx , logger := ctxAndLogger (t )
@@ -1021,7 +1021,7 @@ func TestAppSlugValidation(t *testing.T) {
1021
1021
_ , filename , _ , _ := runtime .Caller (0 )
1022
1022
1023
1023
// Load the multiple-apps state file and edit it.
1024
- dir := filepath .Join (filepath .Dir (filename ), "testdata" , "multiple-apps" )
1024
+ dir := filepath .Join (filepath .Dir (filename ), "testdata" , "resources" , " multiple-apps" )
1025
1025
tfPlanRaw , err := os .ReadFile (filepath .Join (dir , "multiple-apps.tfplan.json" ))
1026
1026
require .NoError (t , err )
1027
1027
var tfPlan tfjson.Plan
@@ -1070,7 +1070,7 @@ func TestAppSlugDuplicate(t *testing.T) {
1070
1070
// nolint:dogsled
1071
1071
_ , filename , _ , _ := runtime .Caller (0 )
1072
1072
1073
- dir := filepath .Join (filepath .Dir (filename ), "testdata" , "multiple-apps" )
1073
+ dir := filepath .Join (filepath .Dir (filename ), "testdata" , "resources" , " multiple-apps" )
1074
1074
tfPlanRaw , err := os .ReadFile (filepath .Join (dir , "multiple-apps.tfplan.json" ))
1075
1075
require .NoError (t , err )
1076
1076
var tfPlan tfjson.Plan
@@ -1098,7 +1098,7 @@ func TestAgentNameInvalid(t *testing.T) {
1098
1098
// nolint:dogsled
1099
1099
_ , filename , _ , _ := runtime .Caller (0 )
1100
1100
1101
- dir := filepath .Join (filepath .Dir (filename ), "testdata" , "multiple-agents" )
1101
+ dir := filepath .Join (filepath .Dir (filename ), "testdata" , "resources" , " multiple-agents" )
1102
1102
tfPlanRaw , err := os .ReadFile (filepath .Join (dir , "multiple-agents.tfplan.json" ))
1103
1103
require .NoError (t , err )
1104
1104
var tfPlan tfjson.Plan
@@ -1147,7 +1147,7 @@ func TestAgentNameDuplicate(t *testing.T) {
1147
1147
// nolint:dogsled
1148
1148
_ , filename , _ , _ := runtime .Caller (0 )
1149
1149
1150
- dir := filepath .Join (filepath .Dir (filename ), "testdata" , "multiple-agents" )
1150
+ dir := filepath .Join (filepath .Dir (filename ), "testdata" , "resources" , " multiple-agents" )
1151
1151
tfPlanRaw , err := os .ReadFile (filepath .Join (dir , "multiple-agents.tfplan.json" ))
1152
1152
require .NoError (t , err )
1153
1153
var tfPlan tfjson.Plan
@@ -1178,7 +1178,7 @@ func TestMetadataResourceDuplicate(t *testing.T) {
1178
1178
ctx , logger := ctxAndLogger (t )
1179
1179
1180
1180
// Load the multiple-apps state file and edit it.
1181
- dir := filepath .Join ("testdata" , "resource-metadata-duplicate" )
1181
+ dir := filepath .Join ("testdata" , "resources" , " resource-metadata-duplicate" )
1182
1182
tfPlanRaw , err := os .ReadFile (filepath .Join (dir , "resource-metadata-duplicate.tfplan.json" ))
1183
1183
require .NoError (t , err )
1184
1184
var tfPlan tfjson.Plan
@@ -1201,7 +1201,7 @@ func TestParameterValidation(t *testing.T) {
1201
1201
_ , filename , _ , _ := runtime .Caller (0 )
1202
1202
1203
1203
// Load the rich-parameters state file and edit it.
1204
- dir := filepath .Join (filepath .Dir (filename ), "testdata" , "rich-parameters" )
1204
+ dir := filepath .Join (filepath .Dir (filename ), "testdata" , "resources" , " rich-parameters" )
1205
1205
tfPlanRaw , err := os .ReadFile (filepath .Join (dir , "rich-parameters.tfplan.json" ))
1206
1206
require .NoError (t , err )
1207
1207
var tfPlan tfjson.Plan
0 commit comments