290N/A * The contents of this file are subject to the terms of the 290N/A * Common Development and Distribution License, Version 1.0 only 290N/A * (the "License"). You may not use this file except in compliance 290N/A * See the License for the specific language governing permissions 290N/A * and limitations under the License. 290N/A * When distributing Covered Code, include this CDDL HEADER in each 6982N/A * If applicable, add the following below this CDDL HEADER, with the 6982N/A * fields enclosed by brackets "[]" replaced with your own identifying 290N/A * Portions Copyright [yyyy] [name of copyright owner] 3232N/A * Copyright 2006-2008 Sun Microsystems, Inc. 5488N/A * Portions copyright 2011 ForgeRock AS. 290N/A * A set of test cases for the error log account status notification handler. 290N/A * Ensures that the Directory Server is running. 290N/A * @throws Exception If an unexpected problem occurs. 290N/A * Retrieves a set of invalid configuration entries that should cause the 290N/A * notification handler initialization to fail. 290N/A * @return A set of invalid configuration entries that should cause the 290N/A * notification handler initialization to fail. 290N/A * @throws Exception If an unexpected problem occurs. 290N/A "dn: cn=Error Log Handler,cn=Account Status Notification Handlers," +
290N/A "objectClass: ds-cfg-account-status-notification-handler",
290N/A "objectClass: ds-cfg-error-log-account-status-notification-handler",
290N/A "cn: Error Log Handler",
2624N/A "ds-cfg-java-class: org.opends." +
290N/A "server.extensions.ErrorLogAccountStatusNotificationHandler",
290N/A "dn: cn=Error Log Handler,cn=Account Status Notification Handlers," +
290N/A "objectClass: ds-cfg-account-status-notification-handler",
290N/A "objectClass: ds-cfg-error-log-account-status-notification-handler",
290N/A "cn: Error Log Handler",
2624N/A "ds-cfg-java-class: org.opends." +
290N/A "server.extensions.ErrorLogAccountStatusNotificationHandler",
290N/A "ds-cfg-account-status-notification-type: invalid",
290N/A "dn: cn=Error Log Handler,cn=Account Status Notification Handlers," +
290N/A "objectClass: ds-cfg-account-status-notification-handler",
290N/A "objectClass: ds-cfg-error-log-account-status-notification-handler",
290N/A "cn: Error Log Handler",
2624N/A "ds-cfg-java-class: org.opends." +
290N/A "server.extensions.ErrorLogAccountStatusNotificationHandler",
290N/A "ds-cfg-account-status-notification-type: password-reset",
290N/A "ds-cfg-account-status-notification-type: invalid");
290N/A * Tests to ensure that the notification handler initialization fails with an 290N/A * invalid configuration. 290N/A * @param e The configuration entry to use to initialize the account status 290N/A * @throws Exception If an unexpected problem occurs. 290N/A DN.
decode(
"cn=Account Status Notification Handlers,cn=config");
290N/A * Tests to ensure that the error log account status notification handler is 290N/A * configured and enabled within the Directory Server. 290N/A * @throws Exception If an unexpected problem occurs. 290N/A * Retrieves the set of valid notification types that may be used with an 290N/A * account status notification handler. 290N/A * @return The set of valid notification types that may be used with an 290N/A * account status notification handler. 290N/A * Tests the <CODE>handleStatusNotification</CODE> method. 2248N/A * @param notificationType The account status notification type to be 290N/A * @throws Exception If an unexpected problem occurs. 2248N/A "dn: uid=test.user,o=test",
2248N/A "objectClass: organizationalPerson",
2248N/A "objectClass: inetOrgPerson",