TSK-1254: Added explicit test for base 64 encoded LDAP values.
This commit is contained in:
parent
8760bdceb3
commit
0367a3deac
|
@ -76,6 +76,23 @@ class AccessIdControllerIntTest {
|
|||
.containsExactlyInAnyOrder("Schläfrig, Tim", "Eifrig, Elena");
|
||||
}
|
||||
|
||||
@Test
|
||||
void should_returnAccessIdWithUmlauten_ifBased64EncodedUserIsLookedUp() {
|
||||
ResponseEntity<List<AccessIdRepresentationModel>> response =
|
||||
template.exchange(
|
||||
restHelper.toUrl(Mapping.URL_ACCESSID) + "?search-for=läf",
|
||||
HttpMethod.GET,
|
||||
restHelper.defaultRequest(),
|
||||
ParameterizedTypeReference.forType(AccessIdListResource.class));
|
||||
|
||||
List<AccessIdRepresentationModel> body = response.getBody();
|
||||
assertThat(body).isNotNull();
|
||||
assertThat(body).hasSize(1);
|
||||
assertThat(body)
|
||||
.extracting(AccessIdRepresentationModel::getName)
|
||||
.containsExactlyInAnyOrder("Schläfrig, Tim");
|
||||
}
|
||||
|
||||
@Test
|
||||
void testBadRequestWhenSearchForIsTooShort() {
|
||||
ThrowingCallable httpCall =
|
||||
|
|
|
@ -156,9 +156,9 @@ objectclass: top
|
|||
givenName: Tim
|
||||
description: desc
|
||||
uid: user-2-2
|
||||
sn: Schläfrig
|
||||
sn:: U2NobMOkZnJpZw==
|
||||
ou: Organisationseinheit/Organisationseinheit KSC/Organisationseinheit KSC 2
|
||||
cn: Tim Schläfrig
|
||||
cn:: VGltIFNjaGzDpGZyaWc=
|
||||
userPassword: user-2-1
|
||||
|
||||
########################
|
||||
|
|
Loading…
Reference in New Issue