Skip to content

Commit 2b95a69

Browse files
authored
Enable the remaining slow-group tests in the default build (#702)
1 parent 2714791 commit 2b95a69

32 files changed

Lines changed: 163 additions & 75 deletions

opendj-server-legacy/pom.xml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,7 +1258,7 @@
12581258
</additionalClasspathElements>
12591259
<testSourceDirectory>src/test/java</testSourceDirectory>
12601260
<!-- <enableProcessChecker>all</enableProcessChecker>-->
1261-
<forkedProcessTimeoutInSeconds>900</forkedProcessTimeoutInSeconds>
1261+
<forkedProcessTimeoutInSeconds>2400</forkedProcessTimeoutInSeconds>
12621262
<forkedProcessExitTimeoutInSeconds>120</forkedProcessExitTimeoutInSeconds>
12631263
<excludes>
12641264
<exclude>org/opends/server/snmp/**</exclude>
@@ -1279,10 +1279,6 @@
12791279
<name>listener</name>
12801280
<value>org.opends.server.TestListener</value>
12811281
</property>
1282-
<property>
1283-
<name>excludegroups</name>
1284-
<value>slow</value>
1285-
</property>
12861282
<property>
12871283
<name>configfailurepolicy</name>
12881284
<value>skip</value>

opendj-server-legacy/src/main/java/org/opends/server/replication/server/MessageHandler.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
*
1414
* Copyright 2009-2010 Sun Microsystems, Inc.
1515
* Portions Copyright 2011-2016 ForgeRock AS.
16+
* Portions Copyright 2026 3A Systems, LLC
1617
*/
1718
package org.opends.server.replication.server;
1819

@@ -206,6 +207,24 @@ public MonitorData getMonitorData()
206207
return attributes;
207208
}
208209

210+
/**
211+
* Indicates whether this handler is served from the in-memory message
212+
* queue, i.e. it is done catching up with the changelog DB.
213+
* <p>
214+
* Package private: allows tests to wait until a freshly connected peer
215+
* will receive published updates through the in-memory queue path rather
216+
* than re-read from the changelog DB.
217+
*
218+
* @return true when this handler follows the in-memory message queue
219+
*/
220+
boolean isFollowing()
221+
{
222+
synchronized (msgQueue)
223+
{
224+
return following;
225+
}
226+
}
227+
209228
/**
210229
* Retrieves the name of this monitor provider. It should be unique among all
211230
* monitor providers, including all instances of the same monitor provider.

opendj-server-legacy/src/test/java/org/opends/server/core/AbandonOperationTestCase.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
*
1414
* Copyright 2006-2008 Sun Microsystems, Inc.
1515
* Portions Copyright 2011-2016 ForgeRock AS.
16+
* Portions Copyright 2026 3A Systems, LLC
1617
*/
1718
package org.opends.server.core;
1819

