diff options
author | Stefan Seelmann <mail@stefan-seelmann.de> | 2021-05-03 22:46:47 +0300 |
---|---|---|
committer | Stefan Seelmann <mail@stefan-seelmann.de> | 2021-05-03 22:46:47 +0300 |
commit | 90dba262315f37051ab0207c57c8e9c0c57e6501 (patch) | |
tree | 1013c195cfbd8928d9be57f4b2ddf14723cd81a1 | |
parent | 91aa1c9748cefffcd690e66faa453cbe533a6cee (diff) |
Run some tests on all servers
8 files changed, 24 insertions, 17 deletions
diff --git a/tests/test.integration.core/src/main/java/org/apache/directory/studio/test/integration/core/DirectoryApiConnectionWrapperTest.java b/tests/test.integration.core/src/main/java/org/apache/directory/studio/test/integration/core/DirectoryApiConnectionWrapperTest.java index 3b2744ed8..6ebf8fcf3 100644 --- a/tests/test.integration.core/src/main/java/org/apache/directory/studio/test/integration/core/DirectoryApiConnectionWrapperTest.java +++ b/tests/test.integration.core/src/main/java/org/apache/directory/studio/test/integration/core/DirectoryApiConnectionWrapperTest.java @@ -101,6 +101,7 @@ import org.apache.directory.studio.test.integration.junit5.LdapServerType; import org.apache.directory.studio.test.integration.junit5.LdapServersSource; import org.apache.directory.studio.test.integration.junit5.SkipTestIfLdapServerIsNotAvailableInterceptor; import org.apache.directory.studio.test.integration.junit5.TestLdapServer; +import org.apache.directory.studio.test.integration.junit5.LdapServersSource.Mode; import org.apache.mina.util.AvailablePortFinder; import org.eclipse.core.runtime.NullProgressMonitor; import org.junit.jupiter.api.AfterAll; @@ -897,7 +898,7 @@ public class DirectoryApiConnectionWrapperTest @ParameterizedTest - @LdapServersSource + @LdapServersSource(mode = Mode.All) public void testPasswordModifyRequestExtendedOperation_AdminChangesUserPassword( TestLdapServer ldapServer ) throws Exception { @@ -939,7 +940,7 @@ public class DirectoryApiConnectionWrapperTest @ParameterizedTest - @LdapServersSource(except = LdapServerType.Fedora389ds, reason = "389ds requires secure connection") + @LdapServersSource(mode = Mode.All, except = LdapServerType.Fedora389ds, reason = "389ds requires secure connection") public void testPasswordModifyRequestExtendedOperation_UserChangesOwnPassword( TestLdapServer ldapServer ) throws Exception { diff --git a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/EntryEditorTest.java b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/EntryEditorTest.java index a3e8792f0..6c38518cf 100644 --- a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/EntryEditorTest.java +++ b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/EntryEditorTest.java @@ -578,7 +578,7 @@ public class EntryEditorTest extends AbstractTestBase * Test adding, editing and deleting of attributes with binary option in the entry editor. */ @ParameterizedTest - @LdapServersSource + @LdapServersSource(mode = Mode.All) public void testCertificateValueEditor( TestLdapServer server ) throws Exception { connectionsViewBot.createTestConnection( server ); @@ -907,7 +907,7 @@ public class EntryEditorTest extends AbstractTestBase * Test for DIRSTUDIO-1249, DIRSTUDIO-1267: userSMIMECertificate is a binary attribute. */ @ParameterizedTest - @LdapServersSource + @LdapServersSource(mode = Mode.All) public void testHexEditor( TestLdapServer server ) throws Exception { Connection connection = connectionsViewBot.createTestConnection( server ); diff --git a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/ErrorHandlingTest.java b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/ErrorHandlingTest.java index c92089ccb..29a8a64cf 100644 --- a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/ErrorHandlingTest.java +++ b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/ErrorHandlingTest.java @@ -28,6 +28,7 @@ import static org.hamcrest.MatcherAssert.assertThat; import org.apache.directory.studio.test.integration.junit5.LdapServerType; import org.apache.directory.studio.test.integration.junit5.LdapServersSource; import org.apache.directory.studio.test.integration.junit5.TestLdapServer; +import org.apache.directory.studio.test.integration.junit5.LdapServersSource.Mode; import org.apache.directory.studio.test.integration.ui.bots.DeleteDialogBot; import org.apache.directory.studio.test.integration.ui.bots.EntryEditorBot; import org.apache.directory.studio.test.integration.ui.bots.ErrorDialogBot; @@ -66,7 +67,7 @@ public class ErrorHandlingTest extends AbstractTestBase @ParameterizedTest - @LdapServersSource + @LdapServersSource(mode = Mode.All) public void testDeleteObjectClassAttributeShouldFail( TestLdapServer server ) throws Exception { connectionsViewBot.createTestConnection( server ); @@ -92,7 +93,7 @@ public class ErrorHandlingTest extends AbstractTestBase @ParameterizedTest - @LdapServersSource + @LdapServersSource(mode = Mode.All) public void testDeleteRdnAttributeShouldFail( TestLdapServer server ) throws Exception { connectionsViewBot.createTestConnection( server ); @@ -138,7 +139,7 @@ public class ErrorHandlingTest extends AbstractTestBase @ParameterizedTest - @LdapServersSource + @LdapServersSource(mode = Mode.All) public void testDeleteOperationalAttributeShouldFail( TestLdapServer server ) throws Exception { connectionsViewBot.createTestConnection( server ); diff --git a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/ImportExportTest.java b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/ImportExportTest.java index ff49b4073..fcf5291d2 100644 --- a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/ImportExportTest.java +++ b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/ImportExportTest.java @@ -62,6 +62,7 @@ import org.apache.directory.studio.test.integration.junit5.ApacheDirectoryServer import org.apache.directory.studio.test.integration.junit5.LdapServerType; import org.apache.directory.studio.test.integration.junit5.LdapServersSource; import org.apache.directory.studio.test.integration.junit5.TestLdapServer; +import org.apache.directory.studio.test.integration.junit5.LdapServersSource.Mode; import org.apache.directory.studio.test.integration.ui.bots.BotUtils; import org.apache.directory.studio.test.integration.ui.bots.DeleteDialogBot; import org.apache.directory.studio.test.integration.ui.bots.EntryEditorBot; @@ -681,7 +682,7 @@ public class ImportExportTest extends AbstractTestBase * Test LDIF with several modifications. */ @ParameterizedTest - @LdapServersSource + @LdapServersSource(mode = Mode.All) public void testLdifModification( TestLdapServer server ) throws Exception { connectionsViewBot.createTestConnection( server ); diff --git a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/MoveEntryTest.java b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/MoveEntryTest.java index 7719c3a72..d1d55adc6 100644 --- a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/MoveEntryTest.java +++ b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/MoveEntryTest.java @@ -36,6 +36,7 @@ import org.apache.directory.api.ldap.model.name.Dn; import org.apache.directory.studio.test.integration.junit5.LdapServerType; import org.apache.directory.studio.test.integration.junit5.LdapServersSource; import org.apache.directory.studio.test.integration.junit5.TestLdapServer; +import org.apache.directory.studio.test.integration.junit5.LdapServersSource.Mode; import org.apache.directory.studio.test.integration.ui.bots.MoveEntriesDialogBot; import org.apache.directory.studio.test.integration.ui.bots.SelectDnDialogBot; import org.junit.jupiter.params.ParameterizedTest; @@ -72,7 +73,7 @@ public class MoveEntryTest extends AbstractTestBase @ParameterizedTest - @LdapServersSource + @LdapServersSource(mode = Mode.All) public void testMoveDown( TestLdapServer server ) throws Exception { Dn dnToMove = DN_WITH_ESCAPED_CHARACTERS_BACKSLASH_PREFIXED; diff --git a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/NewConnectionWizardTest.java b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/NewConnectionWizardTest.java index f6334d3e0..918a14c78 100644 --- a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/NewConnectionWizardTest.java +++ b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/NewConnectionWizardTest.java @@ -39,6 +39,7 @@ import org.apache.directory.studio.connection.core.ConnectionCorePlugin; import org.apache.directory.studio.connection.core.ConnectionManager; import org.apache.directory.studio.connection.core.ConnectionParameter.AuthenticationMethod; import org.apache.directory.studio.test.integration.junit5.LdapServersSource; +import org.apache.directory.studio.test.integration.junit5.LdapServersSource.Mode; import org.apache.directory.studio.test.integration.junit5.TestLdapServer; import org.apache.directory.studio.test.integration.ui.bots.NewConnectionWizardBot; import org.apache.mina.util.AvailablePortFinder; @@ -379,7 +380,7 @@ public class NewConnectionWizardTest extends AbstractTestBase * Tests the "Check Network Parameter" button. */ @ParameterizedTest - @LdapServersSource + @LdapServersSource(mode = Mode.All) public void testCheckNetworkParameterButtonNotOK( TestLdapServer server ) { // enter connection parameter with invalid port diff --git a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/NewEntryWizardTest.java b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/NewEntryWizardTest.java index a9ffa6884..c14599f8f 100644 --- a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/NewEntryWizardTest.java +++ b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/NewEntryWizardTest.java @@ -37,6 +37,7 @@ import org.apache.directory.studio.ldapbrowser.core.model.IBrowserConnection; import org.apache.directory.studio.test.integration.junit5.LdapServerType; import org.apache.directory.studio.test.integration.junit5.LdapServersSource; import org.apache.directory.studio.test.integration.junit5.TestLdapServer; +import org.apache.directory.studio.test.integration.junit5.LdapServersSource.Mode; import org.apache.directory.studio.test.integration.ui.bots.CertificateEditorDialogBot; import org.apache.directory.studio.test.integration.ui.bots.DnEditorDialogBot; import org.apache.directory.studio.test.integration.ui.bots.EditAttributeWizardBot; @@ -307,7 +308,7 @@ public class NewEntryWizardTest extends AbstractTestBase @ParameterizedTest - @LdapServersSource + @LdapServersSource(mode = Mode.All) public void testCreateReferralEntry( TestLdapServer server ) throws Exception { // set ManageDsaIT control @@ -453,7 +454,7 @@ public class NewEntryWizardTest extends AbstractTestBase * Create an entry with sharp in DN: cn=\#123456. */ @ParameterizedTest - @LdapServersSource + @LdapServersSource(mode = Mode.All) public void testCreateEntryWithSharp( TestLdapServer server ) throws Exception { connectionsViewBot.createTestConnection( server ); @@ -528,7 +529,7 @@ public class NewEntryWizardTest extends AbstractTestBase * Create and browse entry with multi-valued RDN with same attribute type. */ @ParameterizedTest - @LdapServersSource(except = LdapServerType.OpenLdap, reason = "Multi-valued RDN with same attribute is not supported by OpenLDAP") + @LdapServersSource(mode = Mode.All, except = LdapServerType.OpenLdap, reason = "Multi-valued RDN with same attribute is not supported by OpenLDAP") public void testCreateMvRdnWithSameAttribute( TestLdapServer server ) throws Exception { connectionsViewBot.createTestConnection( server ); diff --git a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/RenameEntryTest.java b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/RenameEntryTest.java index fe587f789..2e679b507 100644 --- a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/RenameEntryTest.java +++ b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/RenameEntryTest.java @@ -36,6 +36,7 @@ import org.apache.directory.api.ldap.model.name.Rdn; import org.apache.directory.studio.test.integration.junit5.LdapServerType; import org.apache.directory.studio.test.integration.junit5.LdapServersSource; import org.apache.directory.studio.test.integration.junit5.TestLdapServer; +import org.apache.directory.studio.test.integration.junit5.LdapServersSource.Mode; import org.apache.directory.studio.test.integration.ui.bots.RenameEntryDialogBot; import org.junit.jupiter.params.ParameterizedTest; @@ -86,7 +87,7 @@ public class RenameEntryTest extends AbstractTestBase * Renames a RDN with escaped characters. */ @ParameterizedTest - @LdapServersSource + @LdapServersSource(mode = Mode.All) public void testRenameRdnWithEscapedCharacters( TestLdapServer server ) throws Exception { Dn oldDn = DN_WITH_ESCAPED_CHARACTERS_BACKSLASH_PREFIXED; @@ -116,7 +117,7 @@ public class RenameEntryTest extends AbstractTestBase * Rename an entry with leading sharp in DN: cn=\#123456. */ @ParameterizedTest - @LdapServersSource + @LdapServersSource(mode = Mode.All) public void testRenameRdnWithLeadingSharp( TestLdapServer server ) throws Exception { Dn oldDn = DN_WITH_LEADING_SHARP_BACKSLASH_PREFIXED; @@ -147,7 +148,7 @@ public class RenameEntryTest extends AbstractTestBase * Rename an entry with leading and trailing space in RDN. */ @ParameterizedTest - @LdapServersSource(except = LdapServerType.Fedora389ds, reason = "Leading and trailing space is trimmed by 389ds") + @LdapServersSource(mode = Mode.All, except = LdapServerType.Fedora389ds, reason = "Leading and trailing space is trimmed by 389ds") public void testRenameRdnWithTrailingSpace( TestLdapServer server ) throws Exception { Dn oldDn = DN_WITH_LEADING_SHARP_BACKSLASH_PREFIXED; @@ -179,7 +180,7 @@ public class RenameEntryTest extends AbstractTestBase * Rename an entry with leading and trailing space in RDN. */ @ParameterizedTest - @LdapServersSource(except = LdapServerType.Fedora389ds, reason = "Leading and trailing space is trimmed by 389ds") + @LdapServersSource(mode = Mode.All, except = LdapServerType.Fedora389ds, reason = "Leading and trailing space is trimmed by 389ds") public void testRenameRdnWithLeadingAndTrailingSpace( TestLdapServer server ) throws Exception { Dn oldDn = DN_WITH_LEADING_SHARP_BACKSLASH_PREFIXED; |