fix(aws_regions_by_service.json): FileNotFoundError[13] (#1689)

Co-authored-by: sergargar <sergio@verica.io>
This commit is contained in:
Sergio Garcia
2023-01-12 13:24:03 +01:00
committed by GitHub
parent b03df619df
commit fe906477da
6 changed files with 29 additions and 33 deletions

View File

@@ -1,3 +1,4 @@
import os
import pathlib
from importlib.machinery import FileFinder
from pkgutil import ModuleInfo
@@ -107,7 +108,7 @@ class Test_Check:
test_cases = [
{
"input": {
"metadata_path": f"{pathlib.Path().absolute()}/tests/lib/check/fixtures/metadata.json",
"metadata_path": f"{os.path.dirname(os.path.realpath(__file__))}/fixtures/metadata.json",
},
"expected": {
"CheckID": "iam_disable_30_days_credentials",