diff options
author | Frank Becker | 2014-04-21 14:21:38 +0000 |
---|---|---|
committer | Frank Becker | 2014-05-01 18:04:23 +0000 |
commit | 0b7e999d7f580408625d23596533327de4b8ce20 (patch) | |
tree | 651170ca2881eb1f76a1062604708f5ea37b22f0 /org.eclipse.mylyn.bugzilla.tests | |
parent | b024cac5adf1d5db280988b77e9d5af082d931b2 (diff) | |
download | org.eclipse.mylyn.tasks-0b7e999d7f580408625d23596533327de4b8ce20.tar.gz org.eclipse.mylyn.tasks-0b7e999d7f580408625d23596533327de4b8ce20.tar.xz org.eclipse.mylyn.tasks-0b7e999d7f580408625d23596533327de4b8ce20.zip |
433095: update Bugzilla instances to 4.5.4, 4.4.4, 4.2.9, and 4.0.13
Change-Id: I6dc70a5798f0c17681a243bd1f9fc50fc585645d
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=433095
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.tests')
2 files changed, 9 insertions, 4 deletions
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaXmlRpcClientTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaXmlRpcClientTest.java index 9c8259492..f67d02d69 100644 --- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaXmlRpcClientTest.java +++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaXmlRpcClientTest.java @@ -27,7 +27,6 @@ import org.eclipse.core.runtime.SubProgressMonitor; import org.eclipse.mylyn.bugzilla.tests.AbstractBugzillaTest; import org.eclipse.mylyn.bugzilla.tests.support.BugzillaFixture; import org.eclipse.mylyn.bugzilla.tests.support.BugzillaHarness; -import org.eclipse.mylyn.bugzilla.tests.support.BugzillaTestSupportUtil; import org.eclipse.mylyn.commons.net.AuthenticationType; import org.eclipse.mylyn.commons.net.WebLocation; import org.eclipse.mylyn.internal.bugzilla.core.AbstractBugzillaOperation; @@ -51,7 +50,7 @@ import org.eclipse.mylyn.tasks.core.sync.SubmitJob; /** * Tests should be run against Bugzilla 3.6 or greater - * + * * @author Frank Becker */ public class BugzillaXmlRpcClientTest extends AbstractBugzillaTest { @@ -374,6 +373,7 @@ public class BugzillaXmlRpcClientTest extends AbstractBugzillaTest { return; } else { IProgressMonitor monitor = new NullProgressMonitor(); + bugzillaClient.logout(monitor); int uID = bugzillaClient.login(monitor); assertEquals(2, uID); Object[] userList0 = bugzillaClient.getUserInfoFromIDs(monitor, new Integer[] { 1, 2 }); @@ -474,7 +474,7 @@ public class BugzillaXmlRpcClientTest extends AbstractBugzillaTest { /* * Copy and paste this block to test valid transitions for different start statuses - * + * * We check that only valid operations are returned. There is no * way to determine (using the operation 'reopen') whether "REOPEN" or "UNCONFIRMED" * is valid. diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/support/BugzillaTestSupportUtil.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/support/BugzillaTestSupportUtil.java index 8ecc3d012..696f57856 100644 --- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/support/BugzillaTestSupportUtil.java +++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/support/BugzillaTestSupportUtil.java @@ -17,7 +17,12 @@ public abstract class BugzillaTestSupportUtil { public static boolean isInvalidLogon(CoreException e) { return e.getMessage().indexOf("invalid username or password") != -1 - || e.getMessage().indexOf("invalid login or password") != -1; + || e.getMessage().indexOf("invalid login or password") != -1 + || e.getMessage().indexOf("untrusted authentication request:") != -1 + || e.getMessage().indexOf("An unknown repository error has occurred: file is empty") != -1 + || e.getMessage() + .indexOf( + "file is empty: The file you are trying to attach is empty, does not exist, or you don't have permission to read it.") != -1; } }
\ No newline at end of file |