@@ -193,7 +194,7 @@ public void testAbandonInternal()
193194
*
194195
* @throws Exception If an unexpected problem occurs.
195196
*/
196-
@Test(groups = { "slow" })
197+
@Test
197198
public void testDisconnectInPreParse()
198199
throws Exception
199200
{
@@ -223,7 +224,7 @@ public void testDisconnectInPreParse()
223224
*
224225
* @throws Exception If an unexpected problem occurs.
225226
*/
226-
@Test(groups = { "slow" })
227+
@Test
227228
public void testNoSuchOperation()
228229
throws Exception
229230
{

opendj-server-legacy/src/test/java/org/opends/server/core/AddOperationTestCase.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
*
1414
* Copyright 2006-2008 Sun Microsystems, Inc.
1515
* Portions Copyright 2011-2016 ForgeRock AS.
16+
* Portions Copyright 2026 3A Systems, LLC
1617
*/
1718
package org.opends.server.core;
1819

@@ -1435,7 +1436,7 @@ private CancelRequest newCancelRequest(String cancelReason)
14351436
*
14361437
* @throws Exception If an unexpected problem occurs.
14371438
*/
1438-
@Test(groups = "slow")
1439+
@Test
14391440
public void testCannotLockEntry() throws Exception
14401441
{
14411442
TestCaseUtils.initializeTestBackend(true);

opendj-server-legacy/src/test/java/org/opends/server/core/BindOperationTestCase.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
*
1414
* Copyright 2006-2010 Sun Microsystems, Inc.
1515
* Portions Copyright 2011-2016 ForgeRock AS.
16+
* Portions Copyright 2026 3A Systems, LLC
1617
*/
1718
package org.opends.server.core;
1819

@@ -1481,7 +1482,7 @@ public void testRebindClearsAuthInfo()
14811482
*
14821483
* @throws Exception If an unexpected problem occurs.
14831484
*/
1484-
@Test(groups = "slow")
1485+
@Test
14851486
public void testSubtreeDeleteClearsAuthInfo()
14861487
throws Exception
14871488
{
@@ -1541,7 +1542,7 @@ public void testSubtreeDeleteClearsAuthInfo()
15411542
*
15421543
* @throws Exception If an unexpected problem occurs.
15431544
*/
1544-
@Test(groups = "slow")
1545+
@Test
15451546
public void testSubtreeModifyUpdatesAuthInfo()
15461547
throws Exception
15471548
{

opendj-server-legacy/src/test/java/org/opends/server/core/DeleteOperationTestCase.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
*
1414
* Copyright 2006-2008 Sun Microsystems, Inc.
1515
* Portions Copyright 2011-2016 ForgeRock AS.
16+
* Portions Copyright 2026 3A Systems, LLC
1617
*/
1718
package org.opends.server.core;
1819

@@ -691,7 +692,7 @@ public void testCancelAfterOperation() throws Exception
691692
*
692693
* @throws Exception If an unexpected problem occurs.
693694
*/
694-
@Test(groups = { "slow" })
695+
@Test
695696
public void testCannotLockEntry() throws Exception
696697
{
697698
TestCaseUtils.initializeTestBackend(true);

opendj-server-legacy/src/test/java/org/opends/server/core/ModifyOperationTestCase.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
*
1414
* Copyright 2006-2011 Sun Microsystems, Inc.
1515
* Portions Copyright 2011-2016 ForgeRock AS.
16+
* Portions Copyright 2026 3A Systems, LLC
1617
*/
1718
package org.opends.server.core;
1819

@@ -2651,7 +2652,7 @@ public void testCancelAfterOperation(String baseDN)
26512652
*
26522653
* @throws Exception If an unexpected problem occurs.
26532654
*/
2654-
@Test(dataProvider = "baseDNs", groups = { "slow" })
2655+
@Test(dataProvider = "baseDNs")
26552656
public void testCannotLockEntry(String baseDN)
26562657
throws Exception
26572658
{

opendj-server-legacy/src/test/java/org/opends/server/core/PasswordPolicyTestCase.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
*
1414
* Copyright 2006-2008 Sun Microsystems, Inc.
1515
* Portions Copyright 2011-2016 ForgeRock AS.
16+
* Portions Copyright 2026 3A Systems, LLC
1617
*/
1718
package org.opends.server.core;
1819

@@ -4601,7 +4602,7 @@ public void testPasswordHistoryUsingCount()
46014602
*
46024603
* @throws Exception If an unexpected problem occurs.
46034604
*/
4604-
@Test(groups = "slow")
4605+
@Test
46054606
public void testPasswordHistoryUsingDuration()
46064607
throws Exception
46074608
{

opendj-server-legacy/src/test/java/org/opends/server/core/TestModifyDNOperation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ public void testShortCircuitModify() throws Exception
767767
}
768768
}
769769

770-
@Test(groups = "slow")
770+
@Test
771771
public void testWriteLockModify() throws Exception
772772
{
773773
// We need the operation to be run in a separate thread because we are going

opendj-server-legacy/src/test/java/org/opends/server/extensions/AttributeValuePasswordValidatorTestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public Object[][] getValidConfigs()
147147
*
148148
* @throws Exception If an unexpected problem occurs.
149149
*/
150-
@Test(dataProvider = "validConfigs", groups= { "slow" })
150+
@Test(dataProvider = "validConfigs")
151151
public void testInitializeWithValidConfigs(Entry e)
152152
throws Exception
153153
{

0 commit comments

Comments
 (0)