-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(test): add compatibility test for DSP
- Loading branch information
1 parent
04c5f1b
commit 396a4e2
Showing
23 changed files
with
157 additions
and
885 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: "Run Nightly Tests" | ||
on: | ||
schedule: | ||
- "0 0 * * *" # run at 00:00 UTC | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow}}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
Run-Dsp-Compatibility-Test: | ||
name: "Run DSP Compatibility Test" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: eclipse-edc/.github/.github/actions/setup-build@main | ||
- name: DSP Compatibility | ||
run: | | ||
./gradlew -p system-tests/dsp-compatibility-tests test -DincludeTags="NightlyTest" -PverboseTest=true |
33 changes: 33 additions & 0 deletions
33
core/common/junit/src/main/java/org/eclipse/edc/junit/annotations/NightlyTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright (c) 2024 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.edc.junit.annotations; | ||
|
||
import org.junit.jupiter.api.Tag; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
/** | ||
* Annotation for Nightly testing. This is typically triggered by a nightly build action from CI. | ||
*/ | ||
@Target({ ElementType.TYPE }) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@IntegrationTest | ||
@Tag("NightlyTest") | ||
public @interface NightlyTest { | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
...sp-compatibility-tests/compatibility-test-runner/src/test/resources/docker.tck.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# | ||
# Copyright (c) 2024 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 | ||
# | ||
# | ||
# Contains sample configuration options | ||
dataspacetck.debug=true | ||
dataspacetck.dsp.local.connector=false | ||
dataspacetck.dsp.connector.agent.id=CONNECTOR_UNDER_TEST | ||
dataspacetck.dsp.connector.http.url=http://host.docker.internal:8282/api/dsp/ | ||
dataspacetck.dsp.connector.http.headers.authorization="{\"region\": \"any\", \"audience\": \"any\", \"clientId\":\"any\"}" | ||
dataspacetck.dsp.connector.negotiation.initiate.url=http://host.docker.internal:8687/tck/negotiations/requests | ||
dataspacetck.dsp.default.wait=10000000 | ||
# must be 0.0.0.0 for docker inet binding to work | ||
dataspacetck.callback.address=http://0.0.0.0:8083 | ||
# Sets the dataset and offer ids to use for contract negotiation scenarios | ||
CN_01_01_DATASETID=ACN0101 | ||
CN_01_01_OFFERID=CD123:ACN0101:456 | ||
CN_01_02_DATASETID=ACN0102 | ||
CN_01_02_OFFERID=CD123:ACN\ | ||
0102:456 | ||
CN_01_03_DATASETID=ACN0103 | ||
CN_01_03_OFFERID=CD123:ACN0103:456 | ||
CN_01_04_DATASETID=ACN0104 | ||
CN_01_04_OFFERID=CD123:ACN0104:456 | ||
CN_02_01_DATASETID=ACN0201 | ||
CN_02_01_OFFERID=CD123:ACN0201:456 | ||
CN_02_02_DATASETID=ACN0202 | ||
CN_02_02_OFFERID=CD123:ACN0202:456 | ||
CN_02_03_DATASETID=ACN0203 | ||
CN_02_03_OFFERID=CD123:ACN0203:456 | ||
CN_02_04_DATASETID=ACN0204 | ||
CN_02_04_OFFERID=CD123:ACN0204:456 | ||
CN_02_05_DATASETID=ACN0205 | ||
CN_02_05_OFFERID=CD123:ACN0205:456 | ||
CN_02_06_DATASETID=ACN0206 | ||
CN_02_06_OFFERID=CD123:ACN0206:456 | ||
CN_02_07_DATASETID=ACN0207 | ||
CN_02_07_OFFERID=CD123:ACN0207:456 | ||
CN_03_01_DATASETID=ACN0301 | ||
CN_03_01_OFFERID=CD123:ACN0301:456 | ||
CN_03_02_DATASETID=ACN0302 | ||
CN_03_02_OFFERID=CD123:ACN0302:456 | ||
CN_03_03_DATASETID=ACN0303 | ||
CN_03_03_OFFERID=CD123:ACN0303:456 | ||
CN_03_04_DATASETID=ACN0304 | ||
CN_03_04_OFFERID=CD123:ACN0304:456 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
...der-test/src/main/java/org/eclipse/edc/tck/dsp/controller/ContractNegotiationRequest.java
This file was deleted.
Oops, something went wrong.
66 changes: 0 additions & 66 deletions
66
...r-under-test/src/main/java/org/eclipse/edc/tck/dsp/controller/TckControllerExtension.java
This file was deleted.
Oops, something went wrong.
63 changes: 0 additions & 63 deletions
63
...tor-under-test/src/main/java/org/eclipse/edc/tck/dsp/controller/TckWebhookController.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.