This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix getIdentity result & getPath test
- Loading branch information
1 parent
c1ba174
commit 412c094
Showing
5 changed files
with
38 additions
and
7 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
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
24 changes: 24 additions & 0 deletions
24
...es/src/test/java/com/redhat/parodos/examples/move2kube/task/utils/Move2KubeUtilsTest.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,24 @@ | ||
package com.redhat.parodos.examples.move2kube.task.utils; | ||
|
||
import java.net.URISyntaxException; | ||
|
||
import com.redhat.parodos.examples.move2kube.utils.Move2KubeUtils; | ||
import org.junit.jupiter.api.Test; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
|
||
class Move2KubeUtilsTest { | ||
|
||
private static final String WORKSPACE_ID = "workspace-id"; | ||
|
||
private static final String PROJECT_ID = "project-id"; | ||
|
||
private static final String OUTPUT_ID = "output-id"; | ||
|
||
@Test | ||
void testGetPath() throws URISyntaxException { | ||
String expectedResponse = "http://test.com/workspaces/workspace-id/projects/project-id/outputs/output-id"; | ||
assertEquals(expectedResponse, Move2KubeUtils.getPath("http://test.com", WORKSPACE_ID, PROJECT_ID, OUTPUT_ID)); | ||
} | ||
|
||
} |