i18n_8bit_schemaExtension.xml revision d81978a0815d5b8a75633c35e3e1f8708d36f017
<?xml version="1.0" encoding="UTF-8" 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_schemaExtension"/>
<function name="main_8bit_schemaExtension">
<sequence>
<block name="'8bit_schemaExtension'">
<sequence>
<script>
if not CurrentTestPath.has_key('i18n'):
CurrentTestPath['group']='i18n'
CurrentTestPath['suite']=STAXCurrentBlock
</script>
<!---
#@TestSuiteName 8bit_schemaExtension
#@TestSuitePurpose Test the extension of the schema with attributes
and objectclasses containing 8-bit characters.
#@TestSuiteGroup i18n
#@TestScript i18n_8bit_schemaExtension.xml
-->
<call function="'testSuite_Preamble'"/>
<!--- Test Case information
#@TestMarker 8bit_schemaExtension
#@TestName Group: i18n 8-bit: extend schema using latin-1
characters
#@TestID
#@TestPurpose check that schema extension with attributes or
objectclasses containing 8-bit latin-1
characters is refused
#@TestPreamble
#@TestSteps Do a ldapmodify with as argument a file
containing 8-bit Latin-1 characters
#@TestPostamble
#@TestResult should be PASSED, with returned code 21
-->
<testcase name="getTestCaseName
('extend schema with 8-bit Latin-1 characters')">
<sequence>
<call function="'testCase_Preamble'"/>
<call function="'addEntry'">
{
'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
'entryToBeAdded' : '%s/i18n/8-bit/Schema_extension.8859-1.ldif' \
% remote.data ,
'expectedRC' : 21
}
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
<!--- Test Case information
#@TestMarker 8bit_schemaExtension
#@TestName Group: i18n 8-bit: extend schema using 8-bit UTF-8 characters
#@TestID
#@TestPurpose check that schema extension with attributes or objectclasses
containing 8-bit UTF-8 characters is refused
#@TestPreamble
#@TestSteps Do a ldapmodify with as argument a file containing 8-bit UTF-8 characters
#@TestPostamble
#@TestResult should be PASSED, with returned code 21
-->
<testcase name="getTestCaseName('extend schema with UTF-8 characters')">
<sequence>
<call function="'testCase_Preamble'"/>
<call function="'addEntry'">
{
'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
'entryToBeAdded' : '%s/i18n/8-bit/UTF-8/Schema_extension.UTF-8.ldif' \
% remote.data ,
'expectedRC' : 21
}
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
<!--- Test Case information
#@TestMarker 8bit_schemaExtension
#@TestName Group: i18n 8-bit: extend schema using ascii
characters
#@TestID
#@TestPurpose check that schema extension with attributes or
objectclasses containing ascii characters is
working ok
#@TestPreamble
#@TestSteps Do a ldapmodify with as argument a file
containing only ascii characters
#@TestPostamble
#@TestResult should be PASSED, with returned code 0
-->
<testcase name="getTestCaseName
('extend schema with only ascii characters')">
<sequence>
<call function="'testCase_Preamble'"/>
<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/Schema_extension.base64.ldif' \
% remote.data ,
'expectedRC' : 0
}
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
<call function="'testSuite_Postamble'"/>
</sequence>
</block>
</sequence>
</function>
</stax>