Skip to content

Commit 3628b8e

Browse files
authored
fix: Fix add transform test (#3010)
1 parent c29f64a commit 3628b8e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/add_transform_test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import shutil
77
import subprocess
88
import sys
9+
from copy import deepcopy
910
from pathlib import Path
1011
from typing import Any, Dict
1112

@@ -86,7 +87,8 @@ def generate_transform_test_output_files(input_file_path: str, file_basename: st
8687
for partition, (region, output_path) in transform_test_output_paths.items():
8788
# Set Boto Session Region to guarantee the same hash input as transform tests for API deployment id
8889
ArnGenerator.BOTO_SESSION_REGION_NAME = region
89-
output_fragment = transform(manifest, {}, ManagedPolicyLoader(iam_client))
90+
# Implicit API Plugin may alter input template file, thus passing a copy here.
91+
output_fragment = transform(deepcopy(manifest), {}, ManagedPolicyLoader(iam_client))
9092

9193
if not CLI_OPTIONS.disable_api_configuration and partition != "aws":
9294
output_fragment = add_regional_endpoint_configuration_if_needed(output_fragment)

0 commit comments

Comments
 (0)