Connectors continue to be released outside the IDM release. For the latest documentation, refer to the ICF documentation.
A test script tests the connection to the external resource to ensure that the other operations that are provided by the connector can succeed.
A sample test script for an SQL database is provided in
- Input variables
The following variables are available to the test script:
A handler to the connector’s configuration object.
An OperationType that corresponds to the action (
A logger instance for the connector.
Nothing, if the test is successful. The script can throw any exception if it fails.
import org.identityconnectors.common.logging.Log import org.forgerock.openicf.connectors.groovy.OperationType import org.forgerock.openicf.misc.scriptedcommon.ScriptedConfiguration def operation = operation as OperationType def configuration = configuration as ScriptedConfiguration def log = log as Log log.info("This is a TestScript") throw new MissingResourceException("Test Failed", operation.name(), "")