TestScript.groovy.template revision 355e5661379644c081271b23fa8b966a098a42d2
199767f8919635c4928607450d9e0abb932109ceToomas Soome * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
199767f8919635c4928607450d9e0abb932109ceToomas Soome * Copyright (c) 2015 ForgeRock AS. All Rights Reserved
199767f8919635c4928607450d9e0abb932109ceToomas Soome * The contents of this file are subject to the terms
199767f8919635c4928607450d9e0abb932109ceToomas Soome * of the Common Development and Distribution License
199767f8919635c4928607450d9e0abb932109ceToomas Soome * (the License). You may not use this file except in
199767f8919635c4928607450d9e0abb932109ceToomas Soome * compliance with the License.
199767f8919635c4928607450d9e0abb932109ceToomas Soome * You can obtain a copy of the License at
199767f8919635c4928607450d9e0abb932109ceToomas Soome * See the License for the specific language governing
199767f8919635c4928607450d9e0abb932109ceToomas Soome * permission and limitations under the License.
199767f8919635c4928607450d9e0abb932109ceToomas Soome * When distributing Covered Code, include this CDDL
199767f8919635c4928607450d9e0abb932109ceToomas Soome * Header Notice in each file and include the License file
199767f8919635c4928607450d9e0abb932109ceToomas Soome * at http://forgerock.org/license/CDDLv1.0.html
199767f8919635c4928607450d9e0abb932109ceToomas Soome * If applicable, add the following below the CDDL Header,
199767f8919635c4928607450d9e0abb932109ceToomas Soome * with the fields enclosed by brackets [] replaced by
199767f8919635c4928607450d9e0abb932109ceToomas Soome * your own identifying information:
199767f8919635c4928607450d9e0abb932109ceToomas Soome * "Portions Copyrighted [year] [name of copyright owner]"
199767f8919635c4928607450d9e0abb932109ceToomas Soome * Version {{version}}
199767f8919635c4928607450d9e0abb932109ceToomas Soome * Author {{author}}
199767f8919635c4928607450d9e0abb932109ceToomas Soomepackage org.forgerock.openicf.connectors.{{lower packageName}}
199767f8919635c4928607450d9e0abb932109ceToomas Soomeimport org.forgerock.openicf.connectors.{{lower packageName}}.{{packageName}}Configuration
199767f8919635c4928607450d9e0abb932109ceToomas Soomeimport org.forgerock.openicf.misc.scriptedcommon.OperationType
199767f8919635c4928607450d9e0abb932109ceToomas Soomeimport org.identityconnectors.common.logging.Log
199767f8919635c4928607450d9e0abb932109ceToomas Soome * Built-in accessible objects
199767f8919635c4928607450d9e0abb932109ceToomas Soome// OperationType is TEST for this script
199767f8919635c4928607450d9e0abb932109ceToomas Soome// The configuration class created specifically for this connector
199767f8919635c4928607450d9e0abb932109ceToomas Soomedef configuration = configuration as {{packageName}}Configuration
199767f8919635c4928607450d9e0abb932109ceToomas Soome// Default logging facility
199767f8919635c4928607450d9e0abb932109ceToomas Soome * Script action - Customizable
199767f8919635c4928607450d9e0abb932109ceToomas Soome * The purpose of Test is to test the connection to the external source to ensure the
199767f8919635c4928607450d9e0abb932109ceToomas Soome * other actions can succeed.
199767f8919635c4928607450d9e0abb932109ceToomas Soome * Throw an exception if the test fails
199767f8919635c4928607450d9e0abb932109ceToomas Soome/* Log something to demonstrate this script executed */
199767f8919635c4928607450d9e0abb932109ceToomas Soomelog.info("Test script, property {{nameCamelCase}} = " + configuration.get{{name}}());