i18n_8bit_dataComparison.xml revision 4153
3717N/A<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
3717N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
3717N/A<!--
3717N/A ! CDDL HEADER START
3717N/A !
3717N/A ! The contents of this file are subject to the terms of the
3717N/A ! Common Development and Distribution License, Version 1.0 only
3717N/A ! (the "License"). You may not use this file except in compliance
3717N/A ! with the License.
3717N/A !
3717N/A ! You can obtain a copy of the license at
3717N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
3717N/A ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
3717N/A ! See the License for the specific language governing permissions
3717N/A ! and limitations under the License.
3717N/A !
3717N/A ! When distributing Covered Code, include this CDDL HEADER in each
3717N/A ! file and include the License file at
3717N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
3717N/A ! add the following below this CDDL HEADER, with the fields enclosed
3717N/A ! by brackets "[]" replaced with your own identifying information:
3717N/A ! Portions Copyright [yyyy] [name of copyright owner]
3717N/A !
3717N/A ! CDDL HEADER END
3717N/A !
3717N/A ! Copyright 2007-2008 Sun Microsystems, Inc.
3717N/A ! -->
3717N/A
3717N/A<stax>
3717N/A
3717N/A <defaultcall function="main_8bit_dataComparison"/>
3717N/A
3717N/A <function name="main_8bit_dataComparison">
3717N/A
3717N/A <sequence>
3717N/A
3717N/A <block name="'8bit_dataComparison'">
3717N/A
3717N/A <sequence>
3717N/A
3717N/A <script>
3717N/A if not CurrentTestPath.has_key('i18n'):
3717N/A CurrentTestPath['group']='i18n'
3717N/A CurrentTestPath['suite']=STAXCurrentBlock
3717N/A </script>
3717N/A
3717N/A <message>
3717N/A 'Add the test data in the directory'
3717N/A </message>
3717N/A
3717N/A <call function="'addEntry'">
3717N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
3717N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
3717N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
3717N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
3717N/A 'extraParams' : '-i 8859-1',
3816N/A 'entryToBeAdded' : '%s/i18n/8-bit/base64/Data_Comparison.tp1.base64.ldif' % remote.data ,
3717N/A 'expectedRC' : 0 }
3717N/A </call>
3717N/A
3717N/A <!---
3717N/A #@TestSuiteName 8bit_dataComparison
3717N/A #@TestSuitePurpose Test the sorting of data based on 8-bit
3717N/A characters attributes values
3717N/A #@TestSuiteGroup i18n
3717N/A #@TestScript i18n_8bit_dataComparison.xml
3717N/A -->
3717N/A
3717N/A <call function="'testSuite_Preamble'"/>
3717N/A
3717N/A
3717N/A <!--- Test Case information
3717N/A #@TestMarker 8bit_dataComparison
3717N/A #@TestName Group: i18n 8-bit: sort data on the server side
3717N/A #@TestPurpose check that a ldapsearch returned values are
3717N/A sorted correctly
3717N/A #@TestPurpose when attribute filter contains non ascii character
3717N/A #@TestPreamble
3717N/A #@TestSteps Do a ldapsearch, I18n_singlename attribute
3717N/A containing non ascii characters
3717N/A #@TestSteps Check that the returned values are sorted
3717N/A correctly
3717N/A #@TestPostamble
3717N/A #@TestResult should be PASSED
3717N/A -->
3717N/A <testcase name="getTestCaseName('sort data on the server side - default ordering')">
3717N/A <sequence>
3717N/A <call function="'testCase_Preamble'"/>
3717N/A
3717N/A <call function="'ldapSearchWithScript'">
3717N/A {
3717N/A 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
3717N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
3717N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
3717N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
3717N/A 'dsBaseDN' : 'o=�lka M�rzella' ,
3717N/A 'dsFilter' : 'objectclass=I18n-Person' ,
3717N/A 'dsSortOrder' : 'I18n-singlename' ,
3717N/A 'dsEncoding' : '8859-1' ,
3717N/A 'expectedRC' : 'noCheck' ,
3717N/A 'outputFile' : 'ldapsearch.out' ,
4153N/A 'outputPath' : remote.temp
3717N/A }
3717N/A </call>
3717N/A
3717N/A <script>
3816N/A RefFile = '%s/i18n/8-bit/base64/Data_Comparison.Ref.base64.ldif' % remote.data
3717N/A </script>
3717N/A
3717N/A <call function="'LdifDiffWithScript-new'">
3717N/A {
3717N/A 'sourceLdif' : RefFile ,
4153N/A 'targetLdif' : '%s/ldapsearch.out' % remote.temp ,
4153N/A 'outputLdif' : '%s/ldifsearch.diff' % remote.temp
3717N/A }
3717N/A </call>
3717N/A
3717N/A <call function="'testCase_Postamble'"/>
3717N/A </sequence>
3717N/A </testcase>
3717N/A
3717N/A <call function="'testSuite_Postamble'"/>
3717N/A
3717N/A </sequence>
3717N/A
3717N/A </block>
3717N/A
3717N/A </sequence>
3717N/A
3717N/A </function>
3717N/A
3717N/A</stax>