Skip to content

Commit 2914af5

Browse files
committed
fix integration test compile
1 parent ad7e71b commit 2914af5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ziti/src/integrationTest/kotlin/org/openziti/integ/ManagementHelper.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,14 @@ internal object ManagementHelper {
134134

135135

136136
val exp = OffsetDateTime.now().plusDays(1)
137+
val id = identity.id!!
137138
val enrollReq = EnrollmentCreate()
138-
.identityId(identity.id!!)
139+
.identityId(id)
139140
.method(EnrollmentCreate.MethodEnum.OTT)
140141
.expiresAt(exp)
141142
enrollmentApi.createEnrollment(enrollReq).waitFor()
142143

143-
return identityApi.getIdentityEnrollments(identity.id).waitFor().data.first().jwt!!
144+
return identityApi.getIdentityEnrollments(id).waitFor().data.first().jwt!!
144145
}
145146

146147
internal fun <T> CompletableFuture<T>.waitFor(timeout: Duration = Duration.of(5, ChronoUnit.SECONDS)): T =

0 commit comments

Comments
 (0)