Skip to content

Commit

Permalink
Make build-cache-maven-extension IT tests version insensitive (#1062)
Browse files Browse the repository at this point in the history
  • Loading branch information
romain-grecourt authored Aug 20, 2024
1 parent ac24713 commit 3147b63
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.helidon.build-tools.cache.tests</groupId>
<artifactId>test1</artifactId>
<version>@project.version@</version>
<version>1.0.0-SNAPSHOT</version>
<name>Test State 1</name>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>io.helidon.build-tools.cache.tests</groupId>
<artifactId>test2-parent</artifactId>
<version>@project.version@</version>
<version>1.0.0-SNAPSHOT</version>
</parent>
<artifactId>test2-module1</artifactId>
<name>Test State 2 Module 1</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>io.helidon.build-tools.cache.tests</groupId>
<artifactId>test2-parent</artifactId>
<version>@project.version@</version>
<version>1.0.0-SNAPSHOT</version>
</parent>
<artifactId>test2-module2</artifactId>
<name>Test State 2 Module 2</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<groupId>io.helidon.build-tools.cache.tests</groupId>
<artifactId>test2-parent</artifactId>
<packaging>pom</packaging>
<version>@project.version@</version>
<version>1.0.0-SNAPSHOT</version>
<name>Test State Parent</name>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.helidon.build-tools.cache.tests</groupId>
<artifactId>test3</artifactId>
<version>@project.version@</version>
<version>1.0.0-SNAPSHOT</version>
<name>Test State 3</name>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ void test3(String basedir) throws IOException {
assertThat(greetings, fileExists());

Path stagingDir = basepath.resolve("staging");
Path artifactDir = stagingDir.resolve("io/helidon/build-tools/cache/tests/test3/4.0.0-SNAPSHOT");
Path artifactDir = stagingDir.resolve("io/helidon/build-tools/cache/tests/test3/1.0.0-SNAPSHOT");

Path mavenMetadataFile = artifactDir.resolve("maven-metadata.xml");
assertThat(mavenMetadataFile, fileExists());
Expand All @@ -87,7 +87,7 @@ void test3(String basedir) throws IOException {
.map(XMLElement::value)
.orElseThrow(() -> new IllegalStateException("Unable to get timestamp"));

String version = "4.0.0-" + timestamp + "-1";
String version = "1.0.0-" + timestamp + "-1";

List<String> files;
try (Stream<Path> dirStream = Files.list(artifactDir)) {
Expand Down

0 comments on commit 3147b63

Please sign in to comment.