'===== options = %s' % options { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , 'subcommand' : 'set-backend-prop' , 'optionsString' : options , 'expectedRC' : 1 } '===== Looking for appropriate error message' '===== expectedString = %s' % expectedString { 'returnString' : returnString , 'expectedString' : expectedString } { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , 'subcommand' : 'get-backend-prop' , 'optionsString' : options , 'myVariableName' : 'ORIGINAL' } '===== Read : %s' % ORIGINAL[propName] { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , 'subcommand' : 'set-backend-prop' , 'optionsString' : modifs , 'expectedRC' : 0 } '===== Ensure the property is really changed' { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , 'subcommand' : 'get-backend-prop' , 'optionsString' : options , 'myVariableName' : 'CHANGED' } '===== Read : %s ' % CHANGED[propName] '===== Ok, value changed as expected...' '===== Error bad value, expecting %s but read %s' \ % (propValue,CHANGED[propName]) '===== Restoring original value' { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , 'subcommand' : 'set-backend-prop' , 'optionsString' : modifs , 'expectedRC' : 0 } 'Ensure that backend-id cannot be changed' { 'propName' : 'backend-id' , 'propValue' : 'foo' } '%s: Test failed. eInfo(%s)' % (eType,eInfo) 'Ensure that base-dn could be changed' { 'propName' : 'base-dn' , 'propValue' : 'o=foo' } '%s: Test failed. eInfo(%s)' % (eType,eInfo) 'Ensure that compact-encoding could be changed' { 'propName' : 'compact-encoding' , 'propValue' : 'false' } '%s: Test failed. eInfo(%s)' % (eType,eInfo) 'Ensure that db-cache-percent could be changed' { 'propName' : 'db-cache-percent' , 'propValue' : '22' } '%s: Test failed. eInfo(%s)' % (eType,eInfo) 'Ensure that db-cache-size could be changed' { 'propName' : 'db-cache-size' , 'propValue' : '100 kb' } '%s: Test failed. eInfo(%s)' % (eType,eInfo) 'Ensure that db-checkpointer-bytes-interval could be changed' { 'propName' : 'db-checkpointer-bytes-interval' , 'propValue' : '10 mb' } '%s: Test failed. eInfo(%s)' % (eType,eInfo) 'Ensure that db-checkpointer-wakeup-interval could be changed' { 'propName' : 'db-checkpointer-wakeup-interval' , 'propValue' : '90 s' } '%s: Test failed. eInfo(%s)' % (eType,eInfo) 'Ensure that db-cleaner-min-utilization could be changed' { 'propName' : 'db-cleaner-min-utilization' , 'propValue' : '80' } '%s: Test failed. eInfo(%s)' % (eType,eInfo) 'Ensure that db-directory could be changed' { 'propName' : 'db-directory' , 'propValue' : 'mydb' } '%s: Test failed. eInfo(%s)' % (eType,eInfo) 'Ensure that db-directory-permissions could be changed' { 'propName' : 'db-directory-permissions' , 'propValue' : '777' } '%s: Test failed. eInfo(%s)' % (eType,eInfo) 'Ensure that db-evictor-lru-only could be changed' { 'propName' : 'db-evictor-lru-only' , 'propValue' : 'false' } '%s: Test failed. eInfo(%s)' % (eType,eInfo) 'Ensure that db-evictor-nodes-per-scan could be changed' { 'propName' : 'db-evictor-nodes-per-scan' , 'propValue' : '20' } '%s: Test failed. eInfo(%s)' % (eType,eInfo) 'Ensure that db-log-file-max could be changed' { 'propName' : 'db-log-file-max' , 'propValue' : '30 mb' } '%s: Test failed. eInfo(%s)' % (eType,eInfo) 'Ensure that db-logging-file-handler-on could be changed' { 'propName' : 'db-logging-file-handler-on' , 'propValue' : 'false' } '%s: Test failed. eInfo(%s)' % (eType,eInfo) 'Ensure that db-logging-level could be changed' { 'propName' : 'db-logging-level' , 'propValue' : 'SEVERE' } '%s: Test failed. eInfo(%s)' % (eType,eInfo) 'Ensure that db-num-cleaner-threads could be changed' { 'propName' : 'db-num-cleaner-threads' , 'propValue' : '2' } '%s: Test failed. eInfo(%s)' % (eType,eInfo) 'Ensure that db-num-lock-tables could be changed' { 'propName' : 'db-num-lock-tables' , 'propValue' : '17' } '%s: Test failed. eInfo(%s)' % (eType,eInfo) 'Ensure that db-run-cleaner could be changed' { 'propName' : 'db-run-cleaner' , 'propValue' : 'false' } '%s: Test failed. eInfo(%s)' % (eType,eInfo) 'Ensure that db-txn-no-sync could not be changed if \ db-txn-write-no-sync is set to true (default)' '===== options = %s' % options { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , 'subcommand' : 'set-backend-prop' , 'optionsString' : options , 'expectedRC' : 1 } '===== Looking for appropriate error message' '===== expString = %s' % expString { 'returnString' : returnString , 'expectedString' : expString } '===== expString = %s' % expString { 'returnString' : returnString , 'expectedString' : expString } '===== expString = %s' % expString { 'returnString' : returnString , 'expectedString' : expString } '%s: Test failed. eInfo(%s)' % (eType,eInfo) 'Set db-txn-write-no-sync to false' { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , 'subcommand' : 'set-backend-prop' , 'optionsString' : modifs , 'expectedRC' : 0 } 'Ensure that db-txn-no-sync could be changed if \ db-txn-write-no-sync is set to false' { 'propName' : 'db-txn-no-sync' , 'propValue' : 'true' } 'Set db-txn-write-no-sync to true (default)' { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , 'subcommand' : 'set-backend-prop' , 'optionsString' : modifs , 'expectedRC' : 0 } '%s: Test failed. eInfo(%s)' % (eType,eInfo) 'Ensure that db-txn-write-no-sync could be changed' { 'propName' : 'db-txn-write-no-sync' , 'propValue' : 'false' } '%s: Test failed. eInfo(%s)' % (eType,eInfo) 'Ensure that enabled could be changed' { 'propName' : 'enabled' , 'propValue' : 'false' } '%s: Test failed. eInfo(%s)' % (eType,eInfo) 'Ensure that entries-compressed could be changed' { 'propName' : 'entries-compressed' , 'propValue' : 'true' } '%s: Test failed. eInfo(%s)' % (eType,eInfo) 'Ensure that import-queue-size could be changed' { 'propName' : 'import-queue-size' , 'propValue' : '2381' } '%s: Test failed. eInfo(%s)' % (eType,eInfo) 'Ensure that import-thread-count could be changed' { 'propName' : 'import-thread-count' , 'propValue' : '22' } '%s: Test failed. eInfo(%s)' % (eType,eInfo) 'Ensure that index-entry-limit could be changed' { 'propName' : 'index-entry-limit' , 'propValue' : '3282' } '%s: Test failed. eInfo(%s)' % (eType,eInfo) 'Ensure that preload-time-limit could be changed' { 'propName' : 'preload-time-limit' , 'propValue' : '15000 ms' } '%s: Test failed. eInfo(%s)' % (eType,eInfo) 'Ensure that writability-mode could be changed' { 'propName' : 'writability-mode' , 'propValue' : 'disabled' } '%s: Test failed. eInfo(%s)' % (eType,eInfo)