<?
xml version="1.0" encoding="UTF-8" standalone="no"?>
! 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 ! You can obtain a copy of the license at ! 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 ! 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] ! Copyright 2008-2009 Sun Microsystems, Inc. <
defaultcall function="clu_base64_checkbehavior"/>
<
function name="clu_base64_checkbehavior">
<
block name="'clu_base64_checkbehavior'">
<!--- Test Suite information #@TestSuiteName base64 check behavior tests #@TestSuitePurpose Test the results of the base64 command. #@TestSuiteGroup base64 check behavior tests CurrentTestPath['group'] = 'clu'
CurrentTestPath['suite'] = STAXCurrentBlock
<
call function="'testSuite_Preamble'"/>
<
call function="'common_setup'">
'allowPreEncodePassword' : True
<!--- Test Case information #@TestMarker base64 check behavior tests #@TestName base64: encode option #@TestPurpose Test base64 encode option. #@TestStep Do an base64 with encode option. #@TestResult Success if base64 returns 0. <
testcase name="getTestCaseName('base64: encode option')">
<
call function="'testCase_Preamble'"/>
<
call function="'Base64WithScript'">
'rawData' : 'hello world'
<!-- STAXResult is not always a list--> except AttributeError,details:
Result='AttributeError: can not parse STAXResult %s' % details
'SUCCESS: RC=%s, Results %s' % (RC,Result)
<
tcstatus result="'pass'"></
tcstatus>
<
message log="1" level="'Error'">
'ERROR : RC=%s, Result=%s' % (RC,Result)
<
tcstatus result="'fail'"></
tcstatus>
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker base64 check behavior tests #@TestName base64: decode #@TestPurpose Test base64 decode option. #@TestStep Do an base64 with decode option. #@TestResult Success if base64 returns 0. <
testcase name="getTestCaseName('base64: decode option')">
<
call function="'testCase_Preamble'"/>
<
call function="'Base64WithScript'">
'encodedData' : 'aGVsbG8gd29ybGQ='
<!-- STAXResult is not always a list--> except AttributeError,details:
Result='AttributeError: can not parse STAXResult %s' % details
'SUCCESS: RC=%s, Results %s' % (RC,Result)
<
tcstatus result="'pass'"></
tcstatus>
<
message log="1" level="'Error'">
'ERROR : RC=%s, Result=%s' % (RC,Result)
<
tcstatus result="'fail'"></
tcstatus>
<
call function="'testCase_Postamble'"/>
<!-- Test Suite Cleanup --> <
message>'Finally: Global CLU Cleanup.'</
message>
<
call function="'common_cleanup'" />
<
catch exception="'STAFException'">
<
message log="1" level="'fatal'">'Cleanup of test suite failed.'</
message>
<
call function="'testSuite_Postamble'"/>