fix contacts?emailAddress -> contacts?emailAddressRegEx in scenario test
This commit is contained in:
parent
804ff2a5ee
commit
a0560d2bfd
@ -48,7 +48,6 @@ public class HsOfficeContactController implements HsOfficeContactsApi {
|
||||
? contactRepo.findContactByEmailAddressRegEx(emailAddressRegEx)
|
||||
: contactRepo.findContactByOptionalCaptionLike(caption);
|
||||
|
||||
|
||||
final var resources = mapper.mapList(entities, HsOfficeContactResource.class);
|
||||
return ResponseEntity.ok(resources);
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ public class SubscribeExistingPersonAndContactToMailinglist extends UseCase<Subs
|
||||
);
|
||||
|
||||
obtain("Contact: %{subscriberEMailAddress}", () ->
|
||||
httpGet("/api/hs/office/contacts?emailAddress=%{subscriberEMailAddress}")
|
||||
httpGet("/api/hs/office/contacts?emailAddressRegEx=%{subscriberEMailAddress}")
|
||||
.expecting(HttpStatus.OK).expecting(ContentType.JSON),
|
||||
response -> response.expectArrayElements(1).getFromBody("[0].uuid"),
|
||||
"In real scenarios there are most likely multiple results and you have to choose the right one."
|
||||
|
Loading…
Reference in New Issue
Block a user