]> source.dussan.org Git - jgit.git/commitdiff
Fix HTTP unit tests 04/4704/1
authorShawn O. Pearce <spearce@spearce.org>
Thu, 1 Dec 2011 01:40:10 +0000 (17:40 -0800)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 1 Dec 2011 01:40:10 +0000 (17:40 -0800)
I modified the way errors are returned, and this particular test is
now getting a different access denied response. The new text happens
to be what I intended to have here, so update the test.

Change-Id: I53f8410ca0a52755d80473cd5cbcdb4d8502febf

org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/HttpClientTests.java

index 35989e88eb6a2393d6c622484368d6c733c2bb9f..8641c3ad0fdc9d06f19c9c00699b1e2a8c3e479f 100644 (file)
@@ -368,8 +368,7 @@ public class HttpClientTests extends HttpTestCase {
                                t.openFetch();
                                fail("connection opened even though service disabled");
                        } catch (TransportException err) {
-                               String exp = smartAuthNoneURI
-                                               + ": git-upload-pack not permitted";
+                               String exp = smartAuthNoneURI + ": Git access forbidden";
                                assertEquals(exp, err.getMessage());
                        }
                } finally {