Skip to content

Commit

Permalink
Merge pull request #71 from eclipse-tractusx/release/0.5.1
Browse files Browse the repository at this point in the history
Release version 0.5.1
  • Loading branch information
paullatzelsperger authored Jul 8, 2024
2 parents 4c7efe9 + f0fc446 commit 40288a1
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ public String name() {
@Override
public void initialize(ServiceExtensionContext context) {
webService.registerResource(CONTEXT_NAME, new ManagementApiController(store));

webService.registerResource(CONTEXT_NAME, new AuthenticationRequestFilter(registry, CONTEXT_NAME));
webService.registerResource(CONTEXT_NAME, new AuthenticationRequestFilter(registry, "management-api"));
}

}
Expand Down
4 changes: 2 additions & 2 deletions charts/bdrs-server-memory/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.0.5
version: 0.5.1
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.0.5"
appVersion: "0.5.1"
home: https://github.com/eclipse-tractusx/bpn-did-resolution-service/tree/main/charts/bdrs-server
sources:
- https://github.com/eclipse-tractusx/bpn-did-resolution-service/tree/main/charts/bdrs-server
4 changes: 2 additions & 2 deletions charts/bdrs-server-memory/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# bdrs-server-memory

![Version: 0.0.5](https://img.shields.io/badge/Version-0.0.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.0.5](https://img.shields.io/badge/AppVersion-0.0.5-informational?style=flat-square)
![Version: 0.5.1](https://img.shields.io/badge/Version-0.5.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.5.1](https://img.shields.io/badge/AppVersion-0.5.1-informational?style=flat-square)

A Helm chart for the Tractus-X BPN-DID Resolution Service (only in-memory persistence)

Expand All @@ -25,7 +25,7 @@ Simply execute these commands on a shell:

```shell
helm repo add tractusx https://eclipse-tractusx.github.io/charts/dev
helm install my-release tractusx-edc/bdrs-server --version 0.0.5 \
helm install my-release tractusx-edc/bdrs-server --version 0.5.1 \
-f <path-to>/additional-values-file.yaml \
--wait-for-jobs --timeout=120s --dependency-update
```
Expand Down
4 changes: 2 additions & 2 deletions charts/bdrs-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.0.5
version: 0.5.1
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.0.5"
appVersion: "0.5.1"
home: https://github.com/eclipse-tractusx/bpn-did-resolution-service/tree/main/charts/bdrs-server
sources:
- https://github.com/eclipse-tractusx/bpn-did-resolution-service/tree/main/charts/bdrs-server
Expand Down
4 changes: 2 additions & 2 deletions charts/bdrs-server/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# bdrs-server

![Version: 0.0.5](https://img.shields.io/badge/Version-0.0.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.0.5](https://img.shields.io/badge/AppVersion-0.0.5-informational?style=flat-square)
![Version: 0.5.1](https://img.shields.io/badge/Version-0.5.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.5.1](https://img.shields.io/badge/AppVersion-0.5.1-informational?style=flat-square)

A Helm chart for the Tractus-X BPN-DID Resolution Service

Expand All @@ -22,7 +22,7 @@ Simply execute these commands on a shell:

```shell
helm repo add tractusx https://eclipse-tractusx.github.io/charts/dev
helm install my-release tractusx-edc/bdrs-server --version 0.0.5 \
helm install my-release tractusx-edc/bdrs-server --version 0.5.1 \
-f <path-to>/additional-values-file.yaml \
--wait-for-jobs --timeout=120s --dependency-update
```
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# SPDX-License-Identifier: Apache-2.0
#
group=org.eclipse.tractusx
version=0.0.5
version=0.5.1
# these define the versions of the EDC Build Plugin, the Annotation Processor and the Metamodel.
# generally this should match the version of EDC in gradle/libs.versions.toml
edcGradlePluginsVersion=0.5.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.EmptySource;
import org.junit.jupiter.params.provider.ValueSource;

import java.io.ByteArrayInputStream;
import java.io.IOException;
Expand Down Expand Up @@ -113,6 +116,28 @@ void verifyManagementApi() throws IOException {
assertThat(result.get(BPN2)).isEqualTo(UPDATED_DID2);
}

@ParameterizedTest
@ValueSource(strings = "invalid-key")
@EmptySource
void verifyManagementApi_invalidAuthHeader(String invalidAuthHeader) {
seedServer(BPN1, DID1);
seedServer(BPN2, DID2);

given().baseUri(MANAGEMENT_ENDPOINT.toString())
.headers("x-api-key", invalidAuthHeader)
.contentType(JSON)
.then()
.statusCode(401);
}

@Test
void verifyManagementApi_missingAuthHeader() {
given().baseUri(MANAGEMENT_ENDPOINT.toString())
.contentType(JSON)
.then()
.statusCode(401);
}

@BeforeEach
void setUp() {
mapper = new ObjectMapper();
Expand Down

0 comments on commit 40288a1

Please sign in to comment.