Skip to content

Commit

Permalink
build(deps): upgrade EDC to milestone-9
Browse files Browse the repository at this point in the history
  • Loading branch information
ndr-brt committed May 23, 2023
1 parent 6c77316 commit 151409f
Show file tree
Hide file tree
Showing 16 changed files with 48 additions and 42 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-test-connector-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
CONNECTOR_TAG: 0.0.1-milestone-8
CONNECTOR_TAG: 0.0.1-milestone-9

jobs:
build-and-push-image:
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.idea/
connector/.gradle
connector/build
coverage/
dist/
node_modules/
node_modules/
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This project aims to increase the level of abstraction, bringing the _low-level_
developers by providing an HTTP Client which is thoroughly tested and fully type-safe.

> Similarly to the **EDC Connector**, this library is at its early stage.
> It aims to maintain compatibility with the latest version of the _Connector_, currently `v0.0.1-milestone-8`.
> It aims to maintain compatibility with the latest version of the _Connector_, currently `0.0.1-milestone-9`.
> The compatibility is reflected in the library's versioning.
## Usage
Expand Down Expand Up @@ -53,8 +53,8 @@ object, representing a unique connector.

const context = edcConnectorClient.createContext("123456", {
default: "https://edc.think-it.io/api",
management: "https://edc.think-it.io/api/v1/data",
protocol: "https://edc.think-it.io/api/v1/ids",
management: "https://edc.think-it.io/management",
protocol: "https://edc.think-it.io/protocol",
public: "https://edc.think-it.io/public",
control: "https://edc.think-it.io/control",
});
Expand Down
4 changes: 2 additions & 2 deletions conf/consumer-connector.config/addresses.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"name": "consumer.edc.think-it.io",
"addresses": {
"default": "http://localhost:19191/api",
"data": "http://localhost:19193/api/v1/data",
"ids": "http://consumer-connector:9194/api/v1/ids",
"data": "http://localhost:19193/management",
"ids": "http://consumer-connector:9194/protocol",
"public": "http://localhost:19291/public",
"control": "http://localhost:19292/control"
}
Expand Down
7 changes: 4 additions & 3 deletions conf/consumer-connector.config/configuration.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
edc.ids.id=urn:connector:consumer-connector
ids.webhook.address=http://consumer-connector:9194

edc.dsp.callback.address=http://consumer-connector:9194/protocol

web.http.port=9191
web.http.path=/api
Expand All @@ -8,10 +9,10 @@ web.http.control.port=9192
web.http.control.path=/control

web.http.management.port=9193
web.http.management.path=/api/v1/data
web.http.management.path=/management

web.http.protocol.port=9194
web.http.protocol.path=/api/v1/ids
web.http.protocol.path=/protocol

edc.api.control.auth.apikey.value=123456

Expand Down
4 changes: 2 additions & 2 deletions conf/provider-connector.config/addresses.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"name": "provider.edc.think-it.io",
"addresses": {
"default": "http://localhost:29191/api",
"data": "http://localhost:29193/api/v1/data",
"ids": "http://provider-connector:9194/api/v1/ids",
"data": "http://localhost:29193/management",
"ids": "http://provider-connector:9194/protocol",
"public": "http://localhost:29291/public",
"control": "http://localhost:29292/control"
}
Expand Down
6 changes: 3 additions & 3 deletions conf/provider-connector.config/configuration.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
edc.ids.id=urn:connector:provider-connector
ids.webhook.address=http://provider-connector:9194
edc.dsp.callback.address=http://provider-connector:9194/protocol

web.http.port=9191
web.http.path=/api
Expand All @@ -8,10 +8,10 @@ web.http.control.port=9192
web.http.control.path=/control

web.http.management.port=9193
web.http.management.path=/api/v1/data
web.http.management.path=/management

web.http.protocol.port=9194
web.http.protocol.path=/api/v1/ids
web.http.protocol.path=/protocol

edc.api.control.auth.apikey.value=123456

Expand Down
10 changes: 2 additions & 8 deletions connector/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,14 @@ plugins {

repositories {
mavenCentral()
maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots/")
}
maven {
url = uri("https://maven.iais.fraunhofer.de/artifactory/eis-ids-public/")
}
}

