clu_status_checkbehavior.xml revision d81978a0815d5b8a75633c35e3e1f8708d36f017
0N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
0N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
0N/A<!--
0N/A ! CDDL HEADER START
0N/A !
0N/A ! The contents of this file are subject to the terms of the
0N/A ! Common Development and Distribution License, Version 1.0 only
0N/A ! (the "License"). You may not use this file except in compliance
0N/A ! with the License.
0N/A !
0N/A ! You can obtain a copy of the license at
0N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
0N/A ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
0N/A ! See the License for the specific language governing permissions
0N/A ! and limitations under the License.
0N/A !
0N/A ! When distributing Covered Code, exclude this CDDL HEADER in each
0N/A ! file and exclude the License file at
0N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
0N/A ! add the following below this CDDL HEADER, with the fields enclosed
0N/A ! by brackets "[]" replaced with your own identifying information:
0N/A ! Portions Copyright [yyyy] [name of copyright owner]
0N/A !
0N/A ! CDDL HEADER END
0N/A !
0N/A ! Copyright 2007-2008 Sun Microsystems, Inc.
0N/A ! -->
0N/A<stax>
0N/A
0N/A <defaultcall function="clu_status_checkbehavior"/>
0N/A
0N/A <function name="clu_status_checkbehavior">
0N/A
0N/A <sequence>
0N/A
0N/A <block name="'clu_status_checkbehavior'">
0N/A
0N/A <sequence>
0N/A
0N/A <!--- Test Suite information
0N/A #@TestSuiteName status check behavior tests
0N/A #@TestSuitePurpose Test the results of the status command.
0N/A #@TestSuiteGroup status check behavior tests
0N/A #@TestScript clu_status_checkbehavior.xml
0N/A -->
0N/A
0N/A <script>
0N/A if not CurrentTestPath.has_key('group'):
0N/A CurrentTestPath['group'] = 'clu'
0N/A CurrentTestPath['suite'] = STAXCurrentBlock
0N/A </script>
0N/A
0N/A <call function="'testSuite_Preamble'"/>
0N/A
0N/A <!--- Test Case information
0N/A #@TestMarker status check behavior tests
0N/A #@TestName status: authenticated mode
0N/A #@TestIssue none
0N/A #@TestPurpose Test status in authenticated mode.
0N/A #@TestPreamble none
0N/A #@TestStep Do a status in authenticated mode.
0N/A #@TestPostamble none
0N/A #@TestResult Success if status returns 0.
0N/A -->
0N/A <testcase name="getTestCaseName('status: authenticated mode')">
0N/A
0N/A <sequence>
0N/A
0N/A <call function="'testCase_Preamble'"/>
0N/A
0N/A <message>
0N/A 'status: authenticated mode'
0N/A </message>
0N/A
0N/A <call function="'StatusWithScript'">
0N/A {
0N/A 'dsBindDN' : DIRECTORY_INSTANCE_DN ,
0N/A 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD
0N/A }
0N/A </call>
0N/A
0N/A <!-- STAXResult is not always a list-->
0N/A <script>
0N/A try:
0N/A RC,Result=STAXResult[0]
0N/A except AttributeError,details:
0N/A Result='AttributeError: can not parse STAXResult %s' % details
0N/A RC='1'
0N/A </script>
0N/A
0N/A <call function="'checktestRC'">
0N/A {
0N/A 'returncode' : RC,
0N/A 'result' : Result
0N/A }
0N/A </call>
0N/A
0N/A <call function="'checktestString'">
0N/A {
0N/A 'returnString' : Result ,
0N/A 'expectedString' : 'Administrative Users: %s' \
0N/A % DIRECTORY_INSTANCE_DN
0N/A }
0N/A </call>
0N/A
0N/A <call function="'checktestString'">
0N/A {
0N/A 'returnString' : Result ,
0N/A 'expectedString' : 'Server Run Status: Started'
0N/A }
0N/A </call>
0N/A
0N/A <call function="'testCase_Postamble'"/>
0N/A
0N/A </sequence>
0N/A
0N/A </testcase>
0N/A
0N/A <call function="'testSuite_Postamble'"/>
0N/A
0N/A </sequence>
0N/A
0N/A </block>
0N/A
0N/A </sequence>
0N/A
0N/A </function>
0N/A
0N/A</stax>
0N/A