Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 74667 Details for
Bug 197406
Create test case for HTTP authentication
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
test case
clipboard.txt (text/plain), 1.86 KB, created by
Steffen Pingel
on 2007-07-26 06:38:26 EDT
(
hide
)
Description:
test case
Filename:
MIME Type:
Creator:
Steffen Pingel
Created:
2007-07-26 06:38:26 EDT
Size:
1.86 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.mylyn.jira.tests >Index: src/org/eclipse/mylyn/jira/tests/JiraRpcClientTest.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/org.eclipse.mylyn.jira.tests/src/org/eclipse/mylyn/jira/tests/JiraRpcClientTest.java,v >retrieving revision 1.14 >diff -u -r1.14 JiraRpcClientTest.java >--- src/org/eclipse/mylyn/jira/tests/JiraRpcClientTest.java 10 Jul 2007 00:29:36 -0000 1.14 >+++ src/org/eclipse/mylyn/jira/tests/JiraRpcClientTest.java 26 Jul 2007 10:39:17 -0000 >@@ -436,4 +436,15 @@ > assertFalse(issue.isWatched()); > } > >+ public void testBasicAuth() throws Exception { >+ basicAuth(JiraTestConstants.JIRA_39_BASIC_AUTH_URL); >+ } >+ >+ private void basicAuth(String url) throws Exception { >+ Credentials credentials = TestUtil.readCredentials(PrivilegeLevel.GUEST); >+ Credentials httpCredentials = TestUtil.readCredentials(PrivilegeLevel.USER); >+ client = new JiraRpcClient(url, false, credentials.username, credentials.password, Proxy.NO_PROXY, httpCredentials.username, httpCredentials.password); >+ assertNotNull(client.getServerInfo()); >+ } >+ > } >Index: src/org/eclipse/mylyn/jira/tests/JiraTestConstants.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/org.eclipse.mylyn.jira.tests/src/org/eclipse/mylyn/jira/tests/JiraTestConstants.java,v >retrieving revision 1.6 >diff -u -r1.6 JiraTestConstants.java >--- src/org/eclipse/mylyn/jira/tests/JiraTestConstants.java 10 Jul 2007 00:29:36 -0000 1.6 >+++ src/org/eclipse/mylyn/jira/tests/JiraTestConstants.java 26 Jul 2007 10:39:17 -0000 >@@ -12,5 +12,7 @@ > > public static final String JIRA_39_URL = System.getProperty("jira.server.url", > "http://mylyn.eclipse.org/jira-enterprise-3.9"); >+ >+ public static final String JIRA_39_BASIC_AUTH_URL = JIRA_39_URL + "-basic-auth"; > > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 197406
: 74667 |
74668