Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions opendj-server-legacy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,7 @@
</additionalClasspathElements>
<testSourceDirectory>src/test/java</testSourceDirectory>
<!-- <enableProcessChecker>all</enableProcessChecker>-->
<forkedProcessTimeoutInSeconds>900</forkedProcessTimeoutInSeconds>
<forkedProcessTimeoutInSeconds>2400</forkedProcessTimeoutInSeconds>
<forkedProcessExitTimeoutInSeconds>120</forkedProcessExitTimeoutInSeconds>
<excludes>
<exclude>org/opends/server/snmp/**</exclude>
Expand All @@ -1279,10 +1279,6 @@
<name>listener</name>
<value>org.opends.server.TestListener</value>
</property>
<property>
<name>excludegroups</name>
<value>slow</value>
</property>
<property>
<name>configfailurepolicy</name>
<value>skip</value>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*
* Copyright 2009-2010 Sun Microsystems, Inc.
* Portions Copyright 2011-2016 ForgeRock AS.
* Portions Copyright 2026 3A Systems, LLC
*/
package org.opends.server.replication.server;

Expand Down Expand Up @@ -206,6 +207,24 @@ public MonitorData getMonitorData()
return attributes;
}

/**
* Indicates whether this handler is served from the in-memory message
* queue, i.e. it is done catching up with the changelog DB.
* <p>
* Package private: allows tests to wait until a freshly connected peer
* will receive published updates through the in-memory queue path rather
* than re-read from the changelog DB.
*
* @return true when this handler follows the in-memory message queue
*/
boolean isFollowing()
{
synchronized (msgQueue)
{
return following;
}
}

/**
* Retrieves the name of this monitor provider. It should be unique among all
* monitor providers, including all instances of the same monitor provider.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*
* Copyright 2006-2008 Sun Microsystems, Inc.
* Portions Copyright 2011-2016 ForgeRock AS.
* Portions Copyright 2026 3A Systems, LLC
*/
package org.opends.server.core;

