Skip to content

Re-enable three previously disabled tests#198

Open
vharseko wants to merge 1 commit into
OpenIdentityPlatform:masterfrom
vharseko:restore-disabled-tests
Open

Re-enable three previously disabled tests#198
vharseko wants to merge 1 commit into
OpenIdentityPlatform:masterfrom
vharseko:restore-disabled-tests

Conversation

@vharseko

Copy link
Copy Markdown
Member

What

Three TestNG methods were annotated enabled = false and therefore never executed in the default mvn test build. This re-enables them.

Test Module Result
ScheduleConfigServiceTest.invalidConfigParsingTest openidm-scheduler ✅ passes as-is
OpenICFProvisionerServiceTest.testPagedSearch (groovy, groovyremote) openidm-provisioner-openicf ✅ passes
ConnectorInfoProviderServiceTest.testPropertiesToEncrypt openidm-provisioner-openicf ✅ passes (retargeted)

Notes on testPropertiesToEncrypt

Its original classpath fixture org.forgerock.openidm.provisioner.openicf.impl.OpenICFProvisionerServiceSolarisConnectorTest.json had been deleted (commit ef25ec3, 2013) and the Solaris connector no longer exists in the OpenICF platform (available connectors: csvfile, databasetable, groovy, kerberos, ldap, ssh, xml). Restoring the fixture alone fails with WaitForMetaData: ConnectorInfo is not available because the connector bundle cannot be loaded.

The test's intent — verifying that getPropertiesToEncrypt returns the pointers to confidential/GuardedString configuration properties — is preserved by retargeting it to the Groovy connector (already copied into the test connectors directory), whose schema marks customSensitiveConfiguration as a GuardedString. An assertThat(result).isNotEmpty() guard was added so the assertion loop no longer passes vacuously on an empty result.

Verification

  • mvn -pl openidm-scheduler test -Dtest=ScheduleConfigServiceTest → 2/2 pass
  • mvn -pl openidm-provisioner-openicf test -Dtest=ConnectorInfoProviderServiceTest → 4/4 pass
  • mvn -pl openidm-provisioner-openicf test -Dtest=OpenICFProvisionerServiceTest#testPagedSearch → 2/2 pass

These TestNG methods were annotated enabled=false and never ran in the default build:

- openidm-scheduler ScheduleConfigServiceTest.invalidConfigParsingTest: still
  valid, passes as-is.
- openidm-provisioner-openicf OpenICFProvisionerServiceTest.testPagedSearch:
  valid, passes against the groovy and groovyremote connector servers.
- openidm-provisioner-openicf ConnectorInfoProviderServiceTest.testPropertiesToEncrypt:
  its Solaris connector fixture had been deleted and the Solaris connector no
  longer exists in the OpenICF platform, so the "properties to encrypt"
  detection is now exercised against the Groovy connector, whose schema marks
  customSensitiveConfiguration as a GuardedString.
@vharseko
vharseko requested a review from maximthomas July 16, 2026 14:03
@vharseko vharseko added test Tests and test infrastructure (unit, e2e, smoke) java Pull requests that update Java code connector OpenICF connectors / provisioner labels Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

connector OpenICF connectors / provisioner java Pull requests that update Java code test Tests and test infrastructure (unit, e2e, smoke)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants