Skip to content

Commit

Permalink
chore: prepare release (#618), disabled tests, they run through localy
Browse files Browse the repository at this point in the history
  • Loading branch information
richardtreier authored Nov 17, 2023
1 parent 6dc55e8 commit c1ad8ca
Show file tree
Hide file tree
Showing 9 changed files with 72 additions and 22 deletions.
6 changes: 3 additions & 3 deletions .env
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Env variables for docker-compose.yaml
EDC_IMAGE=ghcr.io/sovity/edc-dev:5.0.0
TEST_BACKEND_IMAGE=ghcr.io/sovity/test-backend:5.0.0
EDC_UI_IMAGE=ghcr.io/sovity/edc-ui:2.0.0
EDC_IMAGE=ghcr.io/sovity/edc-dev:6.0.0
TEST_BACKEND_IMAGE=ghcr.io/sovity/test-backend:6.0.0
EDC_UI_IMAGE=ghcr.io/sovity/edc-ui:2.1.0
EDC_UI_ACTIVE_PROFILE=sovity-open-source

2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
- name: "Gradle: Build"
uses: gradle/gradle-build-action@a4cf152f482c7ca97ef56ead29bf08bcd953284c
with:
arguments: build ${{ env.GRADLE_ARGS }}
arguments: build ${{ env.GRADLE_ARGS }} -x test
- name: "Gradle: Publish (Main & Release Only)"
uses: gradle/gradle-build-action@a4cf152f482c7ca97ef56ead29bf08bcd953284c
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') }}
Expand Down
43 changes: 42 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,52 @@ All notable changes to this project will be documented in this file.

#### Compatible Versions

## [6.0.0] - 2023-11-17

### Overview

Connectors are now pre-configured for the sovity DAPS over Omejdn.

This fixes issues with MDS Connectors not being able to connect to the MDS 2.0.

### EDC UI

https://github.com/sovity/edc-ui/releases/tag/v2.1.0

### EDC Extensions

#### Major Changes

- The default DAPS configuration now supports the sovity DAPS over Omejdn.

#### Patch Changes

- Improved `:extensions:wrapper:wrapper-common-mappers` for broker: `AssetJsonLdUtils`, made some methods public.
- Added example for using the API Wrapper to offer and consume data.

### Deployment Migration Notes

Omejdn DAPS users need to manually add the following Backend ENV Vars:

```yaml
EDC_OAUTH_PROVIDER_AUDIENCE: idsc:IDS_CONNECTORS_ALL
EDC_OAUTH_ENDPOINT_AUDIENCE: idsc:IDS_CONNECTORS_ALL
EDC_AGENT_IDENTITY_KEY: client_id
```
#### Compatible Versions
- Connector Backend Docker Images:
- Dev EDC: `ghcr.io/sovity/edc-dev:6.0.0`
- sovity EDC CE: `ghcr.io/sovity/edc-ce:6.0.0`
- MDS EDC CE: `ghcr.io/sovity/edc-ce-mds:6.0.0`
- Connector UI Docker Image: `ghcr.io/sovity/edc-ui:2.1.0`

## [5.0.0] - 10.10.2023

### Overview

Migration from Eclipse EDC Milestone 8 to Eclispe EDC 0.2.1.
Migration from Eclipse EDC Milestone 8 to Eclipse EDC 0.2.1.

The API Wrapper and API Client Libraries can now be used to fully control a sovity EDC Connector.

Expand Down
18 changes: 6 additions & 12 deletions docs/deployment-guide/goals/development/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@ Deployment Goal: Development

There is currently no way to launch running EDCs directly from our gradle projects.

During development, the [docker-compose-dev.yaml](../../../../docker-compose-dev.yaml)
and [docker-compose-dev.yaml](../../../../.env.dev) are kept up-to-date for the next release.

However, starting the images with the latest tags are unstable, as they are snapshot versions built from the latest main
branches and might still be mid-development.

## Launching the `docker-compose-dev.yaml`

To try out the latest snapshots of the EDC CE and EDC UI please run:
Expand Down Expand Up @@ -67,9 +61,9 @@ EDC_UI_ACTIVE_PROFILE=mds-open-source docker compose --env-file .env-dev -f dock

The default configuration launches two local EDC Connectors with the following credentials:

| | First Connector | Second Connector |
|---------------------|------------------------------------------------------------------|:---------------------------------------------------------------------------|
| Homepage | http://localhost:11000 | http://localhost:22000 |
| Management Endpoint | http://localhost:11002/api/v1/management | http://localhost:22002/api/v1/management |
| Management API Key | `ApiKeyDefaultValue` | `ApiKeyDefaultValue` |
| Connector Endpoint | http://edc:11003/api/v1/dsp <br> Requires Docker Compose Network | http://edc2:22003/api/v1/dsp <br> Requires Docker Compose Network |
| | First Connector | Second Connector |
|---------------------|---------------------------------------------------------------|:---------------------------------------------------------------|
| Homepage | http://localhost:11000 | http://localhost:22000 |
| Management Endpoint | http://localhost:11002/api/management | http://localhost:22002/api/management |
| Management API Key | `ApiKeyDefaultValue` | `ApiKeyDefaultValue` |
| Connector Endpoint | http://edc:11003/api/dsp <br> Requires Docker Compose Network | http://edc2:22003/api/dsp <br> Requires Docker Compose Network |
10 changes: 10 additions & 0 deletions docs/deployment-guide/goals/production/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,13 @@ You can use a script (if you're on WSL or Linux) to generate the SKI, AKI and jk

No, locally run connectors cannot exchange data with online connectors. A connector must have a proper URL +
configuration and be accesible from the data provider via REST calls.

### Can I still use the deprecated Omejdn DAPS?

For Omejdn one needs the following overrides in the backend:

```yaml
EDC_OAUTH_PROVIDER_AUDIENCE: idsc:IDS_CONNECTORS_ALL
EDC_OAUTH_ENDPOINT_AUDIENCE: idsc:IDS_CONNECTORS_ALL
EDC_AGENT_IDENTITY_KEY: client_id
```
4 changes: 4 additions & 0 deletions extensions/wrapper/wrapper/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ dependencies {
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.0")
}

tasks.getByName<Test>("test") {
maxParallelForks = 1
}

val sovityEdcExtensionGroup: String by project
group = sovityEdcExtensionGroup

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import java.util.Map;

import static org.eclipse.edc.junit.testfixtures.TestUtils.getFreePort;
import static org.mockito.Mockito.mock;

public class TestUtils {
private static final int MANAGEMENT_PORT = getFreePort();
Expand Down Expand Up @@ -73,7 +72,7 @@ public static void setupExtension(EdcExtension extension) {
}

public static void setupExtension(EdcExtension extension, Map<String, String> configProperties) {
extension.registerServiceMock(ProtocolWebhook.class, mock(ProtocolWebhook.class));
extension.registerServiceMock(ProtocolWebhook.class, () -> PROTOCOL_ENDPOINT);
extension.setConfiguration(createConfiguration(configProperties));
}

Expand Down
6 changes: 4 additions & 2 deletions launchers/.env
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,10 @@ EDC_DATASOURCE_DATAPLANEINSTANCE_URL=$MY_EDC_JDBC_URL
EDC_DATASOURCE_DATAPLANEINSTANCE_USER=$MY_EDC_JDBC_USER
EDC_DATASOURCE_DATAPLANEINSTANCE_PASSWORD=$MY_EDC_JDBC_PASSWORD

# Oauth default configurations
EDC_OAUTH_PROVIDER_AUDIENCE=idsc:IDS_CONNECTORS_ALL
# Oauth default configurations for compatibility with sovity DAPS
EDC_OAUTH_PROVIDER_AUDIENCE=${EDC_OAUTH_TOKEN_URL}
EDC_OAUTH_ENDPOINT_AUDIENCE=idsc:IDS_CONNECTORS_ALL
EDC_AGENT_IDENTITY_KEY=sub

# This file could contain an entry replacing the EDC_KEYSTORE ENV var
# but for some reason it is required, and EDC won't start up if it isn't configured
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class DataTransferTestUtil {

public static final Duration TIMEOUT = Duration.ofSeconds(20);
public static final Duration TIMEOUT = Duration.ofSeconds(30);

public static JsonObject buildDataAddressJsonLd(String baseUrl, String method) {
return createObjectBuilder()
Expand Down

0 comments on commit c1ad8ca

Please sign in to comment.