mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-11-08 12:24:45 +00:00
feat(sdk): add multi-provider compliance framework JSONs (#10300)
Co-authored-by: Alan Buscaglia <gentlemanprogramming@gmail.com>
This commit is contained in:
1 parent
b97d68fbd5
commit
d4ece2b43e
4 files changed
+9181
No files matched your search
@@ -394,6 +394,7 @@ class Test_Config:
|
||||
|
||||
def test_get_available_compliance_frameworks(self):
|
||||
compliance_frameworks = [
|
||||
"csa_ccm_4.0",
|
||||
"cisa_aws",
|
||||
"soc2_aws",
|
||||
"cis_1.4_aws",
|
||||
@@ -428,6 +429,13 @@ class Test_Config:
|
||||
get_available_compliance_frameworks().sort() == compliance_frameworks.sort()
|
||||
)
|
||||
|
||||
def test_get_available_compliance_frameworks_filters_universal_by_provider(self):
|
||||
aws_frameworks = get_available_compliance_frameworks("aws")
|
||||
kubernetes_frameworks = get_available_compliance_frameworks("kubernetes")
|
||||
|
||||
assert "csa_ccm_4.0" in aws_frameworks
|
||||
assert "csa_ccm_4.0" not in kubernetes_frameworks
|
||||
|
||||
def test_load_and_validate_config_file_aws(self):
|
||||
path = pathlib.Path(os.path.dirname(os.path.realpath(__file__)))
|
||||
config_test_file = f"{path}/fixtures/config.yaml"
|
||||
|
||||
Reference in new issue
Block a user