Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support resolving platform catalog for any known stream
- Loading branch information
1 parent
4805844
commit 44751d6
Showing
7 changed files
with
185 additions
and
84 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
61 changes: 61 additions & 0 deletions
61
...devtools-testing/src/test/java/io/quarkus/devtools/project/create/ArchivedStreamTest.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,61 @@ | ||
package io.quarkus.devtools.project.create; | ||
|
||
import io.quarkus.devtools.testing.registry.client.TestRegistryClientBuilder; | ||
import io.quarkus.maven.ArtifactCoords; | ||
import io.quarkus.registry.catalog.PlatformStreamCoords; | ||
import java.nio.file.Path; | ||
import java.util.List; | ||
import org.junit.jupiter.api.BeforeAll; | ||
import org.junit.jupiter.api.Test; | ||
|
||
public class ArchivedStreamTest extends MultiplePlatformBomsTestBase { | ||
|
||
private static final String PLATFORM_KEY = "io.test.platform"; | ||
|
||
@BeforeAll | ||
public static void setup() throws Exception { | ||
TestRegistryClientBuilder.newInstance() | ||
//.debug() | ||
.baseDir(configDir()) | ||
// registry | ||
.newRegistry("registry.test.io") | ||
// platform key | ||
.newPlatform(PLATFORM_KEY) | ||
.newStream("1.0") | ||
// 1.0.4 release | ||
.newRelease("1.1.1") | ||
.quarkusVersion("1.1.1") | ||
// default bom including quarkus-core + essential metadata | ||
.addCoreMember().release() | ||
// foo platform member | ||
.newMember("acme-a-bom").addExtension("ext-a").release() | ||
.stream().platform() | ||
.newArchivedStream("0.5") | ||
.newArchivedRelease("0.5.1") | ||
.quarkusVersion("0.5.1") | ||
// default bom including quarkus-core + essential metadata | ||
.addCoreMember().release() | ||
// foo platform member | ||
.newMember("acme-a-bom").addExtension("ext-a").release() | ||
.registry() | ||
.clientBuilder() | ||
.build(); | ||
|
||
enableRegistryClient(); | ||
} | ||
|
||
protected String getMainPlatformKey() { | ||
return PLATFORM_KEY; | ||
} | ||
|
||
@Test | ||
public void createUsingStream2_0() throws Exception { | ||
final Path projectDir = newProjectDir("created-using-archive-stream-0.5"); | ||
createProject(projectDir, new PlatformStreamCoords(null, "0.5"), List.of("ext-a")); | ||
|
||
assertModel(projectDir, | ||
List.of(mainPlatformBom(), platformMemberBomCoords("acme-a-bom")), | ||
List.of(new ArtifactCoords("io.test.platform", "ext-a", null)), | ||
"0.5.1"); | ||
} | ||
} |
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
Oops, something went wrong.