| opends/tests/functional-tests/testcases/logging/logging.xml | ●●●●● patch | view | raw | blame | history | |
| opends/tests/functional-tests/testcases/logging/logging_retention.xml | ●●●●● patch | view | raw | blame | history | |
| opends/tests/functional-tests/testcases/logging/logging_retention_properties.xml | ●●●●● patch | view | raw | blame | history | |
| opends/tests/functional-tests/testcases/logging/logging_rotation.xml | ●●●●● patch | view | raw | blame | history | |
| opends/tests/functional-tests/testcases/logging/logging_rotation_properties.xml | ●●●●● patch | view | raw | blame | history |
opends/tests/functional-tests/testcases/logging/logging.xml
@@ -35,7 +35,8 @@ CurrentTestPath['group']='logging' </script> <call function="'testGroup_Preamble'" /> <iterate var="_test" in="['setup','rotation','retention','writer','properties','cleanup']" > <!-- 'setup','rotation','retention','writer','properties','retention_properties','rotation_properties','cleanup'--> <iterate var="_test" in="['setup','rotation','retention','writer','properties','retention_properties','rotation_properties','cleanup']" > <sequence> <import machine="STAF_LOCAL_HOSTNAME" file="'%s/testcases/logging/logging_%s.xml' % (TESTS_DIR,_test)"/> opends/tests/functional-tests/testcases/logging/logging_retention.xml
@@ -38,15 +38,15 @@ <!--- #@TestMarker size limit retention #@TestName size limit retention #@TestIssue Check the size limit retention policy #@TestIssue Check the count retention policy #@TestPreamble none #@TestStep Create a new size limit retention policy #@TestStep Configure the Size Limit retention policy with a Max file to 3 #@TestStep Create a new count limit retention policy #@TestStep Configure the count Limit retention policy with a Max file to 3 #@TestStep Execute ldapsearch request until the log are cleaned #@TestPostamble none #@TestResult the number of logs must not exceed 3 --> <testcase name="getTestCaseName('file count')"> <testcase name="getTestCaseName('Count limit retention')"> <sequence> <call function="'testCase_Preamble'"/> <message> @@ -316,6 +316,7 @@ <call function="'testCase_Postamble'"/> </sequence> </testcase> <call function="'testSuite_Postamble'"/> </sequence> </block> opends/tests/functional-tests/testcases/logging/logging_retention_properties.xml
New file @@ -0,0 +1,336 @@ <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE stax SYSTEM "../../../shared/stax.dtd"> <!-- ! CDDL HEADER START ! ! The contents of this file are subject to the terms of the ! Common Development and Distribution License, Version 1.0 only ! (the "License"). You may not use this file except in compliance ! with the License. ! ! You can obtain a copy of the license at ! trunk/opends/resource/legal-notices/OpenDS.LICENSE ! or https://OpenDS.dev.java.net/OpenDS.LICENSE. ! See the License for the specific language governing permissions ! and limitations under the License. ! ! When distributing Covered Code, include this CDDL HEADER in each ! file and include the License file at ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable, ! add the following below this CDDL HEADER, with the fields enclosed ! by brackets "[]" replaced with your own identifying information: ! Portions Copyright [yyyy] [name of copyright owner] ! ! CDDL HEADER END ! ! Portions Copyright 2006-2007 Sun Microsystems, Inc. ! --> <stax> <defaultcall function="logging_retention_properties"/> <function name="logging_retention_properties" scope="local"> <sequence> <script> CurrentTestPath['suite']=STAXCurrentFunction </script> <call function="'testSuite_Preamble'" /> <!--- Test Case : Retention policy --> <!--- #@TestMarker size limit retention policy #@TestName Check dsconfig properties of size limit retention policy #@TestIssue #@TestPurpose check the size limit retention policy properties. #@TestPreamble none #@TestStep Check the size limit retention policy's properties are correctly set and get using dsconfig #@TestStep Set a property #@TestStep Get the property and check it has been correctly updated #@TestPostamble none #@TestResult Success if OpenDS returns 0 for all operations --> <testcase name="getTestCaseName('size limit retention policy suite')"> <sequence> <call function="'testCase_Preamble'"/> <message> '---- Check the size limit retention policy properties -----' </message> <!-- create-log-retention-policy with the type size-limit --> <message> '------ create a size limit retention policy --' </message> <call function="'dsconfig'"> { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'subcommand' : 'create-log-retention-policy', 'objectType' : 'policy-name', 'objectName' : 'my size retention policy', 'optionsString' : '--type size-limit --set disk-space-used:5mb', 'expectedRC' : 0 } </call> <message>'------ get file-size-limit --' </message> <call function="'dsconfigGet'"> { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'objectName' : 'log-retention-policy', 'propertyType' : 'policy', 'propertyName' : 'my size retention policy', 'attributeName' : 'disk-space-used', 'expectedAttributeValue' : '5 mb' } </call> <!-- set disk-space-used --> <message>'------ set file-size-limit to 5kb --' </message> <call function="'dsconfig'"> { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'subcommand' : 'set-log-retention-policy-prop', 'objectType' : 'policy-name', 'objectName' : 'my size retention policy', 'optionsString' : '--set disk-space-used:5kb', 'expectedRC' : 0 } </call> <message>'------ get disk-space-used --' </message> <call function="'dsconfigGet'"> { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'objectName' : 'log-retention-policy', 'propertyType' : 'policy', 'propertyName' : 'my size retention policy', 'attributeName' : 'disk-space-used', 'expectedAttributeValue' : '5 kb' } </call> <message> '------ delete a size limit retention policy --' </message> <call function="'dsconfig'"> { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'subcommand' : 'delete-log-retention-policy', 'objectType' : 'policy-name', 'objectName' : 'my size retention policy', 'expectedRC' : 0 } </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <!--- Test Case : free-disk-space Retention policy --> <!--- #@TestMarker free-disk-space retention policy #@TestName Check dsconfig properties of size limit retention policy #@TestIssue #@TestPurpose check the free-disk-space retention policy properties. #@TestPreamble none #@TestStep Check the free-disk-space retention policy's properties are correctly set and get using dsconfig #@TestStep Set a property #@TestStep Get the property and check it has been correctly updated #@TestPostamble none #@TestResult Success if OpenDS returns 0 for all operations --> <testcase name="getTestCaseName('free-disk-space retention policy suite')"> <sequence> <call function="'testCase_Preamble'"/> <message> '---- Check the free-disk-space retention policy properties -----' </message> <!-- create-log-retention-policy with the type free-disk-space --> <message> '------ create a free-disk-space limit retention policy --' </message> <call function="'dsconfig'"> { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'subcommand' : 'create-log-retention-policy', 'objectType' : 'policy-name', 'objectName' : 'my free-disk-space retention policy', 'optionsString' : '--type free-disk-space --set free-disk-space:6Gb', 'expectedRC' : 0 } </call> <message> '------ get free_disk-space --' </message> <call function="'dsconfigGet'"> { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , 'objectName' : 'log-retention-policy' , 'propertyType' : 'policy' , 'propertyName' : 'my free-disk-space retention policy', 'attributeName' : 'free-disk-space', 'expectedAttributeValue' : '6 gb' } </call> <!-- set free_disk-space --> <message>'------ set free_disk-space to 4mb --' </message> <call function="'dsconfig'"> { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'subcommand' : 'set-log-retention-policy-prop', 'objectType' : 'policy-name', 'objectName' : 'my free-disk-space retention policy', 'optionsString' : '--set free-disk-space:4mb', 'expectedRC' : 0 } </call> <message>'------ get free_disk-space --' </message> <call function="'dsconfigGet'"> { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'objectName' : 'log-retention-policy', 'propertyType' : 'policy', 'propertyName' : 'my free-disk-space retention policy', 'attributeName' : 'free-disk-space', 'expectedAttributeValue' : '4 mb' } </call> <message> '------ delete a free-disk-space retention policy --' </message> <call function="'dsconfig'"> { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'subcommand' : 'delete-log-retention-policy', 'objectType' : 'policy-name', 'objectName' : 'my free-disk-space retention policy', 'expectedRC' : 0 } </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <!--- Test Case : free-disk-space Retention policy --> <!--- #@TestMarker file-count retention policy #@TestName Check dsconfig properties of size limit retention policy #@TestIssue #@TestPurpose check the file-count retention policy properties. #@TestPreamble none #@TestStep Check the file-count retention policy's properties are correctly set and get using dsconfig #@TestStep Set a property #@TestStep Get the property and check it has been correctly updated #@TestPostamble none #@TestResult Success if OpenDS returns 0 for all operations --> <testcase name="getTestCaseName('file-count retention policy suite')"> <sequence> <call function="'testCase_Preamble'"/> <message> '---- Check the file-count retention policy properties -----' </message> <!-- create-log-retention-policy with the type file-count --> <message> '------ create a file-count retention policy --' </message> <call function="'dsconfig'"> { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'subcommand' : 'create-log-retention-policy', 'objectType' : 'policy-name', 'objectName' : 'my filecount retention policy', 'optionsString' : '--type file-count --set number-of-files:10', 'expectedRC' : 0 } </call> <message>'------ get number-of-files --' </message> <call function="'dsconfigGet'"> { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , 'objectName' : 'log-retention-policy' , 'propertyType' : 'policy' , 'propertyName' : 'my filecount retention policy', 'attributeName' : 'number-of-files', 'expectedAttributeValue' : '10' } </call> <!-- set number-of-files --> <message>'------ set number-of-files to 32 --' </message> <call function="'dsconfig'"> { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'subcommand' : 'set-log-retention-policy-prop', 'objectType' : 'policy-name', 'objectName' : 'my filecount retention policy', 'optionsString' : '--set number-of-files:32', 'expectedRC' : 0 } </call> <message>'------ get number-of-files --' </message> <call function="'dsconfigGet'"> { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'objectName' : 'log-retention-policy', 'propertyType' : 'policy', 'propertyName' :'my filecount retention policy', 'attributeName' : 'number-of-files', 'expectedAttributeValue' : '32' } </call> <!-- delete-log-retention-policy with the type file-count --> <message> '------ delete a fixed file-count retention policy --' </message> <call function="'dsconfig'"> { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'subcommand' : 'delete-log-retention-policy', 'objectType' : 'policy-name', 'objectName' : 'my filecount retention policy', 'expectedRC' : 0 } </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <call function="'testSuite_Postamble'" /> </sequence> </function> </stax> opends/tests/functional-tests/testcases/logging/logging_rotation.xml
@@ -98,6 +98,7 @@ } </call> <call function="'dsconfigGet'"> { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, @@ -110,9 +111,6 @@ } </call> <call function="'Sleep'"> { 'sleepForMilliSeconds' : 20000 } </call> <!-- Starting loop --> <script> @@ -195,6 +193,7 @@ </script> </sequence> </iterate> <!-- set nbLog when we find a log file --> <script> nbLog=1 @@ -222,7 +221,7 @@ 'A log rotation has been done. The new rotation file is "%s" (size = %s) ' % (newlogName,newlogSize) </message> <if expr="int(newlogSize) < 4100 and int(newlogSize) > 4000" > <if expr="int(newlogSize) < 4100 and int(newlogSize) > 3900" > <sequence> <message> 'SUCCESS. The rotation based on size limit is successfull. The file "%s" (size = %s) ' % (newlogName,newlogSize) opends/tests/functional-tests/testcases/logging/logging_rotation_properties.xml
New file @@ -0,0 +1,325 @@ <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE stax SYSTEM "../../../shared/stax.dtd"> <!-- ! CDDL HEADER START ! ! The contents of this file are subject to the terms of the ! Common Development and Distribution License, Version 1.0 only ! (the "License"). You may not use this file except in compliance ! with the License. ! ! You can obtain a copy of the license at ! trunk/opends/resource/legal-notices/OpenDS.LICENSE ! or https://OpenDS.dev.java.net/OpenDS.LICENSE. ! See the License for the specific language governing permissions ! and limitations under the License. ! ! When distributing Covered Code, include this CDDL HEADER in each ! file and include the License file at ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable, ! add the following below this CDDL HEADER, with the fields enclosed ! by brackets "[]" replaced with your own identifying information: ! Portions Copyright [yyyy] [name of copyright owner] ! ! CDDL HEADER END ! ! Portions Copyright 2006-2007 Sun Microsystems, Inc. ! --> <stax> <defaultcall function="logging_rotation_properties"/> <function name="logging_rotation_properties" scope="local"> <sequence> <script> CurrentTestPath['suite']=STAXCurrentFunction </script> <call function="'testSuite_Preamble'" /> <!--- Test Case : Rotation policy --> <!--- #@TestMarker size limitRotation policy #@TestName Check dsconfig properties of size limit Rotation policy #@TestIssue #@TestPurpose check the size limit rotation policy properties. #@TestPreamble none #@TestStep Check the size limit rotation policy's properties are correctly set and get using dsconfig #@TestStep Set a property #@TestStep Get the property and check it has been correctly updated #@TestPostamble none #@TestResult Success if OpenDS returns 0 for all operations --> <testcase name="getTestCaseName('size limit Rotation policy')"> <sequence> <call function="'testCase_Preamble'"/> <message> '---- Check the size limit Rotation policy properties -----' </message> <!-- create-log-rotation-policy with the type size-limit --> <message>'------ create a size limit rotation policy --' </message> <call function="'dsconfig'"> { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'subcommand' : 'create-log-rotation-policy', 'objectType' : 'policy-name', 'objectName' : 'my size rotation policy', 'optionsString' : '--type size-limit --set file-size-limit:5mb', 'expectedRC' : 0 } </call> <message>'------ get file-size-limit --' </message> <call function="'dsconfigGet'"> { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'objectName' : 'log-rotation-policy', 'propertyType' : 'policy', 'propertyName' : 'my size rotation policy', 'attributeName' : 'file-size-limit', 'expectedAttributeValue' : '5 mb' } </call> <!-- set file-size-limit --> <message>'------ set file-size-limit to 6kb --' </message> <call function="'dsconfig'"> { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , 'subcommand' : 'set-log-rotation-policy-prop', 'objectType' : 'policy-name', 'objectName' : 'my size rotation policy', 'optionsString' : '--set file-size-limit:5kb', 'expectedRC' : 0 } </call> <message>'------ get file-size-limit --' </message> <call function="'dsconfigGet'"> { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'objectName' : 'log-rotation-policy', 'propertyType' : 'policy', 'propertyName' : 'my size rotation policy', 'attributeName' : 'file-size-limit', 'expectedAttributeValue' : '5 kb' } </call> <message>'------ delete a size limit rotation policy --' </message> <call function="'dsconfig'"> { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'subcommand' : 'delete-log-rotation-policy', 'objectType' : 'policy-name', 'objectName' : 'my size rotation policy', 'expectedRC' : 0 } </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <!--- Test Case : time limit Rotation policy --> <!--- #@TestMarker time limit Rotation policy #@TestName Check dsconfig properties of time limit Rotation policy #@TestIssue #@TestPurpose check the time limit rotation policy properties. #@TestPreamble none #@TestStep Check the time limit rotation policy's properties are correctly set and get using dsconfig #@TestStep Set a property #@TestStep Get the property and check it has been correctly updated #@TestPostamble none #@TestResult Success if OpenDS returns 0 for all operations --> <testcase name="getTestCaseName('time limit Rotation policy')"> <sequence> <call function="'testCase_Preamble'"/> <message> '---- Check the time limit Rotation policy properties -----' </message> <!-- ################################--> <!-- create-log-rotation-policy with the type time-limit --> <message> '------ create a time limit rotation policy --' </message> <call function="'dsconfig'"> { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'subcommand' : 'create-log-rotation-policy', 'objectType' : 'policy-name', 'objectName' : 'my time rotation policy', 'optionsString' : '--type time-limit --set rotation-interval:3d', 'expectedRC' : 0 } </call> <message>'------ get rotation-interval --' </message> <call function="'dsconfigGet'"> { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'objectName' : 'log-rotation-policy', 'propertyType' : 'policy', 'propertyName' : 'my time rotation policy', 'attributeName' : 'rotation-interval', 'extraParams' : '-m d', 'expectedAttributeValue' : '3 d' } </call> <!-- set rotation-interval --> <message>'------ set rotation-interval to 3s --' </message> <call function="'dsconfig'"> { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'subcommand' : 'set-log-rotation-policy-prop', 'objectType' : 'policy-name', 'objectName' : 'my time rotation policy', 'optionsString' : '--set rotation-interval:3s', 'expectedRC' : 0 } </call> <message>'------ get rotation-interval --' </message> <call function="'dsconfigGet'"> { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'objectName' : 'log-rotation-policy', 'propertyType' : 'policy', 'propertyName' : 'my time rotation policy', 'attributeName' : 'rotation-interval', 'extraParams' : '-m s', 'expectedAttributeValue' : '3 s' } </call> <message>'------ delete a time limit rotation policy --' </message> <call function="'dsconfig'"> { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'subcommand' : 'delete-log-rotation-policy', 'objectType' : 'policy-name', 'objectName' : 'my time rotation policy', 'expectedRC' : 0 } </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <!--- Test Case : fixed time limit Rotation policy --> <!--- #@TestMarker fixed time limit Rotation policy #@TestName Check dsconfig properties of fixed fixed time limit Rotation policy #@TestIssue #@TestPurpose check the fixed time limit rotation policy properties. #@TestPreamble none #@TestStep Check the fixed time limit rotation policy's properties are correctly set and get using dsconfig #@TestStep Set a property #@TestStep Get the property and check it has been correctly updated #@TestPostamble none #@TestResult Success if OpenDS returns 0 for all operations --> <testcase name="getTestCaseName('fixed time limit Rotation policy')"> <sequence> <call function="'testCase_Preamble'"/> <message> '---- Check the fixed time limit Rotation policy properties -----' </message> <!-- create-log-rotation-policy with the type fixed-time --> <message>'------ create a fixed time limit rotation policy --' </message> <call function="'dsconfig'"> { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'subcommand' : 'create-log-rotation-policy', 'objectType' : 'policy-name', 'objectName' : 'my fixedtime rotation policy', 'optionsString' : '--type fixed-time --set time-of-day:1203', 'expectedRC' : 0 } </call> <message>'------ get time-of-day --' </message> <call function="'dsconfigGet'"> { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'objectName' : 'log-rotation-policy', 'propertyType' : 'policy', 'propertyName' : 'my fixedtime rotation policy', 'attributeName' : 'time-of-day', 'expectedAttributeValue' : '1203' } </call> <!-- set time-of-day --> <message>'------ set time-of-day to 3s --' </message> <call function="'dsconfig'"> { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'subcommand' : 'set-log-rotation-policy-prop', 'objectType' : 'policy-name', 'objectName' : 'my fixedtime rotation policy', 'optionsString' : '--set time-of-day:0934', 'expectedRC' : 0 } </call> <message>'------ get time-of-day --' </message> <call function="'dsconfigGet'"> { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , 'objectName' : 'log-rotation-policy' , 'propertyType' : 'policy' , 'propertyName' : 'my fixedtime rotation policy', 'attributeName' : 'time-of-day', 'expectedAttributeValue' : '0934' } </call> <!-- delete-log-rotation-policy with the type fixed-time --> <message>'------ delete a fixed time limit rotation policy --' </message> <call function="'dsconfig'"> { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'subcommand' : 'delete-log-rotation-policy', 'objectType' : 'policy-name', 'objectName' : 'my fixedtime rotation policy', 'expectedRC' : 0 } </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <call function="'testSuite_Postamble'" /> </sequence> </function> </stax>