mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-27 13:54:18 +00:00
feat(tags): add resource tags in A services (#1997)
This commit is contained in:
1 parent
eabccba3fa
commit
032feb343f
40 files changed
+195
-123
No files matched your search
@@ -137,6 +137,7 @@ class Test_Lambda_Service:
|
||||
"SubnetIds": ["subnet-123abc"],
|
||||
},
|
||||
Environment={"Variables": {"db-password": "test-password"}},
|
||||
Tags={"test": "test"},
|
||||
)
|
||||
# Update Lambda Policy
|
||||
lambda_policy = {
|
||||
@@ -218,6 +219,8 @@ class Test_Lambda_Service:
|
||||
lambda_name
|
||||
].url_config.cors_config.allow_origins == ["*"]
|
||||
|
||||
assert awslambda.functions[lambda_name].tags == [{"test": "test"}]
|
||||
|
||||
# Pending ZipFile tests
|
||||
with tempfile.TemporaryDirectory() as tmp_dir_name:
|
||||
awslambda.functions[lambda_name].code.code_zip.extractall(tmp_dir_name)
|
||||
|
||||
Reference in new issue
Block a user