flags/test/lib_cspm
directory and follow these main components:flags/test/lib_cspm/data/
.flags/test/lib_cspm/test_configs/
.flags/test/lib_cspm/results/
.m . /flags/test group_name
group_name
is one of the available test groups, for example:cspm_findings_001_099
cspm_findings_100_199
test_clean_cspm_cache
fixture to disable caching during test execution, ensuring each test runs with a clean state.moto
library for service simulation and mocked responses in data/aws/
data/azure/
data/gcp/
results/
directoryFXXX.csv
where XXX is the finding numbertest_findings_cspm.py
from test.lib_cspm.data.aws.moto_patch import mock_aio_aws
# Using moto context manager for AWS service simulation
with mock_aio_aws():
run_finding("F101") # The finding will use moto's mock AWS environment
data/azure/
data/gcp/
@pytest.mark.usefixtures("test_clean_cspm_cache")
@pytest.mark.flags_test_group("cspm_findings_100_199")
def test_cspm_findings_100_199() -> None:
findings = [
"F101",
"F148",
"F157",
# Add your new finding here
]
run_multiple_findings_test(findings)