Skip to content

Commit

Permalink
feat(test): add compatibility test for DSP
Browse files Browse the repository at this point in the history
  • Loading branch information
paullatzelsperger committed Dec 6, 2024
1 parent 04c5f1b commit 41f5df1
Show file tree
Hide file tree
Showing 41 changed files with 158 additions and 1,849 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/nightly-tests.yaml
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
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 {
}

Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ public <I extends RemoteMessage, R, E extends ErrorMessage> Response createResou

var token = request.getToken();
if (token == null) {
monitor.severe("DSP: No auth token provided - returning 401");
return unauthorized(request);
}

Expand Down
33 changes: 0 additions & 33 deletions extensions/tck-extension/build.gradle.kts

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 41f5df1

Please sign in to comment.