mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
test(iam_user_two_active_access_key_test): Create unit tests (#1354)
Co-authored-by: sergargar <sergio@verica.io>
This commit is contained in:
@@ -151,7 +151,11 @@ def recover_checks_from_provider(provider: str, service: str = None) -> list:
|
||||
# Format: "providers.{provider}.services.{service}.{check_name}.{check_name}"
|
||||
check_name = module_name.name
|
||||
# We need to exclude common shared libraries in services
|
||||
if check_name.count(".") == 5 and "lib" not in check_name:
|
||||
if (
|
||||
check_name.count(".") == 5
|
||||
and "lib" not in check_name
|
||||
and "test" not in check_name
|
||||
):
|
||||
checks.append(check_name)
|
||||
return checks
|
||||
|
||||
|
||||
Reference in New Issue
Block a user