Skipping test when access and secret keys env. vars are not provided
This commit is contained in:
parent
e376213903
commit
42d59ab0a9
|
@ -28,6 +28,7 @@ public class MinioAvatarStorageTest {
|
||||||
String secretKey = System.getenv(SECRET_KEY_ENV);
|
String secretKey = System.getenv(SECRET_KEY_ENV);
|
||||||
if (accessKey == null || secretKey == null) {
|
if (accessKey == null || secretKey == null) {
|
||||||
logger.error("Cannot proceed with tests without access and secret keys");
|
logger.error("Cannot proceed with tests without access and secret keys");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
Configuration minioConfig = new Configuration(ENDPOINT_URL, accessKey, secretKey, BUCKET);
|
Configuration minioConfig = new Configuration(ENDPOINT_URL, accessKey, secretKey, BUCKET);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue