turns out we never exposed the ability to specify the custom URL.

So no backward compatibility provision is needed.
Also in this change, I stopped exposin the password. See the code comment for more details
This commit is contained in:
Kohsuke Kawaguchi
2013-01-05 17:10:24 -08:00
parent cbaca87bbc
commit 13158a28e1
2 changed files with 16 additions and 10 deletions

View File

@@ -18,7 +18,7 @@ public class GitHubTest extends TestCase {
}
public void testGitHubServerWithoutProtocol() throws Exception {
GitHub hub = GitHub.connect("https://enterprise.kohsuke.org/api/v3", "kohsuke", "token", "password");
GitHub hub = GitHub.connect("enterprise.kohsuke.org", "kohsuke", "token", "password");
assertEquals("https://enterprise.kohsuke.org/api/v3/test", hub.getApiURL("/test").toString());
}