Skip to content

Commit dd27a7e

Browse files
committed
fix service perimeter name in projects_test.go
1 parent 6ec4b45 commit dd27a7e

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

test/integration/projects/projects_test.go

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -100,23 +100,14 @@ func TestProjects(t *testing.T) {
100100
t.Parallel()
101101

102102
env := testutils.GetLastSplitElement(tt.name, "_")
103-
netVars := map[string]interface{}{
104-
"access_context_manager_policy_id": policyID,
105-
}
106103

107104
// networks created to retrieve output from the network step for this environment
108-
var networkTFDir string
109-
if networkMode == "" {
110-
networkTFDir = "../../../3-networks-svpc/envs/%s"
111-
} else {
112-
networkTFDir = "../../../3-networks-hub-and-spoke/envs/%s"
113-
}
114105

115-
networks := tft.NewTFBlueprintTest(t,
116-
tft.WithTFDir(fmt.Sprintf(networkTFDir, env)),
117-
tft.WithVars(netVars),
106+
org := tft.NewTFBlueprintTest(t,
107+
tft.WithTFDir("../../../1-org/envs/shared"),
118108
)
119-
perimeterName := networks.GetStringOutput("service_perimeter_name")
109+
110+
perimeterName := org.GetStringOutput("service_perimeter_name")
120111

121112
shared := tft.NewTFBlueprintTest(t,
122113
tft.WithTFDir(fmt.Sprintf(tt.baseDir, "shared")),

0 commit comments

Comments
 (0)