Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove private backend service #176

Merged
merged 2 commits into from
Apr 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 13 additions & 21 deletions .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ jobs:
outputs:
SONAR_TOKEN: ${{ steps.secret-presence.outputs.SONAR_TOKEN }}
steps:
-
name: Check whether secrets exist
- name: Check whether secrets exist
id: secret-presence
run: |
[ ! -z "${{ secrets.SONAR_TOKEN }}" ] && echo "::set-output name=SONAR_TOKEN::true"
Expand All @@ -60,19 +59,16 @@ jobs:
verify-formatting:
runs-on: ubuntu-latest
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v3.3.0

-
name: Set up JDK 11
- name: Set up JDK 11
uses: actions/setup-java@v3.10.0
with:
java-version: '11'
distribution: 'temurin'
cache: 'gradle'
-
name: Verify proper formatting
- name: Verify proper formatting
run: ./gradlew spotlessCheck

- name: Run Checkstyle
Expand All @@ -94,7 +90,7 @@ jobs:

unit-tests:
runs-on: ubuntu-latest
needs: [verify-formatting]
needs: [ verify-formatting ]
steps:
- name: Checkout
uses: actions/checkout@v3.3.0
Expand All @@ -111,7 +107,7 @@ jobs:

integration-tests:
runs-on: ubuntu-latest
needs: [verify-formatting]
needs: [ verify-formatting ]
steps:
- name: Checkout
uses: actions/checkout@v3.3.0
Expand All @@ -128,7 +124,7 @@ jobs:

api-tests:
runs-on: ubuntu-latest
needs: [verify-formatting]
needs: [ verify-formatting ]
steps:
- name: Checkout
uses: actions/checkout@v3.3.0
Expand All @@ -145,7 +141,7 @@ jobs:

end-to-end-tests:
runs-on: ubuntu-latest
needs: [verify-formatting]
needs: [ verify-formatting ]
steps:
- name: Checkout
uses: actions/checkout@v3.3.0
Expand All @@ -158,7 +154,7 @@ jobs:
cache: 'gradle'

- name: Run E2E tests
run: ./gradlew test -DincludeTags="EndToEndTest"
run: ./gradlew :edc-tests:runtime:build test -DincludeTags="EndToEndTest"

sonar:
needs: [ secret-presence, verify-formatting ]
Expand All @@ -167,28 +163,24 @@ jobs:
runs-on: ubuntu-latest
steps:
# Set-Up
-
name: Checkout
- name: Checkout
uses: actions/checkout@v3.3.0
with:
fetch-depth: 0
-
name: Set up JDK 11
- name: Set up JDK 11
uses: actions/setup-java@v3.10.0
with:
java-version: '11'
distribution: 'temurin'
cache: 'gradle'
-
name: Cache SonarCloud packages
- name: Cache SonarCloud packages
uses: actions/cache@v3
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
# Analyse
-
name: Build with Maven and analyze with Sonar
- name: Build with Maven and analyze with Sonar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Expand Down
5 changes: 3 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,9 @@ subprojects {
dockerFile.set(file("${project.projectDir}/src/main/docker/Dockerfile"))
images.add("${project.name}:${project.version}")
images.add("${project.name}:latest")
// uncomment the following line if building on Apple Silicon
// platform.set("linux/x86_64")
// specify platform with the -Dplatform flag:
if (System.getProperty("platform") != null)
platform.set(System.getProperty("platform"))
buildArgs.put("JAR", "build/libs/${project.name}.jar")
inputDir.set(file(project.projectDir))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@ dependencies:
repository: https://charts.bitnami.com/bitnami
condition: install.postgresql

- name: backend-service
version: 0.0.6
repository: https://denisneuling.github.io/cx-backend-service
alias: backend
condition: install.backendservice

# MinIo
- name: minio
alias: minio
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* Copyright (c) 2023 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0
*
* SPDX-License-Identifier: Apache-2.0
*
* Contributors:
* Bayerische Motoren Werke Aktiengesellschaft (BMW AG) - initial API and implementation
*
*/

package org.eclipse.tractusx.edc.tests;


import java.io.InputStream;
import java.util.List;

public interface BackendDataService {
List<String> list(String path);

boolean exists(String path);

byte[] get(String path);

void post(String path, InputStream inputStream, long length);

void post(String path, InputStream inputStream);

void post(String path, byte[] content);

void delete(String path);
}
Loading