feat(tags): add resource tags to C-D services (#2003)

Co-authored-by: Pepe Fagoaga <pepe@verica.io>
This commit is contained in:
Sergio Garcia
2023-03-02 13:14:53 +01:00
committed by GitHub
parent 024ffb1117
commit da834c0935
45 changed files with 306 additions and 198 deletions

View File

@@ -133,6 +133,14 @@ def mock_make_api_call(self, operation_name, kwarg):
},
"ETag": "",
}
if operation_name == "ListTagsForResource":
return {
"Tags": {
"Items": [
{"Key": "test", "Value": "test"},
]
}
}
return make_api_call(self, operation_name, kwarg)
@@ -247,3 +255,7 @@ class Test_CloudFront_Service:
].default_cache_config.field_level_encryption_id
== "enabled"
)
assert cloudfront.distributions[cloudfront_distribution_id].tags == [
{"Key": "test", "Value": "test"},
]