mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

smaguin
06.25.2007 cb2a6adcc86bca6f93c8f25d10e013e7d3ca2fa2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
b0VIM 7.0BqF]7X½%ga125312borgia/qa/ldap/opends/workspaces/guillaume/opends/tests/functional-tests/testcases/groups/mytest.xmlutf-8 U3210#"! Utpÿk^ladßkɧ¢ŠM ȳ°…OÚ ´ ± m E þ ¸ t 8 5 "  ã Ü Û Ô Ó « ª Š ‰ z y [ T A > + ö
¾
ˆ
t
]
+
 
ù Æ  T -  ÛŸ‘ŒˆO¿º°ŠWö˲‘w`RMÖ¿ŠD¬’\D.#⭝qbM=<üĈiI3"!ûßÞ                       { 'returncode' : RC ,                <call function="'checktestRC'">               </process>                       <returnstdout/>                        <stderr mode="'stdout'"/>                      <command>'pwd'</command>                       <!-- <command>'cd %s ; pwd' % dsBinPath</command> -->                      <location>'%s' % STAF_REMOTE_HOSTNAME </location>                  <process name="'just go into ds bin dir and run pwd cmd'">                    </message>                     '------ do ls'                 <message>                  <call function="'testCase_Preamble'"/>           <sequence>           <testcase name="'Group: MyTest: call shell cmd'">        <!-- *********************************************** -->                             </testcase>            </sequence>              <call function="'testCase_Postamble'"/>                } </call>              <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult              <message> '------ Hello world nolog' </message>              <message log="1"> '------ Hello world log=1' </message>              <call function="'testCase_Preamble'"/>            <sequence>          <testcase name="'Group: MyTest: hello world'">         <!-- *********************************************** -->              -->          #@TestResult          #@TestPostamble          #@TestSteps                     #@TestPreamble          #@TestPurpose         pouetpouet          #@TestID              pouet          #@TestName            Group: MyTest: hello world          #@TestMarker          Group MyTest Tests          <!--- Test Case information                       <call function="'group_setup'"> { 'startDS' : True } </call>            file="'%s/testcases/groups/group_setup.xml' % (TESTS_DIR)"/>          <import machine="'%s' % (STAF_LOCAL_HOSTNAME)"                               -->          #@TestHTMLLink        http://opends.dev.java.net/          #@TestScript          mytest.xml          #@TestGroup           Groups          #@TestSuiteGroup      MyTest          #@TestSuiteID         Groups Tests          #@TestSuitePurpose    Try some stuff to test the framework          #@TestSuiteName       Just a simple test          <!--- Test Suite information                    <call function="'testSuite_Preamble'"/>                                </script>            CurrentTestPath['suite']=STAXCurrentBlock              CurrentTestPath['group']='groups'                                    if not CurrentTestPath.has_key('group'):          <script>          <sequence>            <block name="'mytest'">    <sequence>  <function name="main_mytest">  <defaultcall function="main_mytest"/><stax> ! --> !      Portions Copyright 2006-2007 Sun Microsystems, Inc. ! ! CDDL HEADER END ! !      Portions Copyright [yyyy] [name of copyright owner] ! by brackets "[]" replaced with your own identifying information: ! add the following below this CDDL HEADER, with the fields enclosed ! trunk/opends/resource/legal-notices/OpenDS.LICENSE.  If applicable, ! file and include the License file at ! When distributing Covered Code, include this CDDL HEADER in each ! ! and limitations under the License. ! See the License for the specific language governing permissions ! or https://OpenDS.dev.java.net/OpenDS.LICENSE. ! trunk/opends/resource/legal-notices/OpenDS.LICENSE ! You can obtain a copy of the license at ! ! with the License. ! (the "License").  You may not use this file except in compliance ! Common Development and Distribution License, Version 1.0 only ! The contents of this file are subject to the terms of the ! ! CDDL HEADER START<!--<!DOCTYPE stax SYSTEM "stax.dtd"><?xml version="1.0" encoding="UTF-8" standalone="no"?>adÁM^Ýϝ‰wv9ýê¹µŠMà — H  ç ¿ ­ ª — ] # "  ê Ö  Š p N      Ò
Å
ž
y
`
D
)
 
 
Ù Ÿ e + & î¨¤…`@öåΞeL+ìÚÊ ~TB4îÜØÔÓ—Lýù¤›ŒyidVUMI<<<</stax>  </function>        </sequence>                        </block>                </sequence>            <call function="'testSuite_Postamble'"/>                                                 <call function="'group_cleanup'"> { 'stopDS' : False } </call>                           file="'%s/testcases/groups/group_cleanup.xml' % (TESTS_DIR)"/>                      <import machine="'%s' % (STAF_LOCAL_HOSTNAME)"                           </testcase>        </sequence>          <call function="'testCase_Postamble'"/>                       </call>              'result'     : STAXResult }            { 'returncode' : RC ,          <call function="'checktestRC'">          </if>          </else>            </sequence>              <!-- MARCHE PAS!!!!! -->              <return>1</return>              </message>                'Did not find %s in ldap result' % (var)              <message log="1" level="'Error'">            <sequence>          <else>              </message>                '%s find in ldap result' % (var)              <message log="1">          <if expr='titi == "True"'>                              -->          <message>'+++++++ type de STAXResult : %s' % tyty</message>          <message>'+++++++ tutu : %s' % tutu</message><!--          <message>'+++++++ didi : %s' % (didi)</message>          <message>'+++++++ sisi : %s' % (sisi)</message>          <message>'+++++++ titi : %s' % (titi)</message>          <message>'+++++++ totos : %s' % (toto)</message>          </script>            didi=dir(titi)            sisi=type(titi)            titi=toto[1]            toto=["aaaaaa","aaaaaa"]            <!-- toto=STAXResult[0]-->                          print '%s not find in ldap result' % var            else:              print '%s find in ldap result' % var            if var in STAXResult:            var="scarter"          <script>          <message>'+++ totoLLLL: %s' % (toto)</message>          </script>            toto=["aaaaaa","aaaaaa"]          <script>          <message>'+++++++ %s' % STAXResult[0]</message>          <message>'+++++++ %s' % STAXResult</message>                                 </call>            'attributes'       : 'dn' }            'extraParams'      : '-s base' ,            'dsFilter'         : 'objectclass=*'  ,            'dsBaseDN'         : 'uid=scarter, ou=People, dc=example,dc=com' ,            'dsInstancePswd'   : 'sprain' ,            'dsInstanceDn'     : 'uid=scarter, ou=People, dc=example,dc=com' ,            'dsInstancePort'   : DIRECTORY_INSTANCE_PORT ,            { 'dsInstanceHost'   : DIRECTORY_INSTANCE_HOST ,          <call function="'SearchObject'">                    <call function="'testCase_Preamble'"/>        <sequence>         <testcase name="'Group: MyTest: do simple ldapsearch'">        <!-- *********************************************** -->      </testcase>        </sequence>          <call function="'testCase_Postamble'"/>                    </call>                      'result'     : STAXResult }