mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

mkeyes
17.10.2007 680f5f5fcab20a83352a10de70aeafa041140b5b
Added some functional tests for Issue 1830.
4 files modified
139 ■■■■■ changed files
opends/tests/functional-tests/testcases/security/jks/security_bob_custom_jks.xml 38 ●●●●● patch | view | raw | blame | history
opends/tests/functional-tests/testcases/security/jks/security_bob_jks.xml 40 ●●●●● patch | view | raw | blame | history
opends/tests/functional-tests/testcases/security/pkcs12/security_bob_pkcs12.xml 37 ●●●●● patch | view | raw | blame | history
opends/tests/functional-tests/testcases/security/startTLS/security_bob_startTLS.xml 24 ●●●●● patch | view | raw | blame | history
opends/tests/functional-tests/testcases/security/jks/security_bob_custom_jks.xml
@@ -218,6 +218,44 @@
            <call function="'testCase_Postamble'"/>
          </sequence>
        </testcase>
        <!--- 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.
            #@TestMarker                JKS Tests
            #@TestName                  JKS Bob Test 6
            #@TestIssue                 1830
            #@TestPurpose               List properties using dsconfig.
            #@TestPreamble              none
            #@TestStep                  Client calls dsconfig
                                        to list ldaps connection handler properties.
            #@TestPostamble             none
            #@TestResult                Success if OpenDS returns 0
        -->
        <testcase name="getTestCaseName('JKS - List LDAPS Conn Handler Props')">
          <sequence>
            <call function="'testCase_Preamble'"/>
            <message>
              'Security: JKS: Listing LDAPS Connection Handler Properties'
            </message>
            <call function="'dsconfig'">
              { 'location'       : location,
              'dsPath'         : dsPath ,
              'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
              'dsInstancePort' : DIRECTORY_INSTANCE_SSL_PORT ,
              'dsInstanceDn'   : dsInstanceDn ,
              'dsInstancePswd' : dsInstancePswd ,
              'subcommand'     : 'get-connection-handler-prop' ,
              'objectType'     : 'handler-name' ,
              'objectName'     : 'LDAPS Connection Handler',
              'optionsString'  : '-Z -X',
              'expectedRC'     : 0
              }
            </call>
          </sequence>
        </testcase>
        <import machine="STAF_LOCAL_HOSTNAME"
            file="'%s/testcases/security/jks/security_teardown_custom_jks.xml' % (TESTS_DIR)"/>
opends/tests/functional-tests/testcases/security/jks/security_bob_jks.xml
@@ -219,6 +219,46 @@
          </sequence>
        </testcase>
         <!--- 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.
            #@TestMarker                JKS Tests
            #@TestName                  JKS Bob Test 6
            #@TestIssue                 1830
            #@TestPurpose               List properties using dsconfig.
            #@TestPreamble              none
            #@TestStep                  Client calls dsconfig
                                        to list ldaps connection handler properties.
            #@TestPostamble             none
            #@TestResult                Success if OpenDS returns 0
        -->
        <testcase name="getTestCaseName('JKS - List LDAPS Conn Handler Props')">
          <sequence>
            <call function="'testCase_Preamble'"/>
            <message>
               'Security: JKS: Listing LDAPS Connection Handler Properties'
            </message>
            <call function="'dsconfig'">
            { 'location'       : location,
              'dsPath'         : dsPath ,
              'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
              'dsInstancePort' : DIRECTORY_INSTANCE_SSL_PORT ,
              'dsInstanceDn'   : dsInstanceDn ,
              'dsInstancePswd' : dsInstancePswd ,
              'subcommand'     : 'get-connection-handler-prop' ,
              'objectType'     : 'handler-name' ,
              'objectName'     : 'LDAPS Connection Handler',
              'optionsString'  : '-Z -X',
              'expectedRC'     : 0
            }
          </call>
          <call function="'testCase_Postamble'"/>
          </sequence>
        </testcase>
        <import machine="STAF_LOCAL_HOSTNAME"
            file="'%s/testcases/security/jks/security_teardown_jks.xml' % (TESTS_DIR)"/>
        <call function="'teardown_jks'" />
opends/tests/functional-tests/testcases/security/pkcs12/security_bob_pkcs12.xml
@@ -213,6 +213,43 @@
            <call function="'testCase_Postamble'"/>
          </sequence>
        </testcase>
  <!--- 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.
            #@TestMarker                PKCS12 Tests
            #@TestName                  PKCS12 Bob Test 6
            #@TestIssue                 1830
            #@TestPurpose               List properties using dsconfig.
            #@TestPreamble              none
            #@TestStep                  Client calls dsconfig
                                        to list ldaps connection handler properties.
            #@TestPostamble             none
            #@TestResult                Success if OpenDS returns 0
        -->
        <testcase name="getTestCaseName('List LDAPS Conn Handler Props')">
          <sequence>
            <call function="'testCase_Preamble'"/>
            <message>
              'Security: PKCS12: Listing LDAPS Connection Handler Properties'
            </message>
            <call function="'dsconfig'">
              { 'location'       : location,
              'dsPath'         : dsPath ,
              'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
              'dsInstancePort' : DIRECTORY_INSTANCE_SSL_PORT ,
              'dsInstanceDn'   : dsInstanceDn ,
              'dsInstancePswd' : dsInstancePswd ,
              'subcommand'     : 'get-connection-handler-prop' ,
              'objectType'     : 'handler-name' ,
              'objectName'     : 'LDAPS Connection Handler',
              'optionsString'  : '-Z -X',
              'expectedRC'     : 0
              }
            </call>
          </sequence>
        </testcase>
     </sequence>
opends/tests/functional-tests/testcases/security/startTLS/security_bob_startTLS.xml
@@ -120,6 +120,30 @@
            
          </sequence>
        </testcase>
        <testcase name="getTestCaseName('List LDAP Conn Handeler Props')">
          <sequence>
            <call function="'testCase_Preamble'"/>
            <message>
              'Security: JKS: Listing LDAPS Connection Handler Properties'
            </message>
            <call function="'dsconfig'">
              { 'location'       : location,
              'dsPath'         : dsPath ,
              'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
              'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
              'dsInstanceDn'   : dsInstanceDn ,
              'dsInstancePswd' : dsInstancePswd ,
              'subcommand'     : 'get-connection-handler-prop' ,
              'objectType'     : 'handler-name' ,
              'objectName'     : 'LDAP Connection Handler',
              'optionsString'  : '-q -X',
              'expectedRC'     : 0
              }
            </call>
          </sequence>
        </testcase>
     </sequence>