Skip to content

Commit fb01b1f

Browse files
committed
Update Orchestrator and fix test
1 parent 1321206 commit fb01b1f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

it/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<!-- following properties must be set in command-line : sonar.runtimeVersion and sonarRunner.version -->
2828

2929
<maven.compiler.release>17</maven.compiler.release>
30-
<orchestrator.version>5.1.0.2274</orchestrator.version>
30+
<orchestrator.version>5.3.0.2465</orchestrator.version>
3131
</properties>
3232

3333
<dependencies>

it/src/test/java/com/sonarsource/scanner/it/ScannerTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public void should_use_environment_prop() {
190190

191191
assertThat(buildResult.isSuccess()).isFalse();
192192
assertThat(buildResult.getLogs())
193-
.contains("Failed to query server version: HTTP 404 Not Found");
193+
.contains("Failed to query server version: GET http://www.google.com/404/api/server/version failed with HTTP 404 Not Found");
194194
}
195195

196196
@Test
@@ -207,7 +207,7 @@ public void should_skip_analysis() {
207207
@Test
208208
public void should_fail_if_unable_to_connect() {
209209
SonarScanner build = newScannerWithToken(new File("projects/simple-sample"), analysisToken)
210-
//env property should be overridden
210+
//env property should be overridden by command line property
211211
.setEnvironmentVariable("SONAR_HOST_URL", "http://www.google.com")
212212
.setProperty("sonar.host.url", "http://www.google.com/404");
213213

@@ -216,7 +216,7 @@ public void should_fail_if_unable_to_connect() {
216216
assertThat(result.isSuccess()).isFalse();
217217
// with the following message
218218
assertThat(result.getLogs())
219-
.contains("Failed to query server version: HTTP 404 Not Found");
219+
.contains("Failed to query server version: GET http://www.google.com/404/api/server/version failed with HTTP 404 Not Found");
220220
}
221221

222222
// SONARPLUGINS-3574

0 commit comments

Comments
 (0)