val edcGroupId = "org.eclipse.edc"
val edcVersion = "0.0.1-milestone-8"
val edcVersion = "0.0.1-milestone-9"

dependencies {
implementation("${edcGroupId}:control-plane-core:${edcVersion}")
implementation("${edcGroupId}:ids:${edcVersion}")
implementation("${edcGroupId}:dsp:${edcVersion}")
implementation("${edcGroupId}:configuration-filesystem:${edcVersion}")
implementation("${edcGroupId}:vault-filesystem:${edcVersion}")
implementation("${edcGroupId}:iam-mock:${edcVersion}")
Expand Down
Binary file modified connector/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion connector/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
6 changes: 6 additions & 0 deletions connector/gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,12 @@ set -- \
org.gradle.wrapper.GradleWrapperMain \
"$@"

# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi

# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
Expand Down
14 changes: 8 additions & 6 deletions connector/gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@rem limitations under the License.
@rem

@if "%DEBUG%" == "" @echo off
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
Expand All @@ -25,7 +25,7 @@
if "%OS%"=="Windows_NT" setlocal

set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
if "%DIRNAME%"=="" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

Expand All @@ -40,7 +40,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome

set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto execute
if %ERRORLEVEL% equ 0 goto execute

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Expand Down Expand Up @@ -75,13 +75,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar

:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
if %ERRORLEVEL% equ 0 goto mainEnd

:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%

:mainEnd
if "%OS%"=="Windows_NT" endlocal
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.9"

services:
consumer-connector:
image: ghcr.io/think-it-labs/edc-connector-client/test-connector:0.0.1-milestone-8
build: connector
platform: ${DOCKER_PLATFORM:-linux/amd64}
ports:
- "19191:9191" # connector default
Expand All @@ -21,7 +21,7 @@ services:
- "host.docker.internal:host-gateway"

provider-connector:
image: ghcr.io/think-it-labs/edc-connector-client/test-connector:0.0.1-milestone-8
build: connector
platform: ${DOCKER_PLATFORM:-linux/amd64}
ports:
- "29191:9191" # connector default
Expand Down
8 changes: 4 additions & 4 deletions tests/controllers/management.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ describe("DataController", () => {
const apiToken = "123456";
const consumer: Addresses = {
default: "http://localhost:19191/api",
management: "http://localhost:19193/api/v1/data",
protocol: "http://consumer-connector:9194/api/v1/ids",
management: "http://localhost:19193/management",
protocol: "http://consumer-connector:9194/protocol",
public: "http://localhost:19291/public",
control: "http://localhost:19292/control",
};
const provider: Addresses = {
default: "http://localhost:29191/api",
management: "http://localhost:29193/api/v1/data",
protocol: "http://provider-connector:9194/api/v1/ids",
management: "http://localhost:29193/management",
protocol: "http://provider-connector:9194/protocol",
public: "http://localhost:29291/public",
control: "http://localhost:29292/control",
};
Expand Down
4 changes: 2 additions & 2 deletions tests/controllers/observability.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ describe("ObservabilityController", () => {
const apiToken = "123456";
const addresses: Addresses = {
default: "http://localhost:19191/api",
management: "http://localhost:19193/api/v1/data",
protocol: "http://consumer-connector:9194/api/v1/ids",
management: "http://localhost:19193/management",
protocol: "http://consumer-connector:9194/protocol",
public: "http://localhost:19291/public",
control: "http://localhost:19292/control",
};
Expand Down
8 changes: 4 additions & 4 deletions tests/controllers/public.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ describe("PublicController", () => {
const apiToken = "123456";
const consumer: Addresses = {
default: "http://localhost:19191/api",
management: "http://localhost:19193/api/v1/data",
protocol: "http://consumer-connector:9194/api/v1/ids",
management: "http://localhost:19193/management",
protocol: "http://consumer-connector:9194/protocol",
public: "http://localhost:19291/public",
control: "http://localhost:19292/control",
};
const provider: Addresses = {
default: "http://localhost:29191/api",
management: "http://localhost:29193/api/v1/data",
protocol: "http://provider-connector:9194/api/v1/ids",
management: "http://localhost:29193/management",
protocol: "http://provider-connector:9194/protocol",
public: "http://localhost:29291/public",
control: "http://localhost:29292/control",
};
Expand Down

0 comments on commit 151409f

Please sign in to comment.