New image reference and test bucket added
This commit is contained in:
parent
cfec77a422
commit
cb0b6505b3
|
@ -20,7 +20,7 @@ public class MinioAvatarStorageTest {
|
||||||
private static final String ENDPOINT_URL = "https://isti-cloud.isti.cnr.it:13808";
|
private static final String ENDPOINT_URL = "https://isti-cloud.isti.cnr.it:13808";
|
||||||
private static final String ACCESS_KEY_ENV = "ACCESS_KEY";
|
private static final String ACCESS_KEY_ENV = "ACCESS_KEY";
|
||||||
private static final String SECRET_KEY_ENV = "SECRET_KEY";
|
private static final String SECRET_KEY_ENV = "SECRET_KEY";
|
||||||
private static final String BUCKET = "d4s-container-registry-dev";
|
private static final String BUCKET = "keycloak";
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void test() throws FileNotFoundException {
|
public void test() throws FileNotFoundException {
|
||||||
|
@ -37,7 +37,7 @@ public class MinioAvatarStorageTest {
|
||||||
UserModel userModel = Mockito.mock(UserModel.class);
|
UserModel userModel = Mockito.mock(UserModel.class);
|
||||||
when(userModel.getUsername()).thenReturn("test.user");
|
when(userModel.getUsername()).thenReturn("test.user");
|
||||||
minioAvatarStorageProvider.saveAvatarImage(realmModel, userModel,
|
minioAvatarStorageProvider.saveAvatarImage(realmModel, userModel,
|
||||||
this.getClass().getClassLoader().getResourceAsStream("TM_Emoji.jpg"));
|
this.getClass().getClassLoader().getResourceAsStream("tm-avatar.png"));
|
||||||
|
|
||||||
assertNotNull(minioAvatarStorageProvider.loadAvatarImage(realmModel, userModel));
|
assertNotNull(minioAvatarStorageProvider.loadAvatarImage(realmModel, userModel));
|
||||||
minioAvatarStorageProvider.deleteAvatarImage(realmModel, userModel);
|
minioAvatarStorageProvider.deleteAvatarImage(realmModel, userModel);
|
||||||
|
|
Loading…
Reference in New Issue