mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
feat(checks): Select checks to run from provider using -c/--checks (#1197)
* feat(checks): Select checks to run * Update providers/aws/services/iam/iam_disable_30_days_credentials/iam_disable_30_days_credentials.py Co-authored-by: Sergio Garcia <38561120+sergargar@users.noreply.github.com>
This commit is contained in:
14
lib/check_test.py
Normal file
14
lib/check_test.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import importlib
|
||||
|
||||
|
||||
class Test_Check:
|
||||
def test_import_check(self):
|
||||
test_cases = [
|
||||
{
|
||||
"name": "Test valid check path",
|
||||
"input": "providers.aws.services.iam.iam_disable_30_days_credentials.iam_disable_30_days_credentials",
|
||||
"expected": "providers.aws.services.iam.iam_disable_30_days_credentials.iam_disable_30_days_credentials",
|
||||
}
|
||||
]
|
||||
for test in test_cases:
|
||||
assert importlib.import_module(test["input"]).__name__ == test["expected"]
|
||||
Reference in New Issue
Block a user