Skip to content

Commit c008715

Browse files
committed
Merge branch '2.x'
2 parents cdda658 + 33b7dba commit c008715

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

integration-test/src/test/java/org/cloudfoundry/networking/v1/PoliciesTest.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ public final class PoliciesTest extends AbstractIntegrationTest {
5757
public void create() {
5858
String destinationApplicationName = this.nameFactory.getApplicationName();
5959
String sourceApplicationName = this.nameFactory.getApplicationName();
60-
Integer port = this.nameFactory.getPort();
60+
Integer startPort = this.nameFactory.getPort();
61+
Integer endPort = this.nameFactory.getPort();
6162

6263
this.spaceId
6364
.flatMapMany(spaceId -> Mono.zip(
@@ -70,8 +71,8 @@ public void create() {
7071
.destination(Destination.builder()
7172
.id(destinationApplicationId)
7273
.ports(Ports.builder()
73-
.end(port + 1)
74-
.start(port)
74+
.end(endPort)
75+
.start(startPort)
7576
.build())
7677
.protocol("tcp")
7778
.build())
@@ -87,7 +88,7 @@ public void create() {
8788
.single())
8889
.map(policy -> policy.getDestination().getPorts().getStart())
8990
.as(StepVerifier::create)
90-
.expectNext(port)
91+
.expectNext(startPort)
9192
.expectComplete()
9293
.verify(Duration.ofMinutes(5));
9394
}

integration-test/src/test/java/org/cloudfoundry/operations/RoutesTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public void create() {
139139
@Test
140140
public void createRouteTcpAssignedPort() {
141141
String domainName = this.nameFactory.getDomainName();
142-
Integer port = 61002;
142+
Integer port = this.nameFactory.getPort();
143143

144144
requestCreateSharedDomain(this.cloudFoundryOperations, domainName, DEFAULT_ROUTER_GROUP)
145145
.then(requestCreateRoute(this.cloudFoundryOperations, this.spaceName, domainName, port))

0 commit comments

Comments
 (0)