Skip to content

Commit 1d49d40

Browse files
committed
More Test Fixes
1 parent 4b6b230 commit 1d49d40

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

integration-test/src/test/java/org/cloudfoundry/uaa/UsersTest.java

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public void delete() throws TimeoutException, InterruptedException {
124124
.verify(Duration.ofMinutes(5));
125125
}
126126

127-
@IfCloudFoundryVersion(greaterThanOrEqualTo = IfCloudFoundryVersion.CloudFoundryVersion.PCF_1_9)
127+
@IfCloudFoundryVersion(greaterThanOrEqualTo = IfCloudFoundryVersion.CloudFoundryVersion.PCF_1_10)
128128
@Test
129129
public void expirePassword() throws TimeoutException, InterruptedException {
130130
String userName = this.nameFactory.getUserName();
@@ -143,6 +143,24 @@ public void expirePassword() throws TimeoutException, InterruptedException {
143143
.verify(Duration.ofMinutes(5));
144144
}
145145

146+
@IfCloudFoundryVersion(equalTo = IfCloudFoundryVersion.CloudFoundryVersion.PCF_1_9)
147+
@Test
148+
public void expirePassword19() throws TimeoutException, InterruptedException {
149+
String userName = this.nameFactory.getUserName();
150+
151+
createUserId(this.uaaClient, userName)
152+
.then(userId -> this.uaaClient.users()
153+
.expirePassword(ExpirePasswordRequest.builder()
154+
.passwordChangeRequired(true)
155+
.userId(userId)
156+
.build()))
157+
.as(StepVerifier::create)
158+
.expectNext(ExpirePasswordResponse.builder()
159+
.build())
160+
.expectComplete()
161+
.verify(Duration.ofMinutes(5));
162+
}
163+
146164
@Test
147165
public void getVerificationLink() throws TimeoutException, InterruptedException {
148166
String userName = this.nameFactory.getUserName();

0 commit comments

Comments
 (0)