clu_status_checkbehavior.xml revision d25372dc8e65a9ed019a88fdf659ca61313f1b31
<?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, exclude this CDDL HEADER in each
! file and exclude 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="clu_status_checkbehavior"/>
<function name="clu_status_checkbehavior">
<sequence>
<block name="'clu_status_checkbehavior'">
<sequence>
<!--- Test Suite information
#@TestSuiteName status check behavior tests
#@TestSuitePurpose Test the results of the status command.
#@TestSuiteGroup status check behavior tests
#@TestScript clu_status_checkbehavior.xml
-->
<script>
if not CurrentTestPath.has_key('group'):
CurrentTestPath['group'] = 'clu'
CurrentTestPath['suite'] = STAXCurrentBlock
</script>
<call function="'testSuite_Preamble'"/>
<!--- Test Case information
#@TestMarker status check behavior tests
#@TestName status: authenticated mode
#@TestIssue none
#@TestPurpose Test status in authenticated mode.
#@TestPreamble none
#@TestStep Do a status in authenticated mode.
#@TestPostamble none
#@TestResult Success if status returns 0.
-->
<testcase name="getTestCaseName('status: authenticated mode')">
<sequence>
<call function="'testCase_Preamble'"/>
<message>
'status: authenticated mode'
</message>
<call function="'StatusWithScript'">
{
'dsBindDN' : DIRECTORY_INSTANCE_DN ,
'dsBindPwd' : DIRECTORY_INSTANCE_PSWD
}
</call>
<!-- STAXResult is not always a list-->
<script>
try:
RC,Result=STAXResult[0]
except AttributeError,details:
Result='AttributeError: can not parse STAXResult %s' % details
RC='1'
</script>
<call function="'checktestRC'">
{
'returncode' : RC,
'result' : Result
}
</call>
<call function="'checktestString'">
{
'returnString' : Result ,
'expectedString' : 'Administrative Users: %s' \
% DIRECTORY_INSTANCE_DN
}
</call>
<call function="'checktestString'">
{
'returnString' : Result ,
'expectedString' : 'Server Run Status: Started'
}
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
<call function="'testSuite_Postamble'"/>
</sequence>
</block>
</sequence>
</function>
</stax>