qualys 'about.php' query made mock tests fail, added a bit of logging to mock

This commit is contained in:
Quim
2020-03-03 11:33:03 +01:00
parent 8743b59147
commit e25141261c
2 changed files with 4 additions and 2 deletions

View File

@ -21,10 +21,12 @@ class mockAPI(object):
def get_directories(self, path):
dir, subdirs, files = next(os.walk(path))
self.logger.debug('Subdirectories found: {}'.format(subdirs))
return subdirs
def get_files(self, path):
dir, subdirs, files = next(os.walk(path))
self.logger.debug('Files found: {}'.format(files))
return files
def qualys_vuln_callback(self, request, uri, response_headers):