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 166129 Details for
Bug 302654
support for Bugzilla 3.6
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]
patch
302654.txt (text/plain), 2.86 KB, created by
Frank Becker
on 2010-04-26 15:57:01 EDT
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Frank Becker
Created:
2010-04-26 15:57:01 EDT
Size:
2.86 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.mylyn.bugzilla.tests >Index: src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaXMLRPCTest.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaXMLRPCTest.java,v >retrieving revision 1.5 >diff -u -r1.5 BugzillaXMLRPCTest.java >--- src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaXMLRPCTest.java 26 Apr 2010 19:17:30 -0000 1.5 >+++ src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaXMLRPCTest.java 26 Apr 2010 19:52:54 -0000 >@@ -16,9 +16,11 @@ > > import junit.framework.TestCase; > >+import org.apache.xmlrpc.XmlRpcException; > import org.eclipse.mylyn.bugzilla.tests.support.BugzillaFixture; > import org.eclipse.mylyn.commons.net.AuthenticationType; > import org.eclipse.mylyn.commons.net.WebLocation; >+import org.eclipse.mylyn.internal.bugzilla.core.BugzillaVersion; > import org.eclipse.mylyn.internal.bugzilla.core.service.BugzillaXmlRpcClient; > > /** >@@ -30,15 +32,8 @@ > public class BugzillaXMLRPCTest extends TestCase { > private BugzillaXmlRpcClient bugzillaClient; > >-// private static String TEST_REPO = "http://.../Bugzilla36noRPC"; >-// private static String TEST_REPO = "http://mylyn.eclipse.org/bugs36"; >- > @Override > public void setUp() throws Exception { >-// webLocation.setCredentials(AuthenticationType.REPOSITORY, "user", "password"); >-// webLocation.setCredentials(AuthenticationType.HTTP, "user", "password"); >-// WebLocation webLocation = new WebLocation(BugzillaTestConstants.TEST_BUGZILLA_HEAD_URL + "/xmlrpc.cgi"); >- > WebLocation webLocation = new WebLocation(BugzillaFixture.current().getRepositoryUrl() + "/xmlrpc.cgi"); > webLocation.setCredentials(AuthenticationType.REPOSITORY, "tests@mylyn.eclipse.org", "mylyntest"); > bugzillaClient = new BugzillaXmlRpcClient(webLocation); >@@ -65,4 +60,27 @@ > int i = 9; > i++; > } >+ >+ @SuppressWarnings("unused") >+ public void testxmlrpcInstalled() throws Exception { >+ int uID = bugzillaClient.login(); >+ assertEquals(2, uID); >+ BugzillaFixture.current().getBugzillaVersion(); >+ if (BugzillaFixture.current().getBugzillaVersion().compareTo(BugzillaVersion.BUGZILLA_3_6) == 0) { >+ uID = -1; >+ WebLocation webLocation = new WebLocation(BugzillaFixture.current().getRepositoryUrl() >+ + "noxmlrpc/xmlrpc.cgi"); >+ webLocation.setCredentials(AuthenticationType.REPOSITORY, "tests@mylyn.eclipse.org", "mylyntest"); >+ BugzillaXmlRpcClient bugzillaClientNoXMLRPC = new BugzillaXmlRpcClient(webLocation); >+ bugzillaClientNoXMLRPC.setContentTypeCheckingEnabled(true); >+ try { >+ uID = bugzillaClientNoXMLRPC.login(); >+ fail("Never reach this! We should get an XmlRpcException"); >+ } catch (XmlRpcException e) { >+ assertEquals("The server returned an unexpected content type: 'text/html; charset=UTF-8'", >+ e.getMessage()); >+ } >+ } >+ } >+ > }
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 302654
:
159063
|
159064
|
166121
|
166122
| 166129 |
166130
|
167561
|
167562
|
168437
|
168438