Skip to content

Commit 4639451

Browse files
authored
Re-enable three previously disabled tests (#198)
1 parent e59deda commit 4639451

3 files changed

Lines changed: 12 additions & 7 deletions

File tree

openidm-provisioner-openicf/src/test/java/org/forgerock/openidm/provisioner/openicf/impl/ConnectorInfoProviderServiceTest.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* information: "Portions copyright [year] [name of copyright owner]".
1313
*
1414
* Copyright 2011-2016 ForgeRock AS.
15+
* Portions Copyrighted 2026 3A Systems, LLC.
1516
*/
1617

1718
package org.forgerock.openidm.provisioner.openicf.impl;
@@ -202,20 +203,22 @@ public void testGetAllConnectorInfo() throws Exception {
202203
.isNotEmpty();
203204
}
204205

205-
@Test(enabled = false)
206+
@Test
206207
public void testPropertiesToEncrypt() throws Exception {
208+
// The original Solaris connector fixture was removed from the platform; exercise the same
209+
// "confidential configuration property" detection path against the Groovy connector, whose
210+
// schema marks customSensitiveConfiguration as a GuardedString.
207211
InputStream inputStream =
208212
ConnectorInfoProviderServiceTest.class
209-
.getResourceAsStream("/config/org.forgerock.openidm.provisioner.openicf.impl.OpenICFProvisionerServiceSolarisConnectorTest.json");
213+
.getResourceAsStream("/config/provisioner.openicf-groovy.json");
210214
assertThat(inputStream).isNotNull();
211215

212216
List<JsonPointer> result =
213217
testableConnectorInfoProvider.getPropertiesToEncrypt(OpenICFProvisionerService.PID,
214218
null, new JsonValue(mapper.readValue(inputStream, Map.class)));
215219
String[] expected =
216-
new String[] { "/configurationProperties/password",
217-
"/configurationProperties/credentials", "/configurationProperties/privateKey",
218-
"/configurationProperties/passphrase" };
220+
new String[] { "/configurationProperties/customSensitiveConfiguration" };
221+
assertThat(result).isNotEmpty();
219222
for (JsonPointer pointer : result) {
220223
assertThat(expected).contains(pointer.toString());
221224
}

openidm-provisioner-openicf/src/test/java/org/forgerock/openidm/provisioner/openicf/impl/OpenICFProvisionerServiceTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* information: "Portions copyright [year] [name of copyright owner]".
1313
*
1414
* Copyright 2011-2016 ForgeRock AS.
15+
* Portions Copyrighted 2026 3A Systems, LLC.
1516
*/
1617
package org.forgerock.openidm.provisioner.openicf.impl;
1718

@@ -852,7 +853,7 @@ public void testSync(String systemName) throws Exception {
852853
}
853854

854855

855-
@Test(dataProvider = "groovy-only", enabled = false)
856+
@Test(dataProvider = "groovy-only")
856857
public void testPagedSearch(String systemName) throws Exception {
857858

858859
for (int i = 0; i < 100; i++) {

openidm-scheduler/src/test/java/org/forgerock/openidm/scheduler/ScheduleConfigServiceTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* information: "Portions copyright [year] [name of copyright owner]".
1313
*
1414
* Portions copyright 2011-2015 ForgeRock AS.
15+
* Portions Copyrighted 2026 3A Systems, LLC.
1516
*/
1617
package org.forgerock.openidm.scheduler;
1718

@@ -47,7 +48,7 @@ public void configParsingTest() throws ResourceException {
4748
assertThat(scheduleConfig.getStartTime()).isNotNull();
4849
}
4950

50-
@Test(enabled = false, expectedExceptions = ResourceException.class)
51+
@Test(expectedExceptions = ResourceException.class)
5152
public void invalidConfigParsingTest() throws ResourceException {
5253
// Check invalid configuration fails
5354
Map<String, Object> config = new HashMap<String, Object>();

0 commit comments

Comments
 (0)