Skip to content

Commit

Permalink
293-rename-datasafe-business-integration-test-files-for-clear-separation
Browse files Browse the repository at this point in the history
  • Loading branch information
Elwizzy12 committed Apr 11, 2024
1 parent bc9e2b4 commit c38600c
Show file tree
Hide file tree
Showing 12 changed files with 34 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
* Tests that validates basic functionality - storing data to inbox, privatespace, listing files, etc.
*/
@Slf4j
class BasicFunctionalityTest extends BaseE2ETest {
class BasicFunctionalityIT extends BaseE2ETest {

private static final int LARGE_SIZE = 10 * 1024 * 1024 + 100;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* Tests that validates basic functionality - storing data to inbox, privatespace, listing files, etc. using UTF-8 paths.
*/
@Slf4j
class BasicFunctionalityUtf8Test extends BaseE2ETest {
class BasicFunctionalityUtf8IT extends BaseE2ETest {

private static final String MESSAGE_ONE = "Hello here 1";
private static final String FOLDER = "folder1";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
* Multithreaded test of basic operations.
*/
@Slf4j
class BasicFunctionalityWithConcurrencyTest extends BaseE2ETest {
class BasicFunctionalityWithConcurrencyIT extends BaseE2ETest {

private static final int TIMEOUT_S = 30;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.assertThrows;

class BasicFunctionalityWithPasswordChangeTest extends BaseE2ETest {
class BasicFunctionalityWithPasswordChangeIT extends BaseE2ETest {

@SneakyThrows
@ParameterizedTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* attacker is unable to modify encrypted text without being detected.
*/
@Slf4j
class DataTamperingResistanceTest extends BaseE2ETest {
class DataTamperingResistanceIT extends BaseE2ETest {

private static final Set<Character> NOT_TO_REPLACE_IN_PATH = ImmutableSet.of('=', '/');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import static org.assertj.core.api.Assertions.assertThat;

@Slf4j
public class KeyStoreTypeCompareTest extends BaseE2ETest {
public class KeyStoreTypeCompareIT extends BaseE2ETest {
private final static int NUMBER_WRITES = 100;
private final static int NUMBER_READS = 100;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
* access `credentialsBucket` that has user profile and his storage access keystore.
*/
@Slf4j
class MultiDFSFunctionalityTest extends BaseMockitoTest {
class MultiDFSFunctionalityIT extends BaseMockitoTest {

private static final String REGION = "eu-central-1";
private static final String LOCALHOST = getDockerUri("http://127.0.0.1");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,32 +32,32 @@

import static org.assertj.core.api.Assertions.assertThat;

class SchemeDelegationTest extends WithStorageProvider {

private Path fsPath;
private Uri minioPath;
private StorageService minio;
private StorageService filesystem;
private DefaultDatasafeServices datasafeServices;

@BeforeEach
void initialize(@TempDir Path tempDir) {
WithStorageProvider.StorageDescriptor minioDescriptor = minio();
this.fsPath = tempDir;
this.minio = minioDescriptor.getStorageService().get();
this.filesystem = new FileSystemStorageService(tempDir);
this.minioPath = minioDescriptor.getLocation();
StorageService multiDfs = new SchemeDelegatingStorage(
ImmutableMap.of(
"s3", minio,
"file", filesystem
)
);

this.datasafeServices = DaggerDefaultDatasafeServices
.builder()
.config(new ProfilesOnFsDataOnMinio(minioPath, tempDir))
.storage(multiDfs)

class SchemeDelegationTest extends WithStorageProvider {

private Path fsPath;
private Uri minioPath;
private StorageService minio;
private StorageService filesystem;
private DefaultDatasafeServices datasafeServices;

@BeforeEach
void initialize(@TempDir Path tempDir) {
WithStorageProvider.StorageDescriptor minioDescriptor = minio();
this.fsPath = tempDir;
this.minio = minioDescriptor.getStorageService().get();
this.filesystem = new FileSystemStorageService(tempDir);
this.minioPath = minioDescriptor.getLocation();
StorageService multiDfs = new SchemeDelegatingStorage(
ImmutableMap.of(
"s3", minio,
"file", filesystem
)
);
.storage(multiDfs)
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
import static de.adorsys.datasafe.types.api.global.PathEncryptionId.AES_SIV;
import static org.assertj.core.api.Assertions.assertThat;

class SchemeDelegationWithDbTest extends WithStorageProvider {
class SchemeDelegationWithDbIT extends WithStorageProvider {

private static final Set<String> ALLOWED_TABLES = ImmutableSet.of("users", "private_profiles", "public_profiles");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import static org.junit.jupiter.api.Assertions.assertThrows;

@DisabledIfSystemProperty(named = WithStorageProvider.SKIP_CEPH, matches = "true")
class StorageBasedVersioningTest extends BaseE2ETest {
class StorageBasedVersioningIT extends BaseE2ETest {

private static final String FILE = "file.txt";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import static de.adorsys.datasafe.types.api.shared.Dirs.computeRelativePreventingDoubleUrlEncode;
import static org.assertj.core.api.Assertions.assertThat;

class UserProfileWithUtf8Test extends WithStorageProvider {
class UserProfileWithUtf8IT extends WithStorageProvider {

private Path fsPath;
private Uri minioPath;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* Validates software versioned operations.
*/
@Slf4j
public class VersionedDataTest extends BaseE2ETest {
public class VersionedDataIT extends BaseE2ETest {

private static final String MESSAGE_ONE = "Hello here 1";
private static final String MESSAGE_TWO = "Hello here 2";
Expand Down

0 comments on commit c38600c

Please sign in to comment.