From afc467785dcea9f1ee05ee3cc9ea763108a91e60 Mon Sep 17 00:00:00 2001 From: Macwan Nevil Date: Sat, 4 Dec 2021 21:24:06 +0530 Subject: [PATCH] fixed tf-test (#4653) --- moto/iam/exceptions.py | 5 ++++- tests/terraform-tests.success.txt | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/moto/iam/exceptions.py b/moto/iam/exceptions.py index 3677e62e0..d3f22c55b 100644 --- a/moto/iam/exceptions.py +++ b/moto/iam/exceptions.py @@ -47,7 +47,10 @@ class MalformedPolicyDocument(RESTError): def __init__(self, message=""): super(MalformedPolicyDocument, self).__init__( - "MalformedPolicyDocument", message + "MalformedPolicyDocument", + message, + xmlns=XMLNS_IAM, + template="wrapped_single_error", ) diff --git a/tests/terraform-tests.success.txt b/tests/terraform-tests.success.txt index 4885fd805..455d66359 100644 --- a/tests/terraform-tests.success.txt +++ b/tests/terraform-tests.success.txt @@ -119,4 +119,5 @@ TestAccAWSENI_IPv6 TestAccAWSENI_disappears TestAccAWSS3BucketObject_ TestAccAWSIAMPolicy_ -TestAccAWSIAMGroup_ \ No newline at end of file +TestAccAWSIAMGroup_ +TestAccAWSIAMRolePolicy \ No newline at end of file