mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
REPO-3766 Make avatar check async
This commit is contained in:
@@ -37,8 +37,12 @@ public class AvatarPeopleSanityTest extends RestTest
|
||||
restClient.authenticateUser(userModel);
|
||||
ValidatableResponse response = restClient.withCoreAPI().usingAuthUser()
|
||||
.uploadAvatarContent(restProperties.envProperty().getFullServerUrl(), avatarFile).statusCode(200);
|
||||
restClient.authenticateUser(userModel).withCoreAPI().usingAuthUser().downloadAvatarContent();
|
||||
restClient.assertStatusCodeIs(HttpStatus.OK);
|
||||
// Renditions are async
|
||||
Utility.sleep(200, 2000, () ->
|
||||
{
|
||||
restClient.authenticateUser(userModel).withCoreAPI().usingAuthUser().downloadAvatarContent();
|
||||
restClient.assertStatusCodeIs(HttpStatus.OK);
|
||||
});
|
||||
assertNotNull(response.extract().body().asByteArray());
|
||||
assertTrue(response.extract().body().asByteArray().length > 0, "Avatar Image not uploaded");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user