Expand Down Expand Up @@ -193,7 +194,7 @@ public void testAbandonInternal()
*
* @throws Exception If an unexpected problem occurs.
*/
@Test(groups = { "slow" })
@Test
public void testDisconnectInPreParse()
throws Exception
{
Expand Down Expand Up @@ -223,7 +224,7 @@ public void testDisconnectInPreParse()
*
* @throws Exception If an unexpected problem occurs.
*/
@Test(groups = { "slow" })
@Test
public void testNoSuchOperation()
throws Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*
* Copyright 2006-2008 Sun Microsystems, Inc.
* Portions Copyright 2011-2016 ForgeRock AS.
* Portions Copyright 2026 3A Systems, LLC
*/
package org.opends.server.core;

Expand Down Expand Up @@ -1435,7 +1436,7 @@ private CancelRequest newCancelRequest(String cancelReason)
*
* @throws Exception If an unexpected problem occurs.
*/
@Test(groups = "slow")
@Test
public void testCannotLockEntry() throws Exception
{
TestCaseUtils.initializeTestBackend(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*
* Copyright 2006-2010 Sun Microsystems, Inc.
* Portions Copyright 2011-2016 ForgeRock AS.
* Portions Copyright 2026 3A Systems, LLC
*/
package org.opends.server.core;

Expand Down Expand Up @@ -1481,7 +1482,7 @@ public void testRebindClearsAuthInfo()
*
* @throws Exception If an unexpected problem occurs.
*/
@Test(groups = "slow")
@Test
public void testSubtreeDeleteClearsAuthInfo()
throws Exception
{
Expand Down Expand Up @@ -1541,7 +1542,7 @@ public void testSubtreeDeleteClearsAuthInfo()
*
* @throws Exception If an unexpected problem occurs.
*/
@Test(groups = "slow")
@Test
public void testSubtreeModifyUpdatesAuthInfo()
throws Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*
* Copyright 2006-2008 Sun Microsystems, Inc.
* Portions Copyright 2011-2016 ForgeRock AS.
* Portions Copyright 2026 3A Systems, LLC
*/
package org.opends.server.core;

Expand Down Expand Up @@ -691,7 +692,7 @@ public void testCancelAfterOperation() throws Exception
*
* @throws Exception If an unexpected problem occurs.
*/
@Test(groups = { "slow" })
@Test
public void testCannotLockEntry() throws Exception
{
TestCaseUtils.initializeTestBackend(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*
* Copyright 2006-2011 Sun Microsystems, Inc.
* Portions Copyright 2011-2016 ForgeRock AS.
* Portions Copyright 2026 3A Systems, LLC
*/
package org.opends.server.core;

Expand Down Expand Up @@ -2651,7 +2652,7 @@ public void testCancelAfterOperation(String baseDN)
*
* @throws Exception If an unexpected problem occurs.
*/
@Test(dataProvider = "baseDNs", groups = { "slow" })
@Test(dataProvider = "baseDNs")
public void testCannotLockEntry(String baseDN)
throws Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*
* Copyright 2006-2008 Sun Microsystems, Inc.
* Portions Copyright 2011-2016 ForgeRock AS.
* Portions Copyright 2026 3A Systems, LLC
*/
package org.opends.server.core;

Expand Down Expand Up @@ -4601,7 +4602,7 @@ public void testPasswordHistoryUsingCount()
*
* @throws Exception If an unexpected problem occurs.
*/
@Test(groups = "slow")
@Test
public void testPasswordHistoryUsingDuration()
throws Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ public void testShortCircuitModify() throws Exception
}
}

@Test(groups = "slow")
@Test
public void testWriteLockModify() throws Exception
{
// We need the operation to be run in a separate thread because we are going
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public Object[][] getValidConfigs()
*
* @throws Exception If an unexpected problem occurs.
*/
@Test(dataProvider = "validConfigs", groups= { "slow" })
@Test(dataProvider = "validConfigs")
public void testInitializeWithValidConfigs(Entry e)
throws Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*
* Copyright 2006-2008 Sun Microsystems, Inc.
* Portions Copyright 2011-2016 ForgeRock AS.
* Portions Copyright 2026 3A Systems, LLC
*/
package org.opends.server.extensions;

Expand Down Expand Up @@ -176,7 +177,7 @@ public Object[][] getValidConfigs()
*
* @throws Exception If an unexpected problem occurs.
*/
@Test(dataProvider = "validConfigs", groups = "slow")
@Test(dataProvider = "validConfigs")
public void testInitializeWithValidConfigs(Entry e)
throws Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*
* Copyright 2008 Sun Microsystems, Inc.
* Portions Copyright 2011-2016 ForgeRock AS.
* Portions Copyright 2026 3A Systems, LLC
*/
package org.opends.server.extensions;

Expand Down Expand Up @@ -404,7 +405,7 @@ public void cacheConcurrencyCleanup() throws Exception


/** {@inheritDoc} */
@Test(groups = { "slow", "testDefaultCacheConcurrency" },
@Test(groups = { "testDefaultCacheConcurrency" },
threadPoolSize = 10,
invocationCount = 10,
timeOut = 60000)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*
* Copyright 2008 Sun Microsystems, Inc.
* Portions Copyright 2013-2016 ForgeRock AS.
* Portions Copyright 2026 3A Systems, LLC
*/
package org.opends.server.extensions;

Expand Down Expand Up @@ -285,7 +286,7 @@ public void cacheConcurrencyCleanup()


/** {@inheritDoc} */
@Test(groups = { "slow", "testFIFOCacheConcurrency" },
@Test(groups = { "testFIFOCacheConcurrency" },
threadPoolSize = 10,
invocationCount = 10,
timeOut = 60000)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*
* Copyright 2008 Sun Microsystems, Inc.
* Portions Copyright 2013-2016 ForgeRock AS.
* Portions Copyright 2026 3A Systems, LLC
*/
package org.opends.server.extensions;

Expand Down Expand Up @@ -258,7 +259,7 @@ public void cacheConcurrencyCleanup()


/** {@inheritDoc} */
@Test(groups = { "slow", "testSoftRefCacheConcurrency" },
@Test(groups = { "testSoftRefCacheConcurrency" },
threadPoolSize = 10,
invocationCount = 10,
timeOut = 60000)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* information: "Portions Copyright [year] [name of copyright owner]".
*
* Copyright 2012-2016 ForgeRock AS.
* Portions Copyright 2026 3A Systems, LLC
*/
package org.opends.server.extensions;

Expand Down Expand Up @@ -41,7 +42,7 @@
import org.w3c.dom.NodeList;

/** Tests for {@link TLSByteChannel} class. */
@Test(groups = "slow", sequential = true)
@Test(sequential = true)
public class TLSByteChannelTestCase extends DirectoryServerTestCase
{
/** Cipher suite hardcoded from the IANA registry on internet. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*
* Copyright 2008 Sun Microsystems, Inc.
* Portions Copyright 2014-2016 ForgeRock AS.
* Portions Copyright 2026 3A Systems, LLC
*/
package org.opends.server.protocols;

Expand Down Expand Up @@ -62,7 +63,7 @@ public void startServer()
*
* @throws Exception If an unexpected problem occurs.
*/
@Test(groups = "slow")
@Test
public void testValidUserLDIF()
throws Exception
{
Expand Down Expand Up @@ -165,7 +166,7 @@ public void testValidUserLDIF()
*
* @throws Exception If an unexpected problem occurs.
*/
@Test(groups = "slow")
@Test
public void testValidConfigLDIF()
throws Exception
{
Expand Down Expand Up @@ -253,7 +254,7 @@ public void testValidConfigLDIF()
*
* @throws Exception If an unexpected problem occurs.
*/
@Test(groups = "slow")
@Test
public void testUnparseableLDIF()
throws Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*
* Copyright 2006-2008 Sun Microsystems, Inc.
* Portions Copyright 2014-2016 ForgeRock AS.
* Portions Copyright 2026 3A Systems, LLC
*/
package org.opends.server.protocols.jmx;

Expand Down Expand Up @@ -91,7 +92,7 @@ public void afterClass() throws Exception
* Perform a simple connect.
* @throws Exception If something wrong occurs.
*/
@Test(enabled = false, groups = "slow")
@Test
public void checkPostConnectDisconnectPlugin() throws Exception
{
// Before the test, how many time postconnect and postdisconnect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*
* Copyright 2007-2010 Sun Microsystems, Inc.
* Portions Copyright 2011-2016 ForgeRock AS.
* Portions Copyright 2026 3A Systems, LLC
*/
package org.opends.server.replication;

Expand Down Expand Up @@ -92,7 +93,7 @@ public void setup() throws Exception
* Then test that the sequence of Delete necessary to remove
* all those entries is also correctly ordered.
*/
@Test(enabled=true, groups="slow")
@Test(enabled=true)
public void addModDelDependencyTest() throws Exception
{
ReplicationServer replServer = null;
Expand Down Expand Up @@ -333,7 +334,7 @@ private void cleanDB() throws FileNotFoundException, IOException, Exception
* has been added.
* To increase the risks of failures a loop of add/del/add is done.
*/
@Test(enabled=true, groups="slow")
@Test(enabled=true)
public void addDelAddDependencyTest() throws Exception
{
ReplicationServer replServer = null;
Expand Down Expand Up @@ -438,7 +439,7 @@ private LDAPReplicationDomain startNewLDAPReplicationDomain(ReplicationServer re
* Check that the dependency of moddn operation are working by
* issuing a set of Add operation followed by a modrdn of the added entry.
*/
@Test(enabled=true, groups="slow")
@Test(enabled=true)
public void addModdnDependencyTest() throws Exception
{
ReplicationServer replServer = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,7 @@ private void postTest() throws Exception
* Test generationID saving when the root entry does not exist
* at the moment when the replication is enabled.
*/
@Test(dependsOnMethods = { "testMultiRS" }, groups = "slow")
@Test(dependsOnMethods = { "testMultiRS" })
public void testServerStop() throws Exception
{
String testCase = "testServerStop";
Expand Down Expand Up @@ -1112,7 +1112,7 @@ public void testServerStop() throws Exception
* Loop opening sessions to the Replication Server
* to check that it handle correctly disconnection and reconnection.
*/
@Test(dependsOnMethods = { "testServerStop" }, groups = "slow")
@Test(dependsOnMethods = { "testServerStop" })
public void testLoop() throws Exception
{
String testCase = "testLoop";
Expand Down
Loading