Skip to content

Commit

Permalink
Add new use case
Browse files Browse the repository at this point in the history
  • Loading branch information
cstamas committed Oct 28, 2024
1 parent 5ca6af2 commit befe2ed
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,30 @@ void useCaseBndPlugin() throws Exception {
}
}

/**
* Make Quarkus TLS Registry first level dependency and make sure expected stuff are present.
*/
@Test
void useCaseQuarkusTlsRegistry() throws Exception {
File testDir = ResourceExtractor.simpleExtractResources(getClass(), "/mng-8347-quarkus-tls-registry");

Verifier verifier = new Verifier(testDir.getAbsolutePath());
verifier.addCliArgument("-V");
verifier.addCliArgument("dependency:3.8.0:tree");
verifier.addCliArgument("-Dmaven.repo.local.tail=" + testDir + "/local-repo");
verifier.addCliArgument("-Dmaven.repo.local.tail.ignoreAvailability");
verifier.execute();
verifier.verifyErrorFreeLog();

// this really boils down to "transitive" vs "non-transitive"
List<String> l = verifier.loadLines(verifier.getLogFileName(), "UTF-8");
if (matchesVersionRange("[,4.0.0-alpha-11)")) {
a(l, "[INFO] | | | \\- com.fasterxml.jackson.core:jackson-core:jar:2.16.1:compile");
} else {
a(l, "[INFO] | | | \\- com.fasterxml.jackson.core:jackson-core:jar:2.17.2:compile");
}
}

/**
* Assert true, log lines contains string...
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>

<groupId>org.apache.maven.it.mresolver614</groupId>
<artifactId>root</artifactId>
<version>1.0.0</version>

<dependencies>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-tls-registry</artifactId>
<version>3.15.1</version>
</dependency>
</dependencies>
</project>

0 comments on commit befe2ed

Please sign in to comment.