Update the functional tests for package mode (split between install and instance)
| | |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 5 , |
| | | { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 } |
| | | </call> |
| | | |
| | |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 5 , |
| | | { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 } |
| | | </call> |
| | | |
| | |
| | | <!-- Wait for DS to start --> |
| | | <call function="'isAlive'"> |
| | | { 'location' : mylocation, |
| | | 'noOfLoops' : 1 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000, |
| | | 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), |
| | | 'dsInstancePort' : DsInstancePort |
| | |
| | | <call function="'importLdif'"> |
| | | { 'ldifFile' : '%s/backends/Export_schema.ldif' % remote.data, |
| | | 'backEnd' : 'schema', |
| | | 'dsPath' : '%s/server2/%s' % (DIRECTORY_INSTANCE_DIR, OPENDSNAME), |
| | | 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), |
| | | 'knownIssue' : '2173' |
| | | } |
| | | </call> |
| | |
| | | <!-- Wait for DS to start --> |
| | | <call function="'isAlive'"> |
| | | { 'location' : mylocation, |
| | | 'noOfLoops' : 1 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000, |
| | | 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), |
| | | 'dsInstancePort' : DsInstancePort |
| | |
| | | <!-- Wait for DS to start --> |
| | | <call function="'isAlive'"> |
| | | { 'location' : mylocation, |
| | | 'noOfLoops' : 1 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000, |
| | | 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), |
| | | 'dsInstancePort' : DsInstancePort |
| | |
| | | <!-- Wait for DS to start --> |
| | | <call function="'isAlive'"> |
| | | { 'location' : mylocation, |
| | | 'noOfLoops' : 1 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000, |
| | | 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), |
| | | 'dsInstancePort' : DsInstancePort |
| | |
| | | <!-- Wait for DS to start --> |
| | | <call function="'isAlive'"> |
| | | { 'location' : mylocation, |
| | | 'noOfLoops' : 1 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000, |
| | | 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), |
| | | 'dsInstancePort' : DsInstancePort |
| | |
| | | <!-- Wait for DS to start --> |
| | | <call function="'isAlive'"> |
| | | { 'location' : mylocation, |
| | | 'noOfLoops' : 1 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000, |
| | | 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), |
| | | 'dsInstancePort' : DsInstancePort} |
| | |
| | | <!-- Wait for DS to start --> |
| | | <call function="'isAlive'"> |
| | | { 'location' : mylocation, |
| | | 'noOfLoops' : 1 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000, |
| | | 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), |
| | | 'dsInstancePort' : DsInstancePort |
| | |
| | | <!-- Wait for DS to start --> |
| | | <call function="'isAlive'"> |
| | | { 'location' : mylocation, |
| | | 'noOfLoops' : 1 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000, |
| | | 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), |
| | | 'dsInstancePort' : DsInstancePort |
| | |
| | | <!-- Wait for DS to start --> |
| | | <call function="'isAlive'"> |
| | | { 'location' : mylocation, |
| | | 'noOfLoops' : 1 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000, |
| | | 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), |
| | | 'dsInstancePort' : DsInstancePort |
| | |
| | | <!-- Wait for DS to start --> |
| | | <call function="'isAlive'"> |
| | | { 'location' : mylocation, |
| | | 'noOfLoops' : 1 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000, |
| | | 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), |
| | | 'dsInstancePort' : DsInstancePort |
| | |
| | | <!-- Wait for DS to start --> |
| | | <call function="'isAlive'"> |
| | | { 'location' : mylocation, |
| | | 'noOfLoops' : 1 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000, |
| | | 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), |
| | | 'dsInstancePort' : DsInstancePort |
| | |
| | | <!-- Wait for DS to start --> |
| | | <call function="'isAlive'"> |
| | | { 'location' : mylocation, |
| | | 'noOfLoops' : 1 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000, |
| | | 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), |
| | | 'dsInstancePort' : DsInstancePort |
| | |
| | | <!-- Wait for DS to start --> |
| | | <call function="'isAlive'"> |
| | | { 'location' : mylocation, |
| | | 'noOfLoops' : 1 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000, |
| | | 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), |
| | | 'dsInstancePort' : DsInstancePort |
| | |
| | | <!-- Wait for DS to start --> |
| | | <call function="'isAlive'"> |
| | | { 'location' : mylocation, |
| | | 'noOfLoops' : 1 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000, |
| | | 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), |
| | | 'dsInstancePort' : DsInstancePort |
| | |
| | | <!-- Wait for DS to start --> |
| | | <call function="'isAlive'"> |
| | | { 'location' : mylocation, |
| | | 'noOfLoops' : 1 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000, |
| | | 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), |
| | | 'dsInstancePort' : DsInstancePort |
| | |
| | | <!-- Wait for DS to start --> |
| | | <call function="'isAlive'"> |
| | | { 'location' : mylocation, |
| | | 'noOfLoops' : 1 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000, |
| | | 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), |
| | | 'dsInstancePort' : DsInstancePort} |
| | |
| | | <!-- Wait for DS to start --> |
| | | <call function="'isAlive'"> |
| | | { 'location' : mylocation, |
| | | 'noOfLoops' : 1 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000, |
| | | 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), |
| | | 'dsInstancePort' : DsInstancePort |
| | |
| | | <!-- Wait for DS to start --> |
| | | <call function="'isAlive'"> |
| | | { 'location' : mylocation, |
| | | 'noOfLoops' : 1 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000, |
| | | 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), |
| | | 'dsInstancePort' : DsInstancePort |
| | |
| | | <!-- Wait for DS to start --> |
| | | <call function="'isAlive'"> |
| | | { 'location' : mylocation, |
| | | 'noOfLoops' : 1 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000, |
| | | 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), |
| | | 'dsInstancePort' : DsInstancePort |
| | |
| | | <!-- Wait for DS to start --> |
| | | <call function="'isAlive'"> |
| | | { 'location' : mylocation, |
| | | 'noOfLoops' : 1 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000, |
| | | 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), |
| | | 'dsInstancePort' : DsInstancePort |
| | |
| | | <!-- Wait for DS to start --> |
| | | <call function="'isAlive'"> |
| | | { 'location' : mylocation, |
| | | 'noOfLoops' : 1 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000, |
| | | 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), |
| | | 'dsInstancePort' : DsInstancePort |
| | |
| | | <!-- Wait for DS to start --> |
| | | <call function="'isAlive'"> |
| | | { 'location' : mylocation, |
| | | 'noOfLoops' : 1 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000, |
| | | 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), |
| | | 'dsInstancePort' : DsInstancePort |
| | |
| | | <!-- Wait for DS to start --> |
| | | <call function="'isAlive'"> |
| | | { 'location' : mylocation, |
| | | 'noOfLoops' : 1 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000, |
| | | 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), |
| | | 'dsInstancePort' : DsInstancePort |
| | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Example.ldif' % remote.data, |
| | | 'dsRejectFile' : '%s/rejects.txt' % TMPDIR, |
| | | 'dsRejectFile' : '%s/rejects.txt' % remote.temp, |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Example.ldif' % remote.data, |
| | | 'dsRejectFile' : '%s/rejects.txt' % TMPDIR, |
| | | 'dsRejectFile' : '%s/rejects.txt' % remote.temp, |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 5 , |
| | | { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 5 , |
| | | { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { |
| | | 'noOfLoops' : 5 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.1*' , |
| | | 'expectedRC' : 'noCheck' , |
| | | 'outputFile' : 'ldapsearch_simplepagesize_30.out' |
| | | 'outputFile' : 'ldapsearch_simplepagesize_30.out' , |
| | | 'outputPath' : remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'LdifDiffWithScript'"> |
| | | { |
| | | 'sourceLdif' : '%s/ldapsearch_simplepagesize_30.out' \ |
| | | % DIRECTORY_INSTANCE_DIR , |
| | | % remote.temp , |
| | | 'targetLdif' : '%s/clu/ldapsearch_simplepagesize_30.ref' \ |
| | | % remote.data , |
| | | 'outputLdif' : '%s/ldapsearch_simplepagesize_30.diff' \ |
| | | % DIRECTORY_INSTANCE_DIR |
| | | % remote.temp |
| | | } |
| | | </call> |
| | | |
| | |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.1*' , |
| | | 'expectedRC' : 'noCheck' , |
| | | 'outputFile' : 'ldapsearch_simplepagesize_1.out' |
| | | 'outputFile' : 'ldapsearch_simplepagesize_1.out' , |
| | | 'outputPath' : remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'LdifDiffWithScript'"> |
| | | { |
| | | 'sourceLdif' : '%s/ldapsearch_simplepagesize_1.out' \ |
| | | % DIRECTORY_INSTANCE_DIR , |
| | | % remote.temp , |
| | | 'targetLdif' : '%s/clu/ldapsearch_simplepagesize_1.ref' \ |
| | | % remote.data , |
| | | 'outputLdif' : '%s/ldapsearch_simplepagesize_1.diff' \ |
| | | % DIRECTORY_INSTANCE_DIR |
| | | % remote.temp |
| | | } |
| | | </call> |
| | | |
| | |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilename' : filterfile , |
| | | 'dsAttributes' : 'dn' , |
| | | 'outputFile' : 'ldapsearch_filterfile_and_attribute.out' |
| | | 'outputFile' : 'ldapsearch_filterfile_and_attribute.out' , |
| | | 'outputPath' : remote.temp |
| | | } |
| | | </call> |
| | | |
| | |
| | | <call function="'LdifDiffWithScript'"> |
| | | { |
| | | 'sourceLdif' : '%s/ldapsearch_filterfile_and_attribute.out' \ |
| | | % DIRECTORY_INSTANCE_DIR , |
| | | % remote.temp , |
| | | 'targetLdif' : '%s/clu/ldapsearch_filterfile_and_attribute.ref'\ |
| | | % remote.data , |
| | | 'outputLdif' : '%s/ldapsearch_filterfile_and_attribute.diff' \ |
| | | % DIRECTORY_INSTANCE_DIR |
| | | % remote.temp |
| | | } |
| | | </call> |
| | | |
| | |
| | | { |
| | | 'sourceLdif' : sourceldif , |
| | | 'targetLdif' : sourceldif , |
| | | 'outputLdif' : '%s/ldif-diff_nodiffs.out' \ |
| | | % DIRECTORY_INSTANCE_DIR |
| | | 'outputLdif' : '%s/ldif-diff_nodiffs.out' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | |
| | | { |
| | | 'sourceLdif' : sourceldif , |
| | | 'targetLdif' : targetldif , |
| | | 'outputLdif' : '%s/ldif-diff_withdiffs.out' \ |
| | | % DIRECTORY_INSTANCE_DIR , |
| | | 'outputLdif' : '%s/ldif-diff_withdiffs.out' % remote.temp , |
| | | 'expectedRC' : 1 , |
| | | 'knownIssue' : '2641' |
| | | } |
| | |
| | | { |
| | | 'sourceLdif' : sourceldif , |
| | | 'targetLdif' : targetldif , |
| | | 'outputLdif' : '%s/ldif-diff.out' \ |
| | | % DIRECTORY_INSTANCE_DIR , |
| | | 'outputLdif' : '%s/ldif-diff.out' % remote.temp , |
| | | 'expectedRC' : 'noCheck' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'compareFile'"> |
| | | { |
| | | { |
| | | 'outputFile' : 'ldif-diff.out' , |
| | | 'outputPath' : remote.temp , |
| | | 'refFile' : 'ldif-diff.ref', |
| | | 'knownIssue' : '3111' |
| | | } |
| | |
| | | 'sourceLdif' : sourceldif , |
| | | 'targetLdif' : targetldif , |
| | | 'outputLdif' : '%s/ldif-diff_singlevalue.out' \ |
| | | % DIRECTORY_INSTANCE_DIR , |
| | | % remote.temp , |
| | | 'singleValueChanges' : 'True' , |
| | | 'expectedRC' : 'noCheck' |
| | | } |
| | |
| | | <call function="'compareFile'"> |
| | | { |
| | | 'outputFile' : 'ldif-diff_singlevalue.out' , |
| | | 'outputPath' : remote.temp , |
| | | 'refFile' : 'ldif-diff_singlevalue.ref' , |
| | | 'knownIssue' : '3111' |
| | | } |
| | |
| | | 'sourceLdif' : sourceldif , |
| | | 'changesLdif' : '%s/clu/ldifmodify_checkbehavior.ldif' \ |
| | | % remote.data , |
| | | 'targetLdif' : '%s/ldifmodify.out' % DIRECTORY_INSTANCE_DIR |
| | | 'targetLdif' : '%s/ldifmodify.out' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'LdifDiffWithScript'"> |
| | | { |
| | | 'sourceLdif' : '%s/ldifmodify.out' % DIRECTORY_INSTANCE_DIR , |
| | | 'sourceLdif' : '%s/ldifmodify.out' % remote.temp , |
| | | 'targetLdif' : '%s/clu/ldifmodify.ref' % remote.data , |
| | | 'outputLdif' : '%s/ldifmodify.diff' % DIRECTORY_INSTANCE_DIR |
| | | 'outputLdif' : '%s/ldifmodify.diff' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | |
| | | <call function="'LdifModifyWithScript'"> |
| | | { |
| | | 'sourceLdif' : sourceldif , |
| | | 'changesLdif' : '%s/clu/ldifmodify_moddn.ldif' \ |
| | | % remote.data , |
| | | 'targetLdif' : '%s/ldifmodify_moddn.out' \ |
| | | % DIRECTORY_INSTANCE_DIR , |
| | | 'changesLdif' : '%s/clu/ldifmodify_moddn.ldif' % remote.data , |
| | | 'targetLdif' : '%s/ldifmodify_moddn.out' % remote.temp , |
| | | 'expectedRC' : 1 |
| | | } |
| | | </call> |
| | |
| | | 'sourceLdif' : sourceldif , |
| | | 'changesLdif' : '%s/clu/ldifmodify_concurrente.ldif' \ |
| | | % remote.data , |
| | | 'targetLdif' : '%s/ldifmodify_concurrente.out' \ |
| | | % DIRECTORY_INSTANCE_DIR , |
| | | 'targetLdif' : '%s/ldifmodify_concurrente.out' % remote.temp , |
| | | 'expectedRC' : 1 |
| | | } |
| | | </call> |
| | |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.1*' , |
| | | 'outputFile' : 'ldapsearch.out' , |
| | | 'outputPath' : DIRECTORY_INSTANCE_DIR |
| | | 'outputPath' : remote.temp |
| | | } |
| | | </call> |
| | | |
| | |
| | | 'dsLdifFile' : dsfilename , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.1*' , |
| | | 'dsOutputFile' : '%s/ldifsearch.out' % DIRECTORY_INSTANCE_DIR |
| | | 'dsOutputFile' : '%s/ldifsearch.out' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'LdifDiffWithScript'"> |
| | | { |
| | | 'sourceLdif' : '%s/ldifsearch.out' % DIRECTORY_INSTANCE_DIR , |
| | | 'targetLdif' : '%s/ldapsearch.out' % DIRECTORY_INSTANCE_DIR , |
| | | 'outputLdif' : '%s/ldifsearch.diff' % DIRECTORY_INSTANCE_DIR |
| | | 'sourceLdif' : '%s/ldifsearch.out' % remote.temp , |
| | | 'targetLdif' : '%s/ldapsearch.out' % remote.temp , |
| | | 'outputLdif' : '%s/ldifsearch.diff' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | |
| | | 'dsBaseDN' : 'dc=com' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'outputFile' : 'scope_ldapsearch.out' , |
| | | 'outputPath' : DIRECTORY_INSTANCE_DIR |
| | | 'outputPath' : remote.temp |
| | | } |
| | | </call> |
| | | |
| | |
| | | 'dsSearchScope' : 'base' , |
| | | 'dsBaseDN' : 'dc=com' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'dsOutputFile' : '%s/scope_ldifsearch.out' \ |
| | | % DIRECTORY_INSTANCE_DIR |
| | | 'dsOutputFile' : '%s/scope_ldifsearch.out' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'LdifDiffWithScript'"> |
| | | { |
| | | 'sourceLdif' : '%s/scope_ldifsearch.out' \ |
| | | % DIRECTORY_INSTANCE_DIR , |
| | | 'targetLdif' : '%s/scope_ldapsearch.out' \ |
| | | % DIRECTORY_INSTANCE_DIR , |
| | | 'outputLdif' : '%s/scope_ldifsearch.diff' \ |
| | | % DIRECTORY_INSTANCE_DIR |
| | | 'sourceLdif' : '%s/scope_ldifsearch.out' % remote.temp , |
| | | 'targetLdif' : '%s/scope_ldapsearch.out' % remote.temp , |
| | | 'outputLdif' : '%s/scope_ldifsearch.diff' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | |
| | | 'dsFilterFile' : filterfile , |
| | | 'dsAttributes' : 'dn' , |
| | | 'dsOutputFile' : '%s/ldifsearch_filterfile_and_attribute.out' \ |
| | | % DIRECTORY_INSTANCE_DIR |
| | | % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'LdifDiffWithScript'"> |
| | | { |
| | | 'sourceLdif' : '%s/ldifsearch_filterfile_and_attribute.out' \ |
| | | % DIRECTORY_INSTANCE_DIR , |
| | | % remote.temp , |
| | | 'targetLdif' : '%s/clu/ldapsearch_filterfile_and_attribute.ref'\ |
| | | % remote.data , |
| | | 'outputLdif' : '%s/ldifmodify.diff' % DIRECTORY_INSTANCE_DIR |
| | | 'outputLdif' : '%s/ldifmodify.diff' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | |
| | | 'dsFilter' : 'uid=user.1*' , |
| | | 'dsAttributes' : '@person' , |
| | | 'outputFile' : 'ocname1_ldapsearch.out' , |
| | | 'outputPath' : DIRECTORY_INSTANCE_DIR |
| | | 'outputPath' : remote.temp |
| | | } |
| | | </call> |
| | | |
| | |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.1*' , |
| | | 'dsAttributes' : '@person' , |
| | | 'dsOutputFile' : '%s/ocname1_ldifsearch.out' \ |
| | | % DIRECTORY_INSTANCE_DIR |
| | | 'dsOutputFile' : '%s/ocname1_ldifsearch.out' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'LdifDiffWithScript'"> |
| | | { |
| | | 'sourceLdif' : '%s/ocname1_ldifsearch.out' \ |
| | | % DIRECTORY_INSTANCE_DIR , |
| | | 'targetLdif' : '%s/ocname1_ldapsearch.out' \ |
| | | % DIRECTORY_INSTANCE_DIR , |
| | | 'outputLdif' : '%s/ocname1_ldifsearch.diff' \ |
| | | % DIRECTORY_INSTANCE_DIR |
| | | 'sourceLdif' : '%s/ocname1_ldifsearch.out' % remote.temp , |
| | | 'targetLdif' : '%s/ocname1_ldapsearch.out' % remote.temp , |
| | | 'outputLdif' : '%s/ocname1_ldifsearch.diff' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | |
| | | 'dsFilter' : 'uid=user.1*' , |
| | | 'dsAttributes' : '@inetorgperson' , |
| | | 'outputFile' : 'ocname2_ldapsearch.out' , |
| | | 'outputPath' : DIRECTORY_INSTANCE_DIR |
| | | 'outputPath' : remote.temp |
| | | } |
| | | </call> |
| | | |
| | |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.1*' , |
| | | 'dsAttributes' : '@inetorgperson' , |
| | | 'dsOutputFile' : '%s/ocname2_ldifsearch.out' \ |
| | | % DIRECTORY_INSTANCE_DIR |
| | | 'dsOutputFile' : '%s/ocname2_ldifsearch.out' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'LdifDiffWithScript'"> |
| | | { |
| | | 'sourceLdif' : '%s/ocname2_ldifsearch.out' \ |
| | | % DIRECTORY_INSTANCE_DIR , |
| | | 'targetLdif' : '%s/ocname2_ldapsearch.out' \ |
| | | % DIRECTORY_INSTANCE_DIR , |
| | | 'outputLdif' : '%s/ocname2_ldifsearch.diff' \ |
| | | % DIRECTORY_INSTANCE_DIR |
| | | 'sourceLdif' : '%s/ocname2_ldifsearch.out' % remote.temp , |
| | | 'targetLdif' : '%s/ocname2_ldapsearch.out' % remote.temp , |
| | | 'outputLdif' : '%s/ocname2_ldifsearch.diff' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | |
| | | <call function="'MakeLdifWithScript'"> |
| | | { |
| | | 'templateFile' : template , |
| | | 'ldifFile' : '%s/make-ldif_seed0_1.ldif' \ |
| | | % DIRECTORY_INSTANCE_DIR , |
| | | 'ldifFile' : '%s/make-ldif_seed0_1.ldif' % remote.temp , |
| | | 'randomSeed' : 0 |
| | | } |
| | | </call> |
| | |
| | | <call function="'MakeLdifWithScript'"> |
| | | { |
| | | 'templateFile' : template , |
| | | 'ldifFile' : '%s/make-ldif_seed0_2.ldif' \ |
| | | % DIRECTORY_INSTANCE_DIR , |
| | | 'ldifFile' : '%s/make-ldif_seed0_2.ldif' % remote.temp , |
| | | 'randomSeed' : 0 |
| | | } |
| | | </call> |
| | |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { |
| | | 'dsLdifFile' : '%s/make-ldif_seed0_2.ldif' \ |
| | | % DIRECTORY_INSTANCE_DIR , |
| | | 'dsLdifFile' : '%s/make-ldif_seed0_2.ldif' % remote.temp , |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE , |
| | | 'dsAppend' : 'True' |
| | | } |
| | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { |
| | | 'noOfLoops' : 5 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | |
| | | <call function="'MakeLdifWithScript'"> |
| | | { |
| | | 'templateFile' : template , |
| | | 'ldifFile' : '%s/make-ldif_noseed_1.ldif' \ |
| | | % DIRECTORY_INSTANCE_DIR |
| | | 'ldifFile' : '%s/make-ldif_noseed_1.ldif' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | |
| | | <call function="'MakeLdifWithScript'"> |
| | | { |
| | | 'templateFile' : template , |
| | | 'ldifFile' : '%s/make-ldif_noseed_2.ldif' \ |
| | | % DIRECTORY_INSTANCE_DIR |
| | | 'ldifFile' : '%s/make-ldif_noseed_2.ldif' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | |
| | | <call function="'MakeLdifWithScript'"> |
| | | { |
| | | 'templateFile' : template , |
| | | 'ldifFile' : '%s/make-ldif_seed5.ldif' \ |
| | | % DIRECTORY_INSTANCE_DIR , |
| | | 'ldifFile' : '%s/make-ldif_seed5.ldif' % remote.temp , |
| | | 'randomSeed' : 5 |
| | | } |
| | | </call> |
| | |
| | | |
| | | <call function="'LdifDiffWithScript'"> |
| | | { |
| | | 'sourceLdif' : '%s/make-ldif_seed0_1.ldif' \ |
| | | % DIRECTORY_INSTANCE_DIR , |
| | | 'targetLdif' : '%s/make-ldif_seed0_2.ldif' \ |
| | | % DIRECTORY_INSTANCE_DIR , |
| | | 'outputLdif' : '%s/make-ldif_seed0.diff' \ |
| | | % DIRECTORY_INSTANCE_DIR |
| | | 'sourceLdif' : '%s/make-ldif_seed0_1.ldif' % remote.temp , |
| | | 'targetLdif' : '%s/make-ldif_seed0_2.ldif' % remote.temp , |
| | | 'outputLdif' : '%s/make-ldif_seed0.diff' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | |
| | | |
| | | <call function="'LdifDiffWithScript'"> |
| | | { |
| | | 'sourceLdif' : '%s/make-ldif_seed0_1.ldif' \ |
| | | % DIRECTORY_INSTANCE_DIR , |
| | | 'targetLdif' : '%s/make-ldif_noseed_1.ldif' \ |
| | | % DIRECTORY_INSTANCE_DIR , |
| | | 'outputLdif' : '%s/make-ldif_noseed_1.diff' \ |
| | | % DIRECTORY_INSTANCE_DIR |
| | | 'sourceLdif' : '%s/make-ldif_seed0_1.ldif' % remote.temp , |
| | | 'targetLdif' : '%s/make-ldif_noseed_1.ldif' % remote.temp , |
| | | 'outputLdif' : '%s/make-ldif_noseed_1.diff' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | |
| | | |
| | | <call function="'LdifDiffWithScript'"> |
| | | { |
| | | 'sourceLdif' : '%s/make-ldif_noseed_1.ldif' \ |
| | | % DIRECTORY_INSTANCE_DIR , |
| | | 'targetLdif' : '%s/make-ldif_noseed_2.ldif' \ |
| | | % DIRECTORY_INSTANCE_DIR , |
| | | 'outputLdif' : '%s/make-ldif_noseed_2.diff' \ |
| | | % DIRECTORY_INSTANCE_DIR |
| | | 'sourceLdif' : '%s/make-ldif_noseed_1.ldif' % remote.temp , |
| | | 'targetLdif' : '%s/make-ldif_noseed_2.ldif' % remote.temp , |
| | | 'outputLdif' : '%s/make-ldif_noseed_2.diff' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | |
| | | |
| | | <call function="'LdifDiffWithScript'"> |
| | | { |
| | | 'sourceLdif' : '%s/make-ldif_seed0_1.ldif' \ |
| | | % DIRECTORY_INSTANCE_DIR , |
| | | 'targetLdif' : '%s/make-ldif_seed5.ldif' \ |
| | | % DIRECTORY_INSTANCE_DIR , |
| | | 'outputLdif' : '%s/make-ldif_seed5.diff' \ |
| | | % DIRECTORY_INSTANCE_DIR |
| | | 'sourceLdif' : '%s/make-ldif_seed0_1.ldif' % remote.temp , |
| | | 'targetLdif' : '%s/make-ldif_seed5.ldif' % remote.temp , |
| | | 'outputLdif' : '%s/make-ldif_seed5.diff' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { |
| | | 'noOfLoops' : 5 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { |
| | | 'noOfLoops' : 5 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | |
| | | </call> |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 5 , |
| | | { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | |
| | | 'subcommand' : '%s' % componentList[componentNumber][0] , |
| | | 'objectType' : '%s' % componentList[componentNumber][1] , |
| | | 'objectName' : '%s' % componentList[componentNumber][2] , |
| | | 'optionsString' : '--backend-name %s' DIRECTORY_INSTANCE_BE , |
| | | 'optionsString' : '--backend-name %s' % DIRECTORY_INSTANCE_BE , |
| | | 'expectedRC' : 0 |
| | | } |
| | | </call> |
| | |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 5 , |
| | | { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 } |
| | | </call> |
| | | |
| | |
| | | </call> |
| | | |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 5 , |
| | | { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 } |
| | | </call> |
| | | <call function="'checkRC'"> |
| | |
| | | <call function="'testCase_Preamble'"/> |
| | | <script> |
| | | runFileName = runFileRE.sub('run',test) |
| | | runFilePath = '/tmp/%s_%s' % (family, runFileName) |
| | | runFilePath = '%s/%s_%s' % (local.temp, family, runFileName) |
| | | requestFilePath = '%s/dsml/suites/%s/data/%s' % \ |
| | | (local.data,family,test) |
| | | expectedFileName = runFileRE.sub('res',test) |
| | |
| | | </call> |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 5 , |
| | | { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 } |
| | | </call> |
| | | </sequence> |
| | |
| | | 'dsEncoding' : '8859-1' , |
| | | 'expectedRC' : 'noCheck' , |
| | | 'outputFile' : 'ldapsearch.out' , |
| | | 'outputPath' : TMPDIR |
| | | 'outputPath' : remote.temp |
| | | } |
| | | </call> |
| | | |
| | |
| | | <call function="'LdifDiffWithScript-new'"> |
| | | { |
| | | 'sourceLdif' : RefFile , |
| | | 'targetLdif' : '%s/ldapsearch.out' % TMPDIR , |
| | | 'outputLdif' : '%s/ldifsearch.diff' % TMPDIR |
| | | 'targetLdif' : '%s/ldapsearch.out' % remote.temp , |
| | | 'outputLdif' : '%s/ldifsearch.diff' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | |
| | | </call> |
| | | |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 5 , |
| | | { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 } |
| | | </call> |
| | | <call function="'checkRC'"> |
| | |
| | | 'functionArguments' : { 'location' : STAF_REMOTE_HOSTNAME } |
| | | } |
| | | </call> |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | | <call function="'loopThroughFilters'"> |
| | | { 'filters' : 'after-modify' } |
| | | </call> |
| | |
| | | 'functionArguments' : { 'location' : STAF_REMOTE_HOSTNAME } |
| | | } |
| | | </call> |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | | <call function="'loopThroughFilters'"> |
| | | { 'filters' : 'after-add' } |
| | | </call> |
| | |
| | | { 'functionName' : 'isAlive', |
| | | 'functionMessage' : 'Checking if the server is available', |
| | | 'functionException' : 'Topology.StartException', |
| | | 'functionArguments' : { 'noOfLoops' : 5, |
| | | 'functionArguments' : { 'noOfLoops' : 10, |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | } |
| | |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 5 , |
| | | { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | |
| | | } |
| | | </call> |
| | | |
| | | <call function="'RestartDs'"> |
| | | { 'dsHost' : DIRECTORY_INSTANCE_HOST, |
| | | <call function="'StopDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT, |
| | | 'dsBindDN' : DIRECTORY_INSTANCE_DN, |
| | | 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD |
| | | } |
| | | </call> |
| | | <call function="'StartDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | | |
| | | <message>'--- Check log files ---'</message> |
| | | <call function="'listFolder'"> |
| | | { 'location' : '%s' % DIRECTORY_INSTANCE_HOST, |
| | |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 5 , |
| | | { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 } |
| | | </call> |
| | | |
| | |
| | | 'dsHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT, |
| | | 'dsBindDN' : DIRECTORY_INSTANCE_DN, |
| | | 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsRestart' : ' ' } |
| | | 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD } |
| | | </call> |
| | | |
| | | <call function="'StartDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 5 , |
| | | { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 5 , |
| | | { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 } |
| | | </call> |
| | | </sequence> |
| | |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 5 , |
| | | { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 } |
| | | </call> |
| | | </sequence> |
| | |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 5 , |
| | | { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 } |
| | | </call> |
| | | </sequence> |
| | |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 5 , |
| | | { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 } |
| | | </call> |
| | | |
| | |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 5 , |
| | | { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 } |
| | | </call> |
| | | </sequence> |
| | |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 5 , |
| | | { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 } |
| | | </call> |
| | | |
| | |
| | | { 'functionName' : 'isAlive' , |
| | | 'functionMessage' : 'Checking if the server is available' , |
| | | 'functionException' : 'Topology.StartException' , |
| | | 'functionArguments' : { 'noOfLoops' : 5 , |
| | | 'functionArguments' : { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 } |
| | | } |
| | | </call> |
| | |
| | | { 'functionName' : 'isAlive' , |
| | | 'functionMessage' : 'Start the Directory Server.' , |
| | | 'functionException' : 'Server.StartException' , |
| | | 'functionArguments' : { 'noOfLoops' : 5 , |
| | | 'functionArguments' : { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 } |
| | | } |
| | | </call> |
| | |
| | | |
| | | <call function="'deleteFile'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'filename' : '%s/../config/keystore' % OPENDS_BINPATH } |
| | | 'filename' : '%s/%s/config/keystore' \ |
| | | % (DIRECTORY_INSTANCE_DIR,OPENDSNAME) } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | |
| | | |
| | | <call function="'deleteFile'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'filename' : '%s/../config/keystore' % OPENDS_BINPATH } |
| | | 'filename' : '%s/%s/config/keystore' \ |
| | | % (DIRECTORY_INSTANCE_DIR,OPENDSNAME) } |
| | | </call> |
| | | |
| | | <call function="'checkRC'"> |
| | |
| | | |
| | | <call function="'deleteFile'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'filename' : '%s/../config/keystore' % OPENDS_BINPATH } |
| | | 'filename' : '%s/%s/config/keystore' \ |
| | | % (DIRECTORY_INSTANCE_DIR,OPENDSNAME) } |
| | | </call> |
| | | |
| | | <call function="'checkRC'"> |
| | |
| | | |
| | | <call function="'deleteFile'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'filename' : '%s/../config/keystore' % OPENDS_BINPATH } |
| | | 'filename' : '%s/%s/config/keystore' \ |
| | | % (DIRECTORY_INSTANCE_DIR,OPENDSNAME) } |
| | | </call> |
| | | |
| | | <call function="'checkRC'"> |
| | |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 5 , |
| | | { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 } |
| | | </call> |
| | | |
| | |
| | | |
| | | <call function="'deleteFile'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'filename' : '%s/../config/keystore' % OPENDS_BINPATH } |
| | | 'filename' : '%s/%s/config/keystore' \ |
| | | % (DIRECTORY_INSTANCE_DIR,OPENDSNAME) } |
| | | </call> |
| | | |
| | | <call function="'checkRC'"> |
| | |
| | | newDn = 'uid=user.%s' % newid |
| | | |
| | | templateFile = 'template-%s.ldif' % loop |
| | | templatePath = '%s/%s' % (TMPDIR, templateFile) |
| | | templatePath = '%s/%s' % (remote.temp, templateFile) |
| | | ldifFile = 'moddn-%s.ldif' % loop |
| | | ldifPath = '%s/%s' % (DIRECTORY_INSTANCE_DIR, ldifFile) |
| | | ldifLines = [] |
| | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { |
| | | 'noOfLoops' : 5 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { |
| | | 'noOfLoops' : 5 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | |
| | | community = '%s@%s' \ |
| | | % (SNMP_PROPERTIES['community'], SNMP_PROPERTIES['community']) |
| | | oid = 'dsServerType.1' |
| | | serverLogFile = '%s/%s/logs/server.out' \ |
| | | % (DIRECTORY_INSTANCE_DIR, OPENDSNAME) |
| | | </script> |
| | | |
| | | <!--- Test Case information |
| | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { |
| | | 'noOfLoops' : 5 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | |
| | | <call function="'StartDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { |
| | | 'noOfLoops' : 5 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | |
| | | msg = '%s %s %s %s %s %s' % (msg1, msg2, msg3, msg4, msg5, msg6) |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | <call function="'grep'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : msg |
| | | 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'filename' : serverLogFile , |
| | | 'testString': msg |
| | | } |
| | | </call> |
| | | |
| | |
| | | <call function="'StartDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { |
| | | 'noOfLoops' : 5 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | |
| | | msg = '%s %s %s' % (msg1, msg2, msg3) |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | <call function="'grep'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : msg |
| | | 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'filename' : serverLogFile , |
| | | 'testString': msg |
| | | } |
| | | </call> |
| | | |
| | |
| | | msg6 = 'The SNMP connection Handler didn\'t started' |
| | | msg = '%s %s %s %s %s %s' % (msg1, msg2, msg3, msg4, msg5, msg6) |
| | | </script> |
| | | <call function="'checktestStringNotPresent'"> |
| | | |
| | | <call function="'grep'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'testString' : msg |
| | | 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'filename' : serverLogFile , |
| | | 'testString' : msg , |
| | | 'expectedRC' : 1 |
| | | } |
| | | </call> |
| | | |
| | |
| | | <call function="'StartDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { |
| | | 'noOfLoops' : 5 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | |
| | | msg = '%s %s %s' % (msg1, msg2, msg3) |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | <call function="'grep'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : msg |
| | | 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'filename' : serverLogFile , |
| | | 'testString': msg |
| | | } |
| | | </call> |
| | | |
| | |
| | | wrongTrapsDestProp = 'wrongtrapdestination' |
| | | outputFile2 = '%s/timer.out' % DIRECTORY_INSTANCE_DIR |
| | | timerDuration2 = '5m' |
| | | serverLogFile = '%s/%s/logs/server.out' \ |
| | | % (DIRECTORY_INSTANCE_DIR, OPENDSNAME) |
| | | </script> |
| | | |
| | | <!--- Test Case information |
| | |
| | | 'trap_defaultconf: restart the server' |
| | | </message> |
| | | <call function="'StopDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | <call function="'StartDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { |
| | | 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsRestart' : 'True' |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | | |
| | |
| | | 'trap_defaultconf: restart the server' |
| | | </message> |
| | | <call function="'StopDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | <call function="'StartDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { |
| | | 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsRestart' : 'True' |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | | |
| | |
| | | 'trap_defaultconf: restart the server' |
| | | </message> |
| | | <call function="'StopDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | <call function="'StartDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { |
| | | 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsRestart' : 'True' |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | | |
| | |
| | | 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD |
| | | } |
| | | </call> |
| | | |
| | | <call function="'StartDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { |
| | | 'noOfLoops' : 5 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | |
| | | msg2 = 'Traps will not be sent to this destination' |
| | | msg = '%s %s' % (msg1, msg2) |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | |
| | | <call function="'grep'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : msg |
| | | 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'filename' : serverLogFile , |
| | | 'testString': msg |
| | | } |
| | | </call> |
| | | |
| | |
| | | msg = '%s %s' % (msg1, msg2) |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | <call function="'grep'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : msg |
| | | 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'filename' : serverLogFile , |
| | | 'testString': msg |
| | | } |
| | | </call> |
| | | |
| | |
| | | <call function="'StartDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { |
| | | 'noOfLoops' : 5 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | |
| | | msg = '%s %s' % (msg1, msg2) |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | <call function="'grep'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : msg |
| | | 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'filename' : serverLogFile , |
| | | 'testString': msg |
| | | } |
| | | </call> |
| | | |
| | |
| | | <call function="'StartDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'trap_defaultconf: send event to the trap listener' |
| | |
| | | 'trap_defaultconf: restart the server' |
| | | </message> |
| | | <call function="'StopDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | <call function="'StartDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { |
| | | 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsRestart' : 'True' |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | | |
| | |
| | | 'dsStopTime' : '20061212000000' } |
| | | </call> |
| | | |
| | | <call function="'Sleep'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'sleepForMilliSeconds' : 10000 } |
| | | </call> |
| | | |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : DIRECTORY_INSTANCE_SFX, |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'dsScope' : 'base', |
| | | 'expectedRC' : 0 } |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | |
| | | <call function="'StartDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 5 , |
| | | { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 } |
| | | </call> |
| | | |
| | |
| | | </call> |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 5 , |
| | | { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 } |
| | | </call> |
| | | </sequence> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </sequence> |
| | | </function> |
| | | |
| | | |
| | | <!-- This function restart DS using the stop-ds script --> |
| | | <function name="RestartDs"> |
| | | <function-prolog> |
| | | This function restarts a Directory Server |
| | | </function-prolog> |
| | | <function-map-args> |
| | | <function-arg-def name="location" |
| | | type="optional" |
| | | default="STAF_REMOTE_HOSTNAME"> |
| | | <function-arg-description> |
| | | Location of target host |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | |
| | | <function-arg-def name="dsHost" |
| | | type="optional" |
| | | default="'%s' % DIRECTORY_INSTANCE_HOST"> |
| | | <function-arg-description> |
| | | Directory server hostname or IP address |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | |
| | | <function-arg-def name="dsPort" |
| | | type="optional" |
| | | default="'%s' % DIRECTORY_INSTANCE_PORT"> |
| | | <function-arg-description> |
| | | Directory server port number |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="port"/> |
| | | </function-arg-def> |
| | | |
| | | <function-arg-def name="dsAdminPort" |
| | | type="optional" |
| | | default="'%s' % DIRECTORY_INSTANCE_ADMIN_PORT"> |
| | | <function-arg-description> |
| | | Directory server admin port number |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="port"/> |
| | | </function-arg-def> |
| | | |
| | | <function-arg-def name="dsBindDN" |
| | | type="optional" |
| | | default="'%s' % DIRECTORY_INSTANCE_DN"> |
| | | <function-arg-description> |
| | | Bind DN |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="DN"/> |
| | | </function-arg-def> |
| | | |
| | | <function-arg-def name="dsBindPwd" |
| | | type="optional" |
| | | default="'%s' % DIRECTORY_INSTANCE_PSWD"> |
| | | <function-arg-description> |
| | | Bind password |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string"/> |
| | | </function-arg-def> |
| | | |
| | | <function-arg-def name="dsBindPwdFile" type="optional"> |
| | | <function-arg-description> |
| | | Bind password file |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="extraParams" type="optional" default="''"> |
| | | <function-arg-description> |
| | | Optional extra parameters for specific test cases |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string"/> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | | |
| | | <sequence> |
| | | |
| | | <!-- Build the Command --> |
| | | <script> |
| | | STAFCmdParamsList=[] |
| | | STAFCmdParams='' |
| | | |
| | | if dsPath: |
| | | dsBinPath='%s/%s' % (dsPath,fileFolder) |
| | | STAFCmd='%s/stop-ds%s ' % (dsBinPath,fileExt) |
| | | |
| | | if dsHost: |
| | | STAFCmdParamsList.append('-h %s' % dsHost) |
| | | |
| | | if dsAdminPort: |
| | | STAFCmdParamsList.append('-p %s' % dsAdminPort) |
| | | STAFCmdParamsList.append('-X') |
| | | |
| | | if dsBindDN: |
| | | STAFCmdParamsList.append('-D "%s"' % dsBindDN) |
| | | |
| | | if dsBindPwd: |
| | | STAFCmdParamsList.append('-w "%s"' % dsBindPwd) |
| | | |
| | | if dsBindPwdFile: |
| | | STAFCmdParamsList.append('-j "%s"' % dsBindPwdFile) |
| | | |
| | | STAFCmdParamsList.append('-R') |
| | | |
| | | STAFCmdParams=' '.join(STAFCmdParamsList) |
| | | </script> |
| | | |
| | | <message> |
| | | '%s %s' % (STAFCmd, STAFCmdParams) |
| | | </message> |
| | | |
| | | <message>'******************************'</message> |
| | | <message>'*** Restarting the Server ***'</message> |
| | | <message>'******************************'</message> |
| | | |
| | | <process name="'restart DS'"> |
| | | <location>'%s' % (location)</location> |
| | | <command>'%s' % (STAFCmd)</command> |
| | | <parms>'%s' % (STAFCmdParams)</parms> |
| | | <workdir>'%s' % dsBinPath</workdir> |
| | | <envs> |
| | | ['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME] |
| | | </envs> |
| | | <stderr mode="'stdout'"/> |
| | | <returnstdout/> |
| | | </process> |
| | | |
| | | <!-- Wait for DS to start --> |
| | | <call function="'isAlive'"> |
| | | { 'location' : location, |
| | | 'dsPath' : dsPath, |
| | | 'dsInstanceHost' : dsHost , |
| | | 'dsInstancePort' : dsPort , |
| | | 'dsInstanceDn' : dsBindDN , |
| | | 'dsInstancePswd' : dsBindPwd , |
| | | 'noOfLoops' : 5 , |
| | | 'noOfMilliSeconds' : 6000 } |
| | | </call> |
| | | |
| | | <message>'*** Restarting the Server is completed ***'</message> |
| | | <message>'***************************************'</message> |
| | | </sequence> |
| | | </function> |
| | | |
| | | |
| | | <!-- Import LDIF file Function --> |
| | | <function name="importLdif"> |
| | | <function-prolog> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | 'dsInstancePort' : myport , |
| | | 'dsInstanceDn' : mydn , |
| | | 'dsInstancePswd' : mypswd , |
| | | 'noOfLoops' : 5 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 } |
| | | </call> |
| | | |
| | |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | <if expr="STAFCmdRC == 0"> |
| | | <sequence> |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 5 , |
| | | { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 } |
| | | </call> |
| | | </sequence> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | <!-- Get Directory Server Variables --> |
| | | <call function="'GetDirectoryServerVars'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsPath' : '%s' % InstanceInstallDir } |
| | | 'dsPath' : '%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME) } |
| | | </call> |
| | | |
| | | <if expr="RC != 0"> |
| | |
| | | </message> |
| | | <call function="'deleteFolder'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'foldername' : DIRECTORY_INSTANCE_DIR } |
| | | 'foldername' : '%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME) } |
| | | </call> |
| | | <call function="'createFolder'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'foldername' : DIRECTORY_INSTANCE_DIR } |
| | | 'foldername' : '%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME) } |
| | | </call> |
| | | |
| | | <call function="'GetDirectoryServerInformation'"/> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | STAFCmdParams=' '.join(STAFCmdParamsList) |
| | | </script> |
| | | |
| | | <call function="'runCommand'" > |
| | | { 'name' : 'LDAP Search Script', |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'location' : location, |
| | | 'outputFile': '%s/%s' % (outputPath, outputFile) , |
| | | 'expectedRC': expectedRC , |
| | | 'logStderr' : logStderr, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | <if expr="outputFile != 'None'"> |
| | | <call function="'runCommand'" > |
| | | { 'name' : 'LDAP Search Script', |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'location' : location, |
| | | 'outputFile': '%s/%s' % (outputPath, outputFile) , |
| | | 'expectedRC': expectedRC , |
| | | 'logStderr' : logStderr, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | <else> |
| | | <call function="'runCommand'" > |
| | | { 'name' : 'LDAP Search Script', |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'location' : location, |
| | | 'expectedRC': expectedRC , |
| | | 'logStderr' : logStderr, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | </else> |
| | | </if> |
| | | |
| | | <return> |
| | | STAXResult |
| | | </return> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | else: |
| | | separator=':' |
| | | |
| | | opends_jarfile='%s/%s' % (DIRECTORY_INSTANCE_DIR,SNMP_OPENDS_JARFILE) |
| | | opends_jarfile='%s/%s' % (DIRECTORY_INSTANCE_BIN,SNMP_OPENDS_JARFILE) |
| | | snmpPath='%s/snmp' % remote.java |
| | | jdmk_jarfile='%s/jdmkrt.jar' % snmpPath |
| | | |
| | |
| | | else: |
| | | separator=':' |
| | | |
| | | opends_jarfile='%s/%s' % (DIRECTORY_INSTANCE_DIR,SNMP_OPENDS_JARFILE) |
| | | opends_jarfile='%s/%s' % (DIRECTORY_INSTANCE_BIN,SNMP_OPENDS_JARFILE) |
| | | snmpPath='%s/snmp' % remote.java |
| | | jdmk_jarfile='%s/jdmkrt.jar' % snmpPath |
| | | |
| | |
| | | else: |
| | | separator=':' |
| | | |
| | | opends_jarfile='%s/%s' % (DIRECTORY_INSTANCE_DIR,SNMP_OPENDS_JARFILE) |
| | | opends_jarfile='%s/%s' % (DIRECTORY_INSTANCE_BIN,SNMP_OPENDS_JARFILE) |
| | | snmpPath='%s/snmp' % remote.java |
| | | jdmk_jarfile='%s/jdmkrt.jar' % snmpPath |
| | | cp = 'CLASSPATH=%s%s%s%s%s%s.' \ |
| | |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | 'dsInstancePort' : server.getPort(), |
| | | 'dsInstanceDn' : server.getRootDn(), |
| | | 'dsInstancePswd' : server.getRootPwd(), |
| | | 'noOfLoops' : 5 , |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function> |
| | | |
| | | </stax> |
| | | |
| | |
| | | else: |
| | | jstaf_jarfile='%s/lib/JSTAF.jar' % STAFResult |
| | | </script> |
| | | |
| | | |
| | | <!--- In IPS mode, get snmp-mib2605.jar from remote machine--> |
| | | <if expr="DIRECTORY_INSTANCE_BIN != DIRECTORY_INSTANCE_DIR"> |
| | | <call function="'copyFile'"> |
| | | { |
| | | 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'srcfile' : '%s/%s' % (DIRECTORY_INSTANCE_BIN,SNMP_OPENDS_JARFILE), |
| | | 'destfile' : '%s/%s' % (TMPDIR,SNMP_OPENDS_JARFILE), |
| | | 'remotehost' : STAXServiceMachine |
| | | } |
| | | </call> |
| | | </if> |
| | | |
| | | <!--- Compile snmp java files on controler host --> |
| | | <message> |
| | | 'Compile Java files under %s on %s' \ |
| | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | </function-arg-def> |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)"> |
| | | <function-arg-description> |
| | | Pathname to installation root |
| | | </function-arg-description> |
| | |
| | | TESTS_JAVA_DIR = '%s/shared/java' % TESTS_ROOT |
| | | DIRECTORY_INSTANCE_DN = '${opends.admin.dn}' |
| | | DIRECTORY_INSTANCE_PSWD = '${opends.admin.pwd}' |
| | | DIRECTORY_INSTANCE_BIN = '%s' % TMPDIR' |
| | | DIRECTORY_INSTANCE_DIR = '%s' % TMPDIR |
| | | DIRECTORY_INSTANCE_HOST = 'localhost' |
| | | DIRECTORY_INSTANCE_PORT = '${opends.port.ldap}' |
| | |
| | | WC_PORT = '9000' |
| | | WC_SSL_PORT = '9001' |
| | | WC_HOST = 'localhost' |
| | | DSML_WARNAME = 'OpenDS-1.1.0-DSML.war' |
| | | DSML_WARNAME = 'opends-DSML.war' |
| | | DSML_WARPATH = '%s/build/package/%s' % (OPENDSDIR, DSML_WARNAME) |
| | | SNMP_OPENDS_JARFILE = '%s/lib/extensions/snmp-mib2605.jar' % OPENDSNAME |
| | | SNMP_OPENDMK_LIBDIR = '/path/to/opendmk/lib' |
| | |
| | | |
| | | ServersInfoDict=eval(STAFResult) |
| | | |
| | | ServerPath='%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME) |
| | | ServerPath='%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME) |
| | | ServerName='unknown' |
| | | ServerVersion='unknown' |
| | | ServerBuildId='unknown' |