diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2024-05-03 11:28:33 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2024-05-03 13:07:43 +0200 |
commit | 6ffdbb689027f9458a06c28c260bf33570e52434 (patch) | |
tree | c9c59137d6e334bdc79bb6c6d2bcd1170b2df285 /it | |
parent | 69d6ba48c07b69ddd6cce7361573d3ab46517fb0 (diff) | |
download | sonar-scanner-cli-6ffdbb689027f9458a06c28c260bf33570e52434.tar.gz sonar-scanner-cli-6ffdbb689027f9458a06c28c260bf33570e52434.zip |
SCANCLI-145 Update to the latest build
Diffstat (limited to 'it')
-rw-r--r-- | it/pom.xml | 2 | ||||
-rw-r--r-- | it/src/test/java/com/sonarsource/scanner/it/ScannerTest.java | 10 |
2 files changed, 9 insertions, 3 deletions
@@ -62,7 +62,7 @@ <dependency> <groupId>org.assertj</groupId> <artifactId>assertj-core</artifactId> - <version>3.12.2</version> + <version>3.24.2</version> </dependency> </dependencies> diff --git a/it/src/test/java/com/sonarsource/scanner/it/ScannerTest.java b/it/src/test/java/com/sonarsource/scanner/it/ScannerTest.java index 899c03c..9129ce2 100644 --- a/it/src/test/java/com/sonarsource/scanner/it/ScannerTest.java +++ b/it/src/test/java/com/sonarsource/scanner/it/ScannerTest.java @@ -188,7 +188,10 @@ public class ScannerTest extends ScannerTestCase { assertThat(buildResult.isSuccess()).isFalse(); assertThat(buildResult.getLogs()) - .contains("SonarQube server [http://from-env.org] can not be reached"); + .containsAnyOf( + "No such host is known (from-env.org)", // Windows + "from-env.org: Name or service not known" // Linux + ); } @Test @@ -214,7 +217,10 @@ public class ScannerTest extends ScannerTestCase { assertThat(result.isSuccess()).isFalse(); // with the following message assertThat(result.getLogs()) - .contains("SonarQube server [http://foo] can not be reached"); + .containsAnyOf( + "No such host is known (foo)", // Windows + "foo: No address associated with hostname" // Linux + ); } // SONARPLUGINS-3574 |