5789N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
5789N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
5789N/A<!--
5789N/A ! CDDL HEADER START
5789N/A !
5789N/A ! The contents of this file are subject to the terms of the
5789N/A ! Common Development and Distribution License, Version 1.0 only
5789N/A ! (the "License"). You may not use this file except in compliance
5789N/A ! with the License.
5789N/A !
5789N/A ! You can obtain a copy of the license at
5789N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
5789N/A ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
5789N/A ! See the License for the specific language governing permissions
5789N/A ! and limitations under the License.
5789N/A !
5789N/A ! When distributing Covered Code, include this CDDL HEADER in each
5789N/A ! file and include the License file at
5789N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
5789N/A ! add the following below this CDDL HEADER, with the fields enclosed
5789N/A ! by brackets "[]" replaced with your own identifying information:
5789N/A ! Portions Copyright [yyyy] [name of copyright owner]
5789N/A !
5789N/A ! CDDL HEADER END
5789N/A !
5789N/A ! Copyright 2008-2009 Sun Microsystems, Inc.
5789N/A ! Portions copyright 2012 ForgeRock AS.
5789N/A ! -->
5789N/A<stax>
5789N/A
5789N/A <!---
5789N/A Place test-specific test information here.
5789N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5789N/A #@TestMarker Root User Tests
5789N/A #@TestName None
5789N/A #@TestIssue None
5789N/A #@TestPurpose None
5789N/A #@TestPreamble None
5789N/A #@TestStep None
5789N/A #@TestPostamble None
5789N/A #@TestResult None
5789N/A -->
5789N/A <function name="pwp_root_user_001" scope="local">
5789N/A <testcase name="getTestCaseName('PWP Default Pwd Scheme')">
5789N/A <sequence>
5789N/A <try>
5789N/A <sequence>
5789N/A
5789N/A <call function="'testCase_Preamble'"/>
5789N/A
5789N/A <message>
5789N/A 'Test Name = %s' % STAXCurrentTestcase
5789N/A </message>
5789N/A
5789N/A <call function="'testStep'">
5789N/A { 'stepMessage' : '%s Get Default Password Storage Scheme Property.' % msg1 }
5789N/A </call>
5789N/A
5789N/A <call function="'SearchObject'">
5789N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5789N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5789N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5789N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5789N/A 'dsBaseDN' : 'cn=Root Password Policy,cn=Password Policies,cn=config' ,
5789N/A 'dsFilter' : 'objectclass=*' ,
5789N/A 'attributes' : 'ds-cfg-default-password-storage-scheme' }
5789N/A </call>
5789N/A
5789N/A <script>
5789N/A returnString = STAXResult[0][1]
5789N/A </script>
5789N/A
5789N/A <call function="'searchString'">
5789N/A { 'returnString' : returnString ,
5789N/A 'expectedString' : 'cn=Salted SHA-512' }
5789N/A </call>
5789N/A
5789N/A </sequence>
5789N/A
5789N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5789N/A <message log="1" level="'fatal'">
5789N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5789N/A </message>
5789N/A </catch>
5789N/A <finally>
5789N/A <sequence>
5789N/A <call function="'testCase_Postamble'"/>
5789N/A </sequence>
5789N/A </finally>
5789N/A </try>
5789N/A </sequence>
5789N/A </testcase>
5789N/A </function>
5789N/A
5789N/A <!---
5789N/A Place test-specific test information here.
5789N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5789N/A #@TestMarker Root User Tests
5789N/A #@TestName None
5789N/A #@TestIssue None
5789N/A #@TestPurpose None
5789N/A #@TestPreamble None
5789N/A #@TestStep None
5789N/A #@TestPostamble None
5789N/A #@TestResult None
5789N/A -->
5789N/A <function name="pwp_root_user_002" scope="local">
5789N/A <testcase name="getTestCaseName('PWP No Default Pwd Generator')">
5789N/A <sequence>
5789N/A <try>
5789N/A <sequence>
5789N/A
5789N/A <call function="'testCase_Preamble'"/>
5789N/A
5789N/A <message>
5789N/A 'Test Name = %s' % STAXCurrentTestcase
5789N/A </message>
5789N/A
5789N/A <call function="'testStep'">
5789N/A { 'stepMessage' : '%s Checking for ds-cfg-password-generator.' % msg1 }
5789N/A </call>
5789N/A
5789N/A <call function="'compareEntry'">
5789N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5789N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5789N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5789N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5789N/A 'attrToBeCompared' : 'ds-cfg-password-generator:cn=anything',
5789N/A 'entryToBeCompared' : 'cn=Root Password Policy,cn=Password Policies,cn=config',
5789N/A 'expectedRC' : 16 }
5789N/A </call>
5789N/A
5789N/A </sequence>
5789N/A
5789N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5789N/A <message log="1" level="'fatal'">
5789N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5789N/A </message>
5789N/A </catch>
5789N/A <finally>
5789N/A <sequence>
5789N/A <call function="'testCase_Postamble'"/>
5789N/A </sequence>
5789N/A </finally>
5789N/A </try>
5789N/A </sequence>
5789N/A </testcase>
5789N/A </function>
5789N/A
5789N/A <!---
5789N/A Place test-specific test information here.
5789N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5789N/A #@TestMarker Root User Tests
5789N/A #@TestName None
5789N/A #@TestIssue None
5789N/A #@TestPurpose None
5789N/A #@TestPreamble None
5789N/A #@TestStep None
5789N/A #@TestPostamble None
5789N/A #@TestResult None
5789N/A -->
5789N/A <function name="pwp_root_user_003" scope="local">
5789N/A <testcase name="getTestCaseName('PWP Default Pwd Change Setting')">
5789N/A <sequence>
5789N/A <try>
5789N/A <sequence>
5789N/A
5789N/A <call function="'testCase_Preamble'"/>
5789N/A
5789N/A <message>
5789N/A 'Test Name = %s' % STAXCurrentTestcase
5789N/A </message>
5789N/A
5789N/A <call function="'testStep'">
5789N/A { 'stepMessage' : '%s Checking default value ds-cfg-password-change-requires-current-password.' % msg1 }
5789N/A </call>
5789N/A
5789N/A <call function="'SearchObject'">
5789N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5789N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5789N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5789N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5789N/A 'dsBaseDN' : 'cn=Root Password Policy,cn=Password Policies,cn=config' ,
5789N/A 'dsFilter' : 'objectclass=*' ,
5789N/A 'attributes' : 'ds-cfg-password-change-requires-current-password' }
5789N/A </call>
5789N/A
5789N/A <script>
5789N/A returnString = STAXResult[0][1]
5789N/A </script>
5789N/A
5789N/A <call function="'searchString'">
5789N/A { 'returnString' : returnString ,
5789N/A 'expectedString' : 'true' }
5789N/A </call>
5789N/A
5789N/A </sequence>
5789N/A
5789N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5789N/A <message log="1" level="'fatal'">
5789N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5789N/A </message>
5789N/A </catch>
5789N/A <finally>
5789N/A <sequence>
5789N/A <call function="'testCase_Postamble'"/>
5789N/A </sequence>
5789N/A </finally>
5789N/A </try>
5789N/A </sequence>
5789N/A </testcase>
5789N/A </function>
5789N/A
5789N/A</stax>