5693N/A<?
xml version="1.0" encoding="UTF-8" standalone="no"?>
5693N/A ! The contents of this file are subject to the terms of the 5693N/A ! Common Development and Distribution License, Version 1.0 only 5693N/A ! (the "License"). You may not use this file except in compliance 5693N/A ! You can obtain a copy of the license at 5693N/A ! See the License for the specific language governing permissions 5693N/A ! and limitations under the License. 5693N/A ! When distributing Covered Code, include this CDDL HEADER in each 5693N/A ! file and include the License file at 5693N/A ! add the following below this CDDL HEADER, with the fields enclosed 5693N/A ! by brackets "[]" replaced with your own identifying information: 5693N/A ! Portions Copyright [yyyy] [name of copyright owner] 5693N/A ! Copyright 2011 ForgeRock AS 5693N/A <!-- Definition of Test Cases --> 5693N/A <!--- Test Cases : Basic : Operations --> 5693N/A <!--- Test Case information 5693N/A #@TestMarker Basic: operations 5693N/A #@TestName Basic: operations 5693N/A #@TestID basic_operations_001 5693N/A #@TestPurpose Verify basic LDAP authentication operations 5693N/A #@TestPreamble Common Setup 5693N/A #@TestStep Run LDAP authentication operations 5693N/A #@TestPostamble Common Cleanup 5693N/A #@TestResult Test is successful if the result code is 0 5693N/A <
function name="basic_operations_001" scope="local">
5693N/A <
testcase name="getTestCaseName('authrate')">
5693N/A <
call function="'testCase_Preamble'"/>
5693N/A 'Test Name = %s' % STAXCurrentTestcase
5693N/A <
call function="'testStep'">
5693N/A { 'stepMessage' : 'Authrate.' }
5693N/A <
call function="'authRate'">
5693N/A 'extraParams' : '-g "rand(%s)" -c 10 -m 2000 -M 100' % BINDUSERS
5693N/A <
catch exception="'STAXException'" typevar="eType" var="eInfo">
5693N/A <
message log="1" level="'fatal'">
5693N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5693N/A <
call function="'testCase_Postamble'"/>
5693N/A <!--- Test Case information 5693N/A #@TestMarker Basic: operations 5693N/A #@TestName Basic: operations 5693N/A #@TestID basic_operations_002 5693N/A #@TestPurpose Verify basic LDAP search operations 5693N/A #@TestPreamble Common Setup 5693N/A #@TestStep Run LDAP search operations 5693N/A #@TestPostamble Common Cleanup 5693N/A #@TestResult Test is successful if the result code is 0 5693N/A <
function name="basic_operations_002" scope="local">
5693N/A <
testcase name="getTestCaseName('search')">
5693N/A <
call function="'testCase_Preamble'"/>
5693N/A 'Test Name = %s' % STAXCurrentTestcase
5693N/A <
call function="'testStep'">
5693N/A { 'stepMessage' : 'SearchRate.' }
5693N/A <
call function="'searchRate'">
5693N/A 'extraParams' : '-g "rand(%s)" -m 2000 -M 100 "objectclass=*"' % SEARCHUSERS
5693N/A <
catch exception="'STAXException'" typevar="eType" var="eInfo">
5693N/A <
message log="1" level="'fatal'">
5693N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5693N/A <
call function="'testCase_Postamble'"/>
5693N/A <!--- Test Case information 5693N/A #@TestMarker Basic: operations 5693N/A #@TestName Basic: operations 5693N/A #@TestID basic_operations_003 5693N/A #@TestPurpose Verify basic LDAP modify operations 5693N/A #@TestPreamble Common Setup 5693N/A #@TestStep Run LDAP modify operations 5693N/A #@TestPostamble Common Cleanup 5693N/A #@TestResult Test is successful if the result code is 0 5693N/A <
function name="basic_operations_003" scope="local">
5693N/A <
testcase name="getTestCaseName('modrate')">
5693N/A <
call function="'testCase_Preamble'"/>
5693N/A 'Test Name = %s' % STAXCurrentTestcase
5693N/A <
call function="'testStep'">
5693N/A { 'stepMessage' : 'ModRate.' }
5693N/A <
call function="'modRate'">
5693N/A 'extraParams' : '-g "rand(%s)" -g "rand(10,20)" -m 2000 -M 100' % MODUSERS,
5693N/A 'attribute' : 'description' ,
5693N/A <
catch exception="'STAXException'" typevar="eType" var="eInfo">
5693N/A <
message log="1" level="'fatal'">
5693N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5693N/A <
call function="'testCase_Postamble'"/>