#@TestSuitePurpose Perform ldap operations through a secure port using jks keystore #@TestSuiteGroup Security JKS Bob Tests <
import machine="STAF_LOCAL_HOSTNAME" <
call function="'setup_custom_jks'" />
<!--- Test Case : Add Entries through SSL port --> Place test-specific test information here. The tag, TestMarker, must be the same as the tag, TestSuiteName. #@TestName JKS Bob Test 1 #@TestPurpose Add entries through a secure port. #@TestStep Client calls ldapmodify with the filename to the appropriate file to OpenDS through a secure port. #@TestResult Success if OpenDS returns 0 <
testcase name="getTestCaseName('Custom JKS - Add Entries')">
<
call function="'testCase_Preamble'"/>
'Security: JKS: Adding Entries Through SSL Port'
<
call function="'addEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_SSL_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
'extraParams' : '-Z -X' }
<
call function="'testCase_Postamble'"/>
<!--- Test Case : Modify Entry through SSL port --> Place test-specific test information here. The tag, TestMarker, be the same as the marker, TestSuiteName. #@TestName JKS Bob Test 2 #@TestPurpose Add an RDN to an existing entry through a secure port. #@TestStep Client calls ldapmodify with the filename to the appropriate file to OpenDS through a secure port. #@TestResult Success if OpenDS returns 0 <
testcase name="getTestCaseName('Custom JKS - Modify Entry')">
<
call function="'testCase_Preamble'"/>
'Security: JKS: Modifying Entry Through SSL Port'
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_SSL_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
'extraParams' : '-Z -X' }
<
call function="'testCase_Postamble'"/>
<!--- Test Case : Add Attribute to Entry through SSL port --> Place test-specific test information here. The tag, TestMarker, be the same as the marker, TestSuiteName. #@TestName JKS Bob Test 3 #@TestPurpose Add a jpeg photo to an existing entry through a secure port. #@TestStep Client calls ldapmodify with the filename to the appropriate file to OpenDS through a secure port. #@TestResult Success if OpenDS returns 0 <
testcase name="getTestCaseName('Custom JKS - Add Attr to Entry')">
<
call function="'testCase_Preamble'"/>
'Security: JKS: Adding Attr to Entry Through SSL Port'
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_SSL_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
'extraParams' : '-Z -X' }
<
call function="'testCase_Postamble'"/>
<!--- Test Case : Modify Attribute in Entry through SSL port --> Place test-specific test information here. The tag, TestMarker, be the same as the marker, TestSuiteName. #@TestName JKS Bob Test 4 #@TestPurpose Replace a jpeg photo in an existing entry through a secure port. #@TestStep Client calls ldapmodify with the filename to the appropriate file to OpenDS through a secure port. #@TestResult Success if OpenDS returns 0 <
testcase name="getTestCaseName('Custom JKS - Modify Attr in Entry')">
<
call function="'testCase_Preamble'"/>
'Security: JKS: Modifying Attr in Entry Through SSL Port'
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_SSL_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
'extraParams' : '-Z -X' }
<
call function="'testCase_Postamble'"/>
<!--- Test Case : Delete Entry through SSL port --> Place test-specific test information here. The tag, TestMarker, be the same as the marker, TestSuiteName. #@TestName JKS Bob Test 5 #@TestPurpose Delete an existing entry through a secure port. #@TestStep Client calls ldapmodify with the filename to the appropriate file to OpenDS through a secure port. #@TestResult Success if OpenDS returns 0 <
testcase name="getTestCaseName('Custom JKS - Delete Entry')">
<
call function="'testCase_Preamble'"/>
'Security: JKS: Deleting Entry Through SSL Port'
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_SSL_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
'extraParams' : '-Z -X' }
<
call function="'testCase_Postamble'"/>
<!--- Test Case : List propeties using dsconfig through SSL port --> Place test-specific test information here. The tag, TestMarker, be the same as the marker, TestSuiteName. #@TestName JKS Bob Test 6 #@TestPurpose List properties using dsconfig. #@TestStep Client calls dsconfig to list ldaps connection handler properties. #@TestResult Success if OpenDS returns 0 <
testcase name="getTestCaseName('Custom JKS - List LDAPS Conn Handler Props')">
<
call function="'testCase_Preamble'"/>
'Security: JKS: Listing LDAPS Connection Handler Properties'
<
call function="'dsconfig'">
'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_SSL_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
'subcommand' : 'get-connection-handler-prop' ,
'objectType' : 'handler-name' ,
'objectName' : 'LDAPS Connection Handler',
'optionsString' : '-Z -X',
<
import machine="STAF_LOCAL_HOSTNAME" <
call function="'teardown_custom_jks'" />