Ensure all http tests are run and fix broken tests
HttpClientTests were broken. This wasn't discovered since maven-surefire-plugin's by default only executes test classes matching **/*Test.java. Fix this by also including **/*.Tests.java and fix the failing tests. Change-Id: I487a30fb333de993a9f8d8fff491d3b0e7fb02cc Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
parent
f1b79c3c89
commit
80bf52dfe4
|
@ -134,6 +134,10 @@
|
|||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<argLine>-Djava.io.tmpdir=${project.build.directory} -Xmx300m</argLine>
|
||||
<includes>
|
||||
<include>**/*Test.java</include>
|
||||
<include>**/*Tests.java</include>
|
||||
</includes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
|
|
@ -303,7 +303,7 @@ public void testListRemote_Dumb_NeedsAuth() throws Exception {
|
|||
fail("connection opened even info/refs needs auth basic");
|
||||
} catch (TransportException err) {
|
||||
String exp = dumbAuthBasicURI + ": "
|
||||
+ JGitText.get().notAuthorized;
|
||||
+ JGitText.get().noCredentialsProvider;
|
||||
assertEquals(exp, err.getMessage());
|
||||
}
|
||||
} finally {
|
||||
|
@ -347,7 +347,7 @@ public void testListRemote_Smart_UploadPackNeedsAuth() throws Exception {
|
|||
fail("connection opened even though service disabled");
|
||||
} catch (TransportException err) {
|
||||
String exp = smartAuthBasicURI + ": "
|
||||
+ JGitText.get().notAuthorized;
|
||||
+ JGitText.get().noCredentialsProvider;
|
||||
assertEquals(exp, err.getMessage());
|
||||
}
|
||||
} finally {
|
||||
|
@ -369,7 +369,8 @@ public void testListRemote_Smart_UploadPackDisabled() throws Exception {
|
|||
t.openFetch();
|
||||
fail("connection opened even though service disabled");
|
||||
} catch (TransportException err) {
|
||||
String exp = smartAuthNoneURI + ": Git access forbidden";
|
||||
String exp = smartAuthNoneURI + ": "
|
||||
+ JGitText.get().serviceNotEnabledNoName;
|
||||
assertEquals(exp, err.getMessage());
|
||||
}
|
||||
} finally {
|
||||
|
|
Loading…
Reference in New Issue