Skip to content

Commit 8c590b6

Browse files
authored
Merge pull request #1848 from sap-contributions/fix-routing-isolation
Fix missing spaceGuid
2 parents 5a52dbc + 42edde5 commit 8c590b6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

routing_isolation_segments/routing_isolation_segments.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ var _ = RoutingIsolationSegmentsDescribe("RoutingIsolationSegments", func() {
5757
bytes := session.Wait().Out.Contents()
5858
orgGuid = v3_helpers.GetGuidFromResponse(bytes)
5959

60+
session = cf.Cf("curl", fmt.Sprintf("/v3/spaces?names=%s", spaceName))
61+
bytes = session.Wait().Out.Contents()
62+
spaceGuid = v3_helpers.GetGuidFromResponse(bytes)
63+
6064
isoSegGuid = v3_helpers.CreateOrGetIsolationSegment(isoSegName)
6165
})
6266
})
@@ -116,9 +120,6 @@ var _ = RoutingIsolationSegmentsDescribe("RoutingIsolationSegments", func() {
116120
BeforeEach(func() {
117121
workflowhelpers.AsUser(TestSetup.AdminUserContext(), TestSetup.ShortTimeout(), func() {
118122
v3_helpers.EntitleOrgToIsolationSegment(orgGuid, isoSegGuid)
119-
session := cf.Cf("curl", fmt.Sprintf("/v3/spaces?names=%s", spaceName))
120-
bytes := session.Wait().Out.Contents()
121-
spaceGuid = v3_helpers.GetGuidFromResponse(bytes)
122123
v3_helpers.AssignIsolationSegmentToSpace(spaceGuid, isoSegGuid)
123124

124125
target := cf.Cf("target", "-o", orgName, "-s", spaceName).Wait()

0 commit comments

Comments
 (0)