5789N/A<?
xml version="1.0" encoding="UTF-8" standalone="no"?>
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 ! You can obtain a copy of the license at 5789N/A ! See the License for the specific language governing permissions 5789N/A ! and limitations under the License. 5789N/A ! When distributing Covered Code, include this CDDL HEADER in each 5789N/A ! file and include the License file at 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 ! Copyright 2008-2009 Sun Microsystems, Inc. 5789N/A ! Portions copyright 2012 ForgeRock AS. 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 <
function name="pwp_root_user_001" scope="local">
5789N/A <
testcase name="getTestCaseName('PWP Default Pwd Scheme')">
5789N/A <
call function="'testCase_Preamble'"/>
5789N/A 'Test Name = %s' % STAXCurrentTestcase
5789N/A <
call function="'testStep'">
5789N/A { 'stepMessage' : '%s Get Default Password Storage Scheme Property.' % msg1 }
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 returnString = STAXResult[0][1]
5789N/A <
call function="'searchString'">
5789N/A { 'returnString' : returnString ,
5789N/A 'expectedString' : 'cn=Salted SHA-512' }
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 <
call function="'testCase_Postamble'"/>
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 <
function name="pwp_root_user_002" scope="local">
5789N/A <
testcase name="getTestCaseName('PWP No Default Pwd Generator')">
5789N/A <
call function="'testCase_Preamble'"/>
5789N/A 'Test Name = %s' % STAXCurrentTestcase
5789N/A <
call function="'testStep'">
5789N/A { 'stepMessage' : '%s Checking for ds-cfg-password-generator.' % msg1 }
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 <
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 <
call function="'testCase_Postamble'"/>
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 <
function name="pwp_root_user_003" scope="local">
5789N/A <
testcase name="getTestCaseName('PWP Default Pwd Change Setting')">
5789N/A <
call function="'testCase_Preamble'"/>
5789N/A 'Test Name = %s' % STAXCurrentTestcase
5789N/A <
call function="'testStep'">
5789N/A { 'stepMessage' : '%s Checking default value ds-cfg-password-change-requires-current-password.' % msg1 }
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 returnString = STAXResult[0][1]
5789N/A <
call function="'searchString'">
5789N/A { 'returnString' : returnString ,
5789N/A 'expectedString' : 'true' }
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 <
call function="'testCase_Postamble'"/>