handle description in describe secret operation, add tests

This commit is contained in:
= 2020-04-24 21:47:11 +02:00
commit b63110be9e
2 changed files with 102 additions and 1 deletions

View file

@ -279,7 +279,7 @@ class SecretsManagerBackend(BaseBackend):
{
"ARN": secret_arn(self.region, secret["secret_id"]),
"Name": secret["name"],
"Description": "",
"Description": secret.get("description", ""),
"KmsKeyId": "",
"RotationEnabled": secret["rotation_enabled"],
"RotationLambdaARN": secret["rotation_lambda_arn"],