Skipping test when access and secret keys env. vars are not provided

This commit is contained in:
Mauro Mugnaini 2023-10-13 16:55:08 +02:00
parent e376213903
commit 42d59ab0a9
1 changed files with 1 additions and 0 deletions

View File

@ -28,6 +28,7 @@ public class MinioAvatarStorageTest {
String secretKey = System.getenv(SECRET_KEY_ENV);
if (accessKey == null || secretKey == null) {
logger.error("Cannot proceed with tests without access and secret keys");
return;
}
Configuration minioConfig = new Configuration(ENDPOINT_URL, accessKey, secretKey, BUCKET);