Skip to content

Commit

Permalink
Bug fixed for False negative in external table
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinhardy committed Jul 16, 2019
1 parent 142e6d0 commit ef3c430
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ExternalTable.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,15 @@ def testAll(self):
folder = self.__generateRandomString__()
self.args['print'].subtitle("External table to read files ?")
logging.info("Simulate the file reading in the {0} folder thanks to an external table".format(folder))
status = self.getFile (remotePath=folder, remoteNameFile='data.txt', localFile="test.txt")
if (status == True or self.ERROR_EXTERNAL_TABLE_WITH_WRITE in str(status) or self.ERROR_EXTERNAL_TABLE_READ in str(status)) and (self.ERROR_ODCIEXTTABLEOPEN not in str(status)):
status = self.getFile(remotePath=folder, remoteNameFile='data.txt', localFile="test.txt")
if (status == True or self.ERROR_EXTERNAL_TABLE_WITH_WRITE in str(status) or self.ERROR_EXTERNAL_TABLE_READ in str(status)):
self.args['print'].goodNews("OK")
else :
self.args['print'].badNews("KO")
self.args['print'].subtitle("External table to execute system commands ?")
logging.info("Simulate the file execution thanks to an external table")
status = self.execute (remotePath=folder, remoteNameFile='test')
if (status == True or self.ERROR_EXTERNAL_TABLE_WITH_WRITE in str(status) or self.ERROR_EXTERNAL_TABLE_READ in str(status)) and (self.ERROR_ODCIEXTTABLEOPEN not in str(status)):
if (status == True or self.ERROR_EXTERNAL_TABLE_WITH_WRITE in str(status) or self.ERROR_EXTERNAL_TABLE_READ in str(status)):
self.args['print'].goodNews("OK")
else :
self.args['print'].badNews("KO")
Expand Down

0 comments on commit ef3c430

Please sign in to comment.