Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
feat: bump edc-extensions version for new MDS fields (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
kulgg authored Jan 23, 2024
1 parent ee2040a commit e2b4996
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 21 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
#### Major

#### Minor
- Add new MDS fields and migrate existing MDS asset keys to mobilityDCAT-AP

### Deployment Migration Notes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,28 +214,28 @@ void testAvailableFilters_noFilter() {
var today = OffsetDateTime.now().withNano(0);

var assetJsonLd1 = getAssetJsonLd("my-asset-1", Map.of(
Prop.Mds.DATA_CATEGORY, "my-category-1",
Prop.Mds.TRANSPORT_MODE, "MY-TRANSPORT-MODE-1",
Prop.Mds.DATA_SUBCATEGORY, "MY-SUBCATEGORY-2",
Prop.Mds.DATA_MODEL, "my-data-model",
Prop.Mds.GEO_REFERENCE_METHOD, "my-geo-ref"
Prop.Mobility.DATA_CATEGORY, "my-category-1",
Prop.Mobility.TRANSPORT_MODE, "MY-TRANSPORT-MODE-1",
Prop.Mobility.DATA_SUBCATEGORY, "MY-SUBCATEGORY-2",
Prop.Mobility.DATA_MODEL, "my-data-model",
Prop.Mobility.GEO_REFERENCE_METHOD, "my-geo-ref"
));

var assetJsonLd2 = getAssetJsonLd("my-asset-2", Map.of(
Prop.Mds.DATA_CATEGORY, "my-category-1",
Prop.Mds.TRANSPORT_MODE, "my-transport-mode-2",
Prop.Mds.DATA_SUBCATEGORY, "MY-SUBCATEGORY-2"
Prop.Mobility.DATA_CATEGORY, "my-category-1",
Prop.Mobility.TRANSPORT_MODE, "my-transport-mode-2",
Prop.Mobility.DATA_SUBCATEGORY, "MY-SUBCATEGORY-2"
));

var assetJsonLd3 = getAssetJsonLd("my-asset-3", Map.of(
Prop.Mds.DATA_CATEGORY, "my-category-1",
Prop.Mds.TRANSPORT_MODE, "MY-TRANSPORT-MODE-1",
Prop.Mds.DATA_SUBCATEGORY, "my-subcategory-1"
Prop.Mobility.DATA_CATEGORY, "my-category-1",
Prop.Mobility.TRANSPORT_MODE, "MY-TRANSPORT-MODE-1",
Prop.Mobility.DATA_SUBCATEGORY, "my-subcategory-1"
));

var assetJsonLd4 = getAssetJsonLd("my-asset-4", Map.of(
Prop.Mds.DATA_CATEGORY, "my-category-1",
Prop.Mds.TRANSPORT_MODE, ""
Prop.Mobility.DATA_CATEGORY, "my-category-1",
Prop.Mobility.TRANSPORT_MODE, ""
));

createOrganizationMetadata(dsl, "MDSL123456AA", "Test Org");
Expand Down Expand Up @@ -348,12 +348,12 @@ void testAvailableFilters_withFilter() {
var today = OffsetDateTime.now().withNano(0);

var assetJsonLd1 = getAssetJsonLd("my-asset-1", Map.of(
Prop.Mds.DATA_CATEGORY, "my-category",
Prop.Mds.DATA_SUBCATEGORY, "my-subcategory"
Prop.Mobility.DATA_CATEGORY, "my-category",
Prop.Mobility.DATA_SUBCATEGORY, "my-subcategory"
));

var assetJsonLd2 = getAssetJsonLd("my-asset-2", Map.of(
Prop.Mds.DATA_SUBCATEGORY, "my-other-subcategory"
Prop.Mobility.DATA_SUBCATEGORY, "my-other-subcategory"
));

createConnector(dsl, today, "https://my-connector/api/dsp");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void testQueryConnectors() {
var today = OffsetDateTime.now().withNano(0);

var assetJsonLd = getAssetJsonLd("my-asset-1", Map.of(
Prop.Mds.DATA_CATEGORY, "my-category",
Prop.Mobility.DATA_CATEGORY, "my-category",
Prop.Dcterms.TITLE, "My Asset 1"
));

Expand All @@ -89,7 +89,7 @@ void testQueryConnectorDetails() {
var today = OffsetDateTime.now().withNano(0);

var assetJsonLd = getAssetJsonLd("my-asset-1", Map.of(
Prop.Mds.DATA_CATEGORY, "my-category",
Prop.Mobility.DATA_CATEGORY, "my-category",
Prop.Dcterms.TITLE, "My Asset 1"
));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ void testQueryDataOfferDetails() {
var today = OffsetDateTime.now().withNano(0);

var assetJsonLd1 = getAssetJsonLd("my-asset-1", Map.of(
Prop.Mds.DATA_CATEGORY, "my-category",
Prop.Mobility.DATA_CATEGORY, "my-category",
Prop.Dcterms.TITLE, "My Asset 1"
));

var assetJsonLd2 = getAssetJsonLd("my-asset-2", Map.of(
Prop.Mds.DATA_CATEGORY, "my-category-2",
Prop.Mobility.DATA_CATEGORY, "my-category-2",
Prop.Dcterms.TITLE, "My Asset 2"
));

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sovityBrokerServerGroup=de.sovity.broker
sovityBrokerServerVersion=0.0.1-SNAPSHOT

# Sovity EDC Extensions (for common api model)
sovityEdcExtensionsVersion=7.1.1
sovityEdcExtensionsVersion=0.0.1-SNAPSHOT
sovityEdcExtensionGroup=de.sovity.edc.ext
sovityEdcGroup=de.sovity.edc

Expand Down

0 comments on commit e2b4996

Please sign in to comment.