mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
fix(checks): solve different errors in EFS, S3 and VPC (#1841)
Co-authored-by: sergargar <sergargar@users.noreply.github.com>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import json
|
||||
from unittest.mock import patch
|
||||
|
||||
import botocore
|
||||
@@ -34,7 +35,7 @@ filesystem_policy = {
|
||||
|
||||
def mock_make_api_call(self, operation_name, kwarg):
|
||||
if operation_name == "DescribeFileSystemPolicy":
|
||||
return {"FileSystemId": file_system_id, "Policy": filesystem_policy}
|
||||
return {"FileSystemId": file_system_id, "Policy": json.dumps(filesystem_policy)}
|
||||
if operation_name == "DescribeBackupPolicy":
|
||||
return {"BackupPolicy": {"Status": backup_policy_status}}
|
||||
return make_api_call(self, operation_name, kwarg)
|
||||
|
||||
Reference in New Issue
Block a user