client_auth_teardown.xml revision d81978a0815d5b8a75633c35e3e1f8708d36f017
<?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, include this CDDL HEADER in each
! file and include 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="client_auth_teardown"/>
<function name="client_auth_teardown">
<sequence>
<!--- Test Case : client_auth Teardown -->
<!---
Place suite-specific test information here.
#@TestSuiteName Teardown Tests
#@TestSuitePurpose Unconfigure JKS keystore and the secure port.
#@TestSuiteGroup Security JKS Teardown Tests
#@TestScript teardown_client_auth.xml
-->
<!--- Delete Branch through SSL port -->
<testcase name="getTestCaseName('teardown')">
<!---
Place test-specific test information here.
The tag, TestMarker, must be the same as the tag, TestSuiteName.
#@TestMarker Teardown Tests
#@TestName JKS Teardown Test
#@TestIssue 413
#@TestPurpose Unconfigure JKS keystore.
#@TestPreamble none
#@TestStep Delete entries that were used for the JKS tests.
#@TestStep Unconfigure JKS keystore.
#@TestStep Remove JKS keystore.
#@TestStep Test search with unsecure port.
#@TestPostamble none
#@TestResult Success if OpenDS returns 0 for all operations
-->
<sequence>
<call function="'testCase_Preamble'"/>
<!-- Load in the local shared python objects from libraries -->
<call function="'loadVariables'">
</call>
<!--- Unconfigure SSL and TLS -->
<message>
'---- Configure SSL and TLS----'
</message>
<call function="'unconfigureSSL_TLS'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD }
</call>
<!-- remove client certificates keystore -->
<message>
'Delete folder %s' % (CERT_TMP)
</message>
<call function="'deleteFolder'">
{ 'location' : DIRECTORY_INSTANCE_HOST,
'foldername' : CERT_TMP }
</call>
<!--- Remove JKS Keystore -->
<message>
'Security: client_auth: Removing JKS Keystore'
</message>
<call function="'deleteFile'">
{ 'location' : STAF_REMOTE_HOSTNAME,
'filename' : '%/config/keystore' % OPENDS_BINPATH }
</call>
<call function="'checktestRC'">
{ 'returncode' : RC ,
'result' : STAXResult }
</call>
<!--- Search With Unsecure Port -->
<message>
'Security: client_auth: Postamble. Searching with Unsecure Connection'
</message>
<call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
'dsBaseDN' : DIRECTORY_INSTANCE_SFX ,
'dsScope' : 'base',
'dsFilter' : 'objectclass=*' ,
'expectedRC' : 0 }
</call>
<call function="'DeleteEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
'dsBaseDN' : USER_1_DN,
'expectedRC' : 0 }
</call>
<call function="'DeleteEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
'dsBaseDN' : USER_2_DN,
'expectedRC' : 0 }
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
</sequence>
</function>
</stax>