i18n_8bit_authentication.xml revision d81978a0815d5b8a75633c35e3e1f8708d36f017
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
<!--
! CDDL HEADER START
!
! The contents of this file are subject to the terms of the
! Common Development and Distribution License, Version 1.0 only
! (the "License"). You may not use this file except in compliance
! with the License.
!
! You can obtain a copy of the license at
! trunk/opends/resource/legal-notices/OpenDS.LICENSE
! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
! See the License for the specific language governing permissions
! and limitations under the License.
!
! When distributing Covered Code, include this CDDL HEADER in each
! file and include the License file at
! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
! add the following below this CDDL HEADER, with the fields enclosed
! by brackets "[]" replaced with your own identifying information:
! Portions Copyright [yyyy] [name of copyright owner]
!
! CDDL HEADER END
!
! Copyright 2007-2008 Sun Microsystems, Inc.
! -->
<stax>
<defaultcall function="main_8bit_authentication"/>
<function name="main_8bit_authentication">
<sequence>
<block name="'8bit_authentication'">
<sequence>
<script>
if not CurrentTestPath.has_key('i18n'):
CurrentTestPath['group']='i18n'
CurrentTestPath['suite']=STAXCurrentBlock
</script>
<message>
'Add the test data in the directory'
</message>
<call function="'addEntry'">
{
'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
'entryToBeAdded' : '%s/i18n/8-bit/base64/I18n_Authentication_Test.base64.ldif' \
% remote.data ,
'expectedRC' : 0
}
</call>
<!---
#@TestSuiteName 8bit_authentication
#@TestSuitePurpose Test the usage of acis containing 8-bit
characters.
#@TestSuiteGroup i18n
#@TestScript i18n_8bit_authentication.xml
-->
<call function="'testSuite_Preamble'"/>
<!--- Test Case information
#@TestMarker 8bit_authentication
#@TestName Group: i18n 8-bit: user'd DN and password
contain 8-bit characters
#@TestPurpose check that user with DN and password containing
8-bit characters can bind and performed allowed
operations as defined in acis
#@TestPreamble
#@TestSteps Do a ldapsearch binding as
"cn=John, ou=Authentication Tests, o=��ndide R�iz"
This user is allowed to search and read
#@TestSteps Check that all the expected data is returned
#@TestPostamble
#@TestResult should be PASSED
-->
<testcase name="getTestCaseName
('8-bit characters DN and pwd user -search, read rights')">
<sequence>
<call function="'testCase_Preamble'"/>
<call function="'ldapSearchWithScript'">
{
'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'cn=John, ou=Authentication Tests, o=��ndide R�iz' ,
'dsInstancePswd' : 'siroe' ,
'dsCountEntries' : 'True' ,
'dsBaseDN' : 'ou=Authentication Tests,o=��ndide R�iz' ,
'dsFilter' : 'objectclass=person' ,
'dsAttributes' : 'sn' ,
'dsEncoding' : '8859-1',
'expectedRC' : 'noCheck'
}
</call>
<script>
returnString = STAXResult[0][1]
</script>
<call function="'checktestString'">
{
'returnString' : returnString ,
'expectedString' : 'Total number of matching entries: 4'
}
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
<!--- Test Case information
#@TestMarker 8bit_authentication
#@TestName Group: i18n 8-bit: user'd DN and password contain
8-bit characters
#@TestPurpose check that user with DN and password containing
8-bit characters can bind and performed allowed
operations as defined in acis
#@TestPreamble
#@TestSteps Do a ldapsearch binding as
"cn=Bill, ou=Authentication Tests, o=��ndide R�iz"
This user is allowed to perform add operations
Check that the expected data can be added
#@TestPostamble
#@TestResult should be PASSED
-->
<testcase name="getTestCaseName
('8-bit characters DN and pwd user -add rights')">
<sequence>
<call function="'testCase_Preamble'"/>
<call function="'addEntry'">
{
'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'cn=Bill, ou=Authentication Tests, o=��ndide R�iz' ,
'dsInstancePswd' : 'sir��' ,
'entryToBeAdded' : '%s/i18n/8-bit/base64/Authentication.tp2.base64.ldif' \
% remote.data ,
'expectedRC' : 0
}
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
<!--- Test Case information
#@TestMarker 8bit_authentication
#@TestName Group: i18n 8-bit: user'd DN and password contain
8-bit characters
#@TestPurpose check that user with DN and password containing
8-bit characters can bind and performed allowed
operations as defined in acis
#@TestPreamble
#@TestSteps Do a ldapsearch binding as
"cn=��ndide, ou=Authentication Tests, o=��ndide R�iz"
This user is allowed to perform add operations,
modify attributes but not delete
Check that the expected operations can be performed
#@TestPostamble
#@TestResult should be PASSED
-->
<testcase name="getTestCaseName
('8-bit characters DN and pwd user -add,modify rights, no delete')">
<sequence>
<call function="'testCase_Preamble'"/>
<message>
'Add operation'
</message>
<call function="'addEntry'">
{
'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'cn=��ndide, ou=Authentication Tests, o=��ndide R�iz' ,
'dsInstancePswd' : 'siroe' ,
'entryToBeAdded' : '%s/i18n/8-bit/base64/Authentication.tp3.add.base64.ldif' \
% remote.data ,
'expectedRC' : 0
}
</call>
<message>
'Modify operation'
</message>
<call function="'modifyEntry'">
{
'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'cn=��ndide, ou=Authentication Tests, o=��ndide R�iz' ,
'dsInstancePswd' : 'siroe' ,
'entryToBeModified': '%s/i18n/8-bit/base64/Authentication.tp3.mod.base64.ldif' \
% remote.data ,
'expectedRC' : 0
}
</call>
<message>
'Delete operation'
</message>
<call function="'modifyEntry'">
{
'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'cn=��ndide, ou=Authentication Tests, o=��ndide R�iz' ,
'dsInstancePswd' : 'siroe' ,
'entryToBeModified': '%s/i18n/8-bit/base64/Authentication.tp3.del.base64.ldif' \
% remote.data ,
'expectedRC' : 50
}
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
<!--- Test Case information
#@TestMarker 8bit_authentication
#@TestName Group: i18n 8-bit: user'd DN and password contain
8-bit characters
#@TestPurpose check that user with DN and password containing
8-bit characters
#@TestPurpose can bind and performed allowed operations as
defined in acis
#@TestPreamble
#@TestSteps Do a ldapsearch binding as
"cn=R�s��e, ou=Authentication Tests, o=��ndide R�iz"
This user has all rights, except on seeAlso attribute
Check that the expected operations can be performed
#@TestPostamble
#@TestResult should be PASSED
-->
<testcase name="getTestCaseName
('8-bit characters DN and pwd user- all rights but on seeAlso')">
<sequence>
<call function="'testCase_Preamble'"/>
<message>
'Self modification'
</message>
<call function="'modifyEntry'">
{
'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'cn=R�s��e, ou=Authentication Tests, o=��ndide R�iz' ,
'dsInstancePswd' : 'sir��' ,
'entryToBeModified': '%s/i18n/8-bit/base64/Authentication.tp4.base64.ldif' \
% remote.data ,
'expectedRC' : 0
}
</call>
<message>
'search operation'
</message>
<call function="'ldapSearchWithScript'">
{
'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'cn=R�s��e, ou=Authentication Tests, o=��ndide R�iz' ,
'dsInstancePswd' : 'sir��' ,
'dsCountEntries' : 'True' ,
'dsBaseDN' : 'ou=Authentication Tests,o=��ndide R�iz' ,
'dsFilter' : 'objectclass=person' ,
'dsAttributes' : 'sn' ,
'dsEncoding' : '8859-1' ,
'expectedRC' : 'noCheck'
}
</call>
<script>
returnString = STAXResult[0][1]
</script>
<call function="'checktestString'">
{
'returnString' : returnString ,
'expectedString' : 'Total number of matching entries: 6'
}
</call>
<message>
'addition of the seeAlso attribute'
</message>
<call function="'modifyEntry'">
{
'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'cn=R�s��e, ou=Authentication Tests, o=��ndide R�iz' ,
'dsInstancePswd' : 'sir��' ,
'entryToBeModified': '%s/i18n/8-bit/base64/Authentication.tp5.base64.ldif' \
% remote.data ,
'expectedRC' : 50
}
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
<call function="'testSuite_Postamble'"/>
</sequence>
</block>
</sequence>
</function>
</stax>