aboutsummaryrefslogtreecommitdiffstats
path: root/it
diff options
context:
space:
mode:
Diffstat (limited to 'it')
-rw-r--r--it/pom.xml2
-rw-r--r--it/src/test/java/com/sonarsource/scanner/it/ScannerTest.java10
2 files changed, 9 insertions, 3 deletions
diff --git a/it/pom.xml b/it/pom.xml
index 71da0cc..2ad29b7 100644
--- a/it/pom.xml
+++ b/it/pom.xml
@@ -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