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

Jean-Noel Rouvignac
12.11.2013 a7fc9d683358b269b088bd3d0843e26ecee3844c
Staf refactor

TODO: Added
Starting a virtuous cycle where Christophe can put tasks for cleaning up the staf-tests by adding a line in this file.
This file already contains instructions on how to start doing some cleanup tasks to reduce the size of STAF test cases.
1 files added
18 ■■■■■ changed files
opends/tests/staf-tests/TODO 18 ●●●●● patch | view | raw | blame | history
opends/tests/staf-tests/TODO
New file
@@ -0,0 +1,18 @@
- Remove use of default arguments when calling functions
    - Search for the following regexps to find some default args:
        <function-arg-def[^>]*default="DIRECTORY
        <function-arg-def[^>]*default="STAF_REMOTE_HOSTNAME
    - Check calls to 'isAlive', 'StartDsWithScript', 'addEntry', 'modifyEntry'
    - Check calls to 'isAlive', 'StartDsWithScript', 'addEntry', 'modifyEntry'
    - Replace such calls:
            (<call function="'StopDsWithScript'">\s*\{\s*)('location'\s*:\s*STAF_REMOTE_HOSTNAME|'dsHost'\s*:\s*DIRECTORY_INSTANCE_HOST|'dsAdminPort'\s*:\s*DIRECTORY_INSTANCE_ADMIN_PORT|'dsBindDN'\s*:\s*DIRECTORY_INSTANCE_DN|'dsBindPwd'\s*:\s*DIRECTORY_INSTANCE_PSWD)\s*(,\s*)?
        with
            \1
      Replace this:
            <call function="'StopDsWithScript'">\s*\{\s*\}\s*</call>
        with:
            <call function="'StopDsWithScript'" />
      Replace this:
            <!--\s*Stop\s*DS\s*-->\s*<call function="'StopDsWithScript'" />
        with:
            <call function="'StopDsWithScript'" />