Skip to content

Commit 09b6fe8

Browse files
committed
resources subfolder
1 parent 4e38e6d commit 09b6fe8

File tree

116 files changed

+7
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+7
-7
lines changed

provisioner/terraform/resources_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ func TestConvertResources(t *testing.T) {
863863
expected := expected
864864
t.Run(folderName, func(t *testing.T) {
865865
t.Parallel()
866-
dir := filepath.Join(filepath.Dir(filename), "testdata", folderName)
866+
dir := filepath.Join(filepath.Dir(filename), "testdata", "resources", folderName)
867867
t.Run("Plan", func(t *testing.T) {
868868
t.Parallel()
869869
ctx, logger := ctxAndLogger(t)
@@ -1021,7 +1021,7 @@ func TestAppSlugValidation(t *testing.T) {
10211021
_, filename, _, _ := runtime.Caller(0)
10221022

10231023
// 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")
10251025
tfPlanRaw, err := os.ReadFile(filepath.Join(dir, "multiple-apps.tfplan.json"))
10261026
require.NoError(t, err)
10271027
var tfPlan tfjson.Plan
@@ -1070,7 +1070,7 @@ func TestAppSlugDuplicate(t *testing.T) {
10701070
// nolint:dogsled
10711071
_, filename, _, _ := runtime.Caller(0)
10721072

1073-
dir := filepath.Join(filepath.Dir(filename), "testdata", "multiple-apps")
1073+
dir := filepath.Join(filepath.Dir(filename), "testdata", "resources", "multiple-apps")
10741074
tfPlanRaw, err := os.ReadFile(filepath.Join(dir, "multiple-apps.tfplan.json"))
10751075
require.NoError(t, err)
10761076
var tfPlan tfjson.Plan
@@ -1098,7 +1098,7 @@ func TestAgentNameInvalid(t *testing.T) {
10981098
// nolint:dogsled
10991099
_, filename, _, _ := runtime.Caller(0)
11001100

1101-
dir := filepath.Join(filepath.Dir(filename), "testdata", "multiple-agents")
1101+
dir := filepath.Join(filepath.Dir(filename), "testdata", "resources", "multiple-agents")
11021102
tfPlanRaw, err := os.ReadFile(filepath.Join(dir, "multiple-agents.tfplan.json"))
11031103
require.NoError(t, err)
11041104
var tfPlan tfjson.Plan
@@ -1147,7 +1147,7 @@ func TestAgentNameDuplicate(t *testing.T) {
11471147
// nolint:dogsled
11481148
_, filename, _, _ := runtime.Caller(0)
11491149

1150-
dir := filepath.Join(filepath.Dir(filename), "testdata", "multiple-agents")
1150+
dir := filepath.Join(filepath.Dir(filename), "testdata", "resources", "multiple-agents")
11511151
tfPlanRaw, err := os.ReadFile(filepath.Join(dir, "multiple-agents.tfplan.json"))
11521152
require.NoError(t, err)
11531153
var tfPlan tfjson.Plan
@@ -1178,7 +1178,7 @@ func TestMetadataResourceDuplicate(t *testing.T) {
11781178
ctx, logger := ctxAndLogger(t)
11791179

11801180
// 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")
11821182
tfPlanRaw, err := os.ReadFile(filepath.Join(dir, "resource-metadata-duplicate.tfplan.json"))
11831183
require.NoError(t, err)
11841184
var tfPlan tfjson.Plan
@@ -1201,7 +1201,7 @@ func TestParameterValidation(t *testing.T) {
12011201
_, filename, _, _ := runtime.Caller(0)
12021202

12031203
// 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")
12051205
tfPlanRaw, err := os.ReadFile(filepath.Join(dir, "rich-parameters.tfplan.json"))
12061206
require.NoError(t, err)
12071207
var tfPlan tfjson.Plan

0 commit comments

Comments
 (0)