@@ -202,23 +202,20 @@ public void simple_analysis_with_proxy_auth() throws Exception {
202202 SimpleScanner scanner = new SimpleScanner ();
203203
204204 Map <String , String > params = new HashMap <>();
205- // By default no request to localhost will use proxy
206- params .put ("http.nonProxyHosts" , "" );
207- params .put ("http.proxyHost" , "localhost" );
208- params .put ("http.proxyPort" , "" + httpProxyPort );
205+ params .put ("sonar.scanner.proxyHost" , "localhost" );
206+ params .put ("sonar.scanner.proxyPort" , "" + httpProxyPort );
209207
210208 BuildResult buildResult = scanner .executeSimpleProject (project ("js-sample" ), ORCHESTRATOR .getServer ().getUrl (), params , Map .of ());
211209 assertThat (buildResult .getLastStatus ()).isEqualTo (1 );
212210 assertThat (buildResult .getLogs ()).contains ("Error status returned by url" , ": 407" );
213211 assertThat (seenByProxy ).isEmpty ();
214212
215- params .put ("http .proxyUser" , PROXY_USER );
216- params .put ("http .proxyPassword" , PROXY_PASSWORD );
213+ params .put ("sonar.scanner .proxyUser" , PROXY_USER );
214+ params .put ("sonar.scanner .proxyPassword" , PROXY_PASSWORD );
217215 buildResult = scanner .executeSimpleProject (project ("js-sample" ), ORCHESTRATOR .getServer ().getUrl (), params , Map .of ());
218216 assertThat (seenByProxy ).isNotEmpty ();
219- if (ORCHESTRATOR .getServer ().version ().isGreaterThanOrEquals (6 , 1 )) {
220- assertThat (buildResult .getLastStatus ()).isZero ();
221- }
217+ System .out .println (buildResult .getLogs ());
218+ assertThat (buildResult .getLastStatus ()).isZero ();
222219 }
223220
224221}
0 commit comments