Skip to content

Commit

Permalink
Merge branch 'datasafe_frontend_update' into feature/dat-249_BringBac…
Browse files Browse the repository at this point in the history
…kSwagger
  • Loading branch information
max402 committed Apr 18, 2024
2 parents b16c62f + 8c36cb8 commit b768d53
Show file tree
Hide file tree
Showing 90 changed files with 1,459 additions and 857 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Actions on pull requests
on:
pull_request:
branches:
- develop
- master

jobs:
pull-request-job:
runs-on: ubuntu-latest
steps:
- name: Step 1 - Checkout repository code
uses: actions/checkout@v4

- name: Step 2 - Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'

- name: Step 3 - Cache Docker images.
uses: ScribeMD/[email protected]
with:
key: docker-${{ runner.os }}

- name: Step 4 - Build & Test
run: mvn clean verify -ntp -PIT

- name: Step 5 - Upload coverage unittests reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
gcov_ignore: '!*datasafe-business*'
flags: unittests
verbose: true

- name: Step 6 - Upload coverage e2e tests reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
gcov_include: '*datasafe-business*'
flags: e2e_tests
verbose: true
22 changes: 0 additions & 22 deletions .github/workflows/pull-requests.yml

This file was deleted.

53 changes: 53 additions & 0 deletions .github/workflows/push-develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Develop branch build
on:
push:
branches:
- develop

jobs:
develop-build-job:
runs-on: ubuntu-latest
steps:
- name: Step 1 - Checkout repository code
uses: actions/checkout@v4

- name: Step 2 - Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'

- name: Step 3 - Cache Docker images.
uses: ScribeMD/[email protected]
with:
key: docker-${{ runner.os }}

- name: Step 4 - Build & Test
run: mvn clean verify -ntp -PIT

- name: Step 5 - Deploy Snapshot
run: ./scripts/mvn_deploy.sh
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
GPG_EXECUTABLE: gpg
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
GPG_OWNERTRUST: ${{ secrets.GPG_OWNERTRUST }}

- name: Step 6 - Upload coverage unittests reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
gcov_ignore: '!*datasafe-business*'
flags: unittests
verbose: true

- name: Step 7 - Upload coverage e2e tests reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
gcov_include: '*datasafe-business*'
flags: e2e_tests
verbose: true
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release to Maven Central
on:
push:
tags:
- v*

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Step 1 - Checkout repository code
uses: actions/checkout@v4

- name: Step 2 - Setup JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'

- name: Step 3 - Cache Docker images.
uses: ScribeMD/[email protected]
with:
key: docker-${{ runner.os }}

- name: Step 4 - Maven deploy release
run: ./scripts/mvn_deploy.sh
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
GPG_EXECUTABLE: gpg
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
GPG_OWNERTRUST: ${{ secrets.GPG_OWNERTRUST }}

# - name: Step 4 - Push JavaDoc to GitHub Pages
# run: ./scripts/push-javadoc-to-gh-pages.sh
11 changes: 0 additions & 11 deletions .travis/codecov_bash.sh

This file was deleted.

8 changes: 0 additions & 8 deletions .travis/deploy.sh

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[![Build Status](https://travis-ci.com/adorsys/datasafe.svg?branch=develop)](https://travis-ci.com/adorsys/datasafe)
[![codecov](https://codecov.io/gh/adorsys/datasafe/branch/develop/graph/badge.svg)](https://codecov.io/gh/adorsys/datasafe)
[![Maintainability](https://api.codeclimate.com/v1/badges/06ae7d4cafc3012cee85/maintainability)](https://codeclimate.com/github/adorsys/datasafe/maintainability)
[![Maintainability](https://codeclimate.com/github/adorsys/datasafe.png)](https://codeclimate.com/github/adorsys/datasafe/maintainability)

# Secure, Encrypted and Versioned Data Storage Library

Expand Down
2 changes: 1 addition & 1 deletion datasafe-business/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datasafe</artifactId>
<groupId>de.adorsys</groupId>
<version>2.0.2</version>
<version>2.0.2-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

@Slf4j
@RequiredArgsConstructor
public abstract class BaseE2ETest extends WithStorageProvider {
public abstract class BaseE2EIT extends WithStorageProvider {

protected static final String PRIVATE_COMPONENT = "private";
protected static final String PRIVATE_FILES_COMPONENT = PRIVATE_COMPONENT + "/files";
Expand Down
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 BaseE2EIT {

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 BaseE2EIT {

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 BaseE2EIT {

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 BaseE2EIT {

@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 BaseE2EIT {

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 BaseE2EIT {
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 @@ -8,7 +8,7 @@

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

class ProfileContainsDatasafeVersionTest extends BaseE2ETest {
class ProfileContainsDatasafeVersion2EIT extends BaseE2EIT {

@Test
@SneakyThrows
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
package de.adorsys.datasafe.business.impl.e2e;

import de.adorsys.datasafe.business.impl.service.DaggerDefaultDatasafeServices;
import de.adorsys.datasafe.business.impl.service.DefaultDatasafeServices;
import de.adorsys.datasafe.directory.impl.profile.config.DefaultDFSConfig;
Expand Down Expand Up @@ -32,7 +31,7 @@

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

class SchemeDelegationTest extends WithStorageProvider {
class SchemeDelegationIT extends WithStorageProvider {

private Path fsPath;
private Uri minioPath;
Expand Down Expand Up @@ -125,4 +124,4 @@ public AbsoluteLocation privateProfile(UserID forUser) {
);
}
}
}
}
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 BaseE2EIT {

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 BaseE2EIT {

private static final String MESSAGE_ONE = "Hello here 1";
private static final String MESSAGE_TWO = "Hello here 2";
Expand Down
2 changes: 1 addition & 1 deletion datasafe-cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>de.adorsys</groupId>
<artifactId>datasafe</artifactId>
<version>2.0.2</version>
<version>2.0.2-SNAPSHOT</version>
</parent>

<artifactId>datasafe-cli</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion datasafe-directory/datasafe-directory-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>de.adorsys</groupId>
<artifactId>datasafe-directory</artifactId>
<version>2.0.2</version>
<version>2.0.2-SNAPSHOT</version>
</parent>
<artifactId>datasafe-directory-api</artifactId>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion datasafe-directory/datasafe-directory-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>de.adorsys</groupId>
<artifactId>datasafe-directory</artifactId>
<version>2.0.2</version>
<version>2.0.2-SNAPSHOT</version>
</parent>
<artifactId>datasafe-directory-impl</artifactId>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion datasafe-directory/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datasafe</artifactId>
<groupId>de.adorsys</groupId>
<version>2.0.2</version>
<version>2.0.2-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion datasafe-encryption/datasafe-encryption-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>de.adorsys</groupId>
<artifactId>datasafe-encryption</artifactId>
<version>2.0.2</version>
<version>2.0.2-SNAPSHOT</version>
</parent>
<artifactId>datasafe-encryption-api</artifactId>
<dependencies>
Expand Down
Loading

0 comments on commit b768d53

Please sign in to comment.