operations_basic.xml revision bc6d103061b84279eca028d40ae7d8252a92a188
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams<?xml version="1.0" encoding="UTF-8" standalone="no"?>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams<!--
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams ! CDDL HEADER START
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams !
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams ! The contents of this file are subject to the terms of the
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams ! Common Development and Distribution License, Version 1.0 only
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams ! (the "License"). You may not use this file except in compliance
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams ! with the License.
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams !
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac ! You can obtain a copy of the license at
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac ! trunk/opends/resource/legal-notices/CDDLv1_0.txt
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams ! or http://forgerock.org/license/CDDLv1.0.html.
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams ! See the License for the specific language governing permissions
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams ! and limitations under the License.
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams !
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac ! When distributing Covered Code, include this CDDL HEADER in each
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac ! file and include the License file at
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac ! trunk/opends/resource/legal-notices/CDDLv1_0.txt. If applicable,
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac ! add the following below this CDDL HEADER, with the fields enclosed
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams ! by brackets "[]" replaced with your own identifying information:
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams ! Portions Copyright [yyyy] [name of copyright owner]
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams !
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams ! CDDL HEADER END
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams !
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams ! Copyright 2011-2013 ForgeRock AS.
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams ! -->
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams<stax>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <defaultcall function="main_operations_basic"/>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <function name="main_operations_basic" scope="local">
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <sequence>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <block name="'main_operations_basic'">
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <try>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <sequence>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <script>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams CurrentTestPath['group']='operations'
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams CurrentTestPath['suite']='basic'
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams __group=CurrentTestPath['group']
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams __groupdir='%s/testcases/%s' % (TESTS_DIR,__group)
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams </script>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <!--- Test Suite information
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams #@TestSuiteName Basic operations suite
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams #@TestSuitePurpose Verify basic operations
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams #@TestSuiteID Suite
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams #@TestSuiteGroup Basic
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams #@TestGroup Basic
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams #@TestScript operations.xml
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams #@TestHTMLLink http://www.forgerock.org/
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams -->
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <call function="'testSuite_Preamble'"/>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <try>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <sequence>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <call function="'common_setup'">
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams {
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams 'quickStart' : False ,
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams 'startServer' : False
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams }
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams </call>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <!-- List of Import of Test Functions -->
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <script>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams importList=[]
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams importList.append('basic/operations_basic_tests')
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams </script>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <!-- Import the files for this test suite -->
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <iterate var="__import" in="importList">
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <import machine="STAF_LOCAL_HOSTNAME"
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams file="'%s/%s.xml' % (__groupdir,__import)"/>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams </iterate>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <!-- Specific to basic operations tests -->
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <script>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams timerDuration = '2h'
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams numberOfEntries = 100000
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams addTemplate = '%s/operations/add_template.ldif' % remote.data
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams ldifFile = '%s/import_Entries_100k.ldif' % remote.temp
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams </script>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <!-- List of Test Cases -->
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <script>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams testsList=[]
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams testsList.append('basic_operations_000')
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams testsList.append('basic_operations_001')
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams testsList.append('basic_operations_002')
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams testsList.append('basic_operations_003')
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams testsList.append('basic_operations_004')
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams </script>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <!-- Execute the Tests -->
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <iterate var="__test" in="testsList">
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <sequence>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <call function="'%s' % (__test)" />
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams </sequence>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams </iterate>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams </sequence>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <catch exception="'STAFException.TestSuite.SetupException'">
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <sequence>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <message log="1" level="'fatal'">
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams 'Setup of test suite failed.'
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams </message>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <rethrow/>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams </sequence>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams </catch>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <finally>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <message>'Test Cases Completed.'</message>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams </finally>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams </try>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams </sequence>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <finally>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <sequence>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <!-- Test Suite Cleanup -->
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <message>'Finally: Global Cleanup.'</message>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <try>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <call function="'common_cleanup'" />
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <catch exception="'STAFException'">
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <sequence>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams </sequence>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams </catch>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <finally>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams <call function="'testSuite_Postamble'"/>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams </finally>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams </try>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams </sequence>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams </finally>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams </try>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams </block>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams </sequence>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams </function>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams</stax>
8fc236b9a04ca8cf4a6ee748cc701210ce4910d6gary.williams