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 !
6982N/A ! You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
6982N/A ! or http://forgerock.org/license/CDDLv1.0.html.
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
6982N/A ! file and include the License file at legal-notices/CDDLv1_0.txt.
6982N/A ! If applicable, add the following below this CDDL HEADER, with the
6982N/A ! fields enclosed by brackets "[]" replaced with your own identifying
6982N/A ! information:
3717N/A ! Portions Copyright [yyyy] [name of copyright owner]
3717N/A !
3717N/A ! CDDL HEADER END
3717N/A !
4618N/A ! Copyright 2007-2009 Sun Microsystems, Inc.
6518N/A ! Portions Copyright 2013 ForgeRock AS
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' ,
6539N/A 'dsAttributes' : 'I18n-singlename' ,
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
6518N/A <call function="'LdifDiffWithScript'">
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
6541N/A <call function="'compareFile'">
6541N/A {
6541N/A 'outputFile' : 'ldapsearch.out' ,
6541N/A 'outputPath' : remote.temp ,
6541N/A 'refFile' : 'Data_Comparison.Ref.base64.ldif' ,
6541N/A 'refPath' : '%s/i18n/8-bit/base64' % local.data
6541N/A }
6541N/A </call>
6541N/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>