-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: fix backend issues with policies and dsp endpoints/prepared v4.0.1 #388
Merged
Merged
Changes from 8 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
90fc8bf
chore: fixed dev chart configs policies
matbmoser b6da909
chore: fixed typo with certification registry
matbmoser dfba27a
chore: updated edc api version
matbmoser 567df75
chore: extention of challanges
matbmoser 6d0ff1a
chore: fixed link typo
matbmoser 032c2e9
fix: fixed issue with verification charts configuration
97f39a4
fix: removed assetid from transfer, so no error is raising
43be37e
fix: solved problem related to edc 0.7.3
f318a68
feat: fixed chart frontend ingress
53411b9
chore: updated annotations from frontend!
754fcec
chore: updated annotations from frontend!
6a9917f
chore: updated secret paths for association int env vault
8ed8158
chore: added compatibility matrix and fixed typos
14fe185
chore: added compatibility matrix and fixed typos
e1c2170
chore: added compatibility matrix and fixed typos
60bbaa6
chore: prepared release v4.0.1
2ac60a1
chore: updated values-int
da7c19b
chore: updated values-int
b13c627
chore: updated values-int
fdb99fd
chore: updated interoperability guide
7012a6e
feat: updated dash license to latest version
0853e76
fix: fixed typos in yaml files
9a6637a
feat: updated helm docs
485db41
chore(dpp-verification): updated image paths and removed typos
407f07d
feat(dpp-verification): updated verification images
8b5d05e
feat: prepared release user changelog
a0a8c20
chore: updated verification version to v2.1
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
98 changes: 98 additions & 0 deletions
98
dpp-backend/digitalproductpass/src/test/java/utils/CatenaXUtilTest.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,98 @@ | ||
/********************************************************************************* | ||
* | ||
* Tractus-X - Digital Product Pass Application | ||
* | ||
* Copyright (c) 2022, 2024 BMW AG | ||
* Copyright (c) 2022, 2024 Henkel AG & Co. KGaA | ||
* Copyright (c) 2023, 2024 CGI Deutschland B.V. & Co. KG | ||
* Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation | ||
* | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* 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. | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
* either express or implied. See the | ||
* License for the specific language govern in permissions and limitations | ||
* under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
********************************************************************************/ | ||
|
||
package utils; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import static org.junit.jupiter.api.Assertions.*; | ||
|
||
class CatenaXUtilTest { | ||
String edcUrlWithoutDsp = "https://edc-url.com/"; | ||
String edcUrlWithoutDspBar = "https://edc-url.com"; | ||
String edcUrlWithPathWithoutDsp = "https://edc-url.com/provider/"; | ||
String edcUrlWithPathWithoutDspBar = "https://edc-url.com/provider"; | ||
String edcUrlWithDsp = "https://edc-url.com"+CatenaXUtil.edcDataEndpoint; | ||
String edcUrlWithPathDsp = "https://edc-url.com/provider"+CatenaXUtil.edcDataEndpoint; | ||
String edcUrlWithBpnDsp = "https://edc-url.com/BPNL000000000000"+CatenaXUtil.edcDataEndpoint; | ||
String edcUrlWithBpnWithoutDsp = "https://edc-url.com/BPNL000000000000"; | ||
String edcUrlWithPort = "https://edc-url.com:8888/BPNL000000000000"; | ||
String edcUrlWithBpnWithoutDspMorePath = "https://edc-url.com/BPNL000000000000/this/is/more/path"; | ||
@Test | ||
void buildEdcUrlWithoutDsp() { | ||
String output = CatenaXUtil.buildDspEndpoint(edcUrlWithoutDsp); | ||
LogUtil.printTest("[CatenaXUtil.buildEdcUrlWithoutDsp] Input: ["+edcUrlWithoutDsp+"] Output: ["+output+"]"); | ||
assertEquals(edcUrlWithDsp, output); | ||
} | ||
@Test | ||
void buildEdcUrlWithoutDspBar() { | ||
String output = CatenaXUtil.buildDspEndpoint(edcUrlWithoutDspBar); | ||
LogUtil.printTest("[CatenaXUtil.buildEdcUrlWithoutDspBar] Input: ["+edcUrlWithoutDspBar+"] Output: ["+output+"]"); | ||
assertEquals(edcUrlWithDsp, output); | ||
} | ||
@Test | ||
void buildEdcUrlWithPathWithoutDsp() { | ||
String output = CatenaXUtil.buildDspEndpoint(edcUrlWithPathWithoutDsp); | ||
LogUtil.printTest("[CatenaXUtil.buildEdcUrlWithPathWithoutDsp] Input: ["+edcUrlWithPathWithoutDsp+"] Output: ["+output+"]"); | ||
assertEquals(edcUrlWithPathDsp, output); | ||
} | ||
|
||
@Test | ||
void buildEdcUrlWithPathWithoutDspBar() { | ||
String output = CatenaXUtil.buildDspEndpoint(edcUrlWithPathWithoutDspBar); | ||
LogUtil.printTest("[CatenaXUtil.buildEdcUrlWithPathWithoutDspBar] Input: ["+edcUrlWithPathWithoutDspBar+"] Output: ["+output+"]"); | ||
assertEquals(edcUrlWithPathDsp, output); | ||
} | ||
@Test | ||
void buildEdcUrlWithBpnDsp() { | ||
String output = CatenaXUtil.buildDspEndpoint(edcUrlWithBpnDsp); | ||
LogUtil.printTest("[CatenaXUtil.buildEdcUrlWithBpnDsp] Input: ["+edcUrlWithBpnDsp+"] Output: ["+output+"]"); | ||
assertEquals(edcUrlWithBpnDsp, output); | ||
} | ||
|
||
@Test | ||
void buildEdcUrlWithBpnWithoutDsp() { | ||
String output = CatenaXUtil.buildDspEndpoint(edcUrlWithBpnWithoutDsp); | ||
LogUtil.printTest("[CatenaXUtil.buildEdcUrlWithBpnWithoutDsp] Input: ["+edcUrlWithBpnWithoutDsp+"] Output: ["+output+"]"); | ||
assertEquals(edcUrlWithBpnDsp, output); | ||
} | ||
|
||
@Test | ||
void buildEdcUrlWithBpnWithoutDspMorePath() { | ||
String output = CatenaXUtil.buildDspEndpoint(edcUrlWithBpnWithoutDspMorePath); | ||
LogUtil.printTest("[CatenaXUtil.edcUrlWithBpnWithoutDspMorePath] Input: ["+edcUrlWithBpnWithoutDspMorePath+"] Output: ["+output+"]"); | ||
assertEquals(edcUrlWithBpnWithoutDspMorePath+CatenaXUtil.edcDataEndpoint,output); | ||
} | ||
@Test | ||
void buildEdcWithPort() { | ||
String output = CatenaXUtil.buildDspEndpoint(edcUrlWithPort); | ||
LogUtil.printTest("[CatenaXUtil.buildEdcWithPort] Input: ["+edcUrlWithPort+"] Output: ["+output+"]"); | ||
assertEquals(edcUrlWithPort+CatenaXUtil.edcDataEndpoint, output); | ||
} | ||
|
||
|
||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check notice
Code scanning / CodeQL
Unused classes and interfaces Note test