Implement JSON security context serializer (new default) - smaller info and human readable (#2652)
keeps backward compatibility by being able to fallback to JAVA_SERIALIZATION + fix DMF messages with status code Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -36,6 +36,8 @@ import org.junit.jupiter.api.Test;
|
||||
class FileArtifactStorageTest {
|
||||
|
||||
private static final String TENANT = "test_tenant";
|
||||
@SuppressWarnings("java:S1068") // used for tests only, no need of secure random
|
||||
private static final Random RND = new Random();
|
||||
|
||||
private static FileArtifactProperties artifactResourceProperties;
|
||||
private static FileArtifactStorage artifactFilesystemRepository;
|
||||
@@ -130,7 +132,7 @@ class FileArtifactStorageTest {
|
||||
|
||||
private static byte[] randomBytes() {
|
||||
final byte[] randomBytes = new byte[20];
|
||||
new Random().nextBytes(randomBytes);
|
||||
RND.nextBytes(randomBytes);
|
||||
return randomBytes;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user