def screenshot_web_service(
self,
web_service_uuid=None,
org_uuid=None,
web_service_scan_uuid=None,
order_uuid=None,
):
"""
Take screenshots of all the relevant endpoints for the given web service.
:param web_service_uuid: The UUID of the web service to take screenshots for.
:param org_uuid: The UUID of the organization that owns the web service.
:param web_service_scan_uuid: The UUID of the scan that this screenshotting is being done in.
:return: None
"""
logger.info(
"Now taking screenshots of all relevant endpoints for web service %s. Organization is %s, scan is %s."
% (web_service_uuid, org_uuid, web_service_scan_uuid)
)
url_paths = get_url_paths_to_screenshot(
service_uuid=web_service_uuid,
db_session=self.db_session,
scan_uuid=web_service_scan_uuid,
)
logger.info(
"A total of %s URL paths remain to be screenshotted for web service %s."
% (len(url_paths), web_service_uuid)
)
task_sigs = []
for url_path in url_paths:
task_sigs.append(screenshot_web_service_url.si(
web_service_uuid=web_service_uuid,
org_uuid=org_uuid,
web_service_scan_uuid=web_service_scan_uuid,
url_path=url_path,
order_uuid=order_uuid,
))
canvas_sig = group(task_sigs)
self.finish_after(signature=canvas_sig)
#USED
评论列表
文章目录