Skip to content

Commit

Permalink
Fix a False negative in --test-module for DB 18c
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinhardy committed Sep 1, 2019
1 parent 57df65e commit 93cf575
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DbmsAdvisor.py
Expand Up @@ -46,7 +46,7 @@ def testAll (self):
logging.info("Simulate the file creation in the {0} folder with DBMSAdvisor".format(folder))
logging.info('The file is not created remotly because the folder should not exist')
status = self.putFile(folder,'temp.txt',data='data in file')
if status == True or self.ERROR_BAD_FOLDER_OR_BAD_SYSTEM_PRIV in str(status):
if status == True or self.ERROR_BAD_FOLDER_OR_BAD_SYSTEM_PRIV in str(status) or self.ERROR_FILEOPEN_FAILED in str(status):
self.args['print'].goodNews("OK")
else :
self.args['print'].badNews("KO")
Expand Down
1 change: 1 addition & 0 deletions OracleDatabase.py
Expand Up @@ -22,6 +22,7 @@ def __init__(self,args):
self.TARGET_UNAVAILABLE = ["Connect failed because target host or object does not exist",
"listener could not find available handler with matching protocol stack"]
self.ERROR_BAD_FOLDER_OR_BAD_SYSTEM_PRIV = "ORA-29283: "
self.ERROR_FILEOPEN_FAILED = "ORA-22288: "
self.ERROR_NO_PRIVILEGE = "ORA-24247: "
self.ERROR_NO_PRIVILEGE_INVALID_ID = "ORA-00904: "
self.ERROR_NOT_SYSDBA = "ORA-28009: "
Expand Down

0 comments on commit 93cf575

Please sign in to comment.