Skip to content

Commit 89bdafd

Browse files
committed
CM-39300 - Fix UT
1 parent 4cd617f commit 89bdafd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/cli/files_collector/iac/test_tf_content_generator.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
import re
23

34
from cycode.cli.files_collector.iac import tf_content_generator
45
from cycode.cli.utils.path_utils import get_file_content, get_immediate_subdirectories
@@ -13,4 +14,6 @@ def test_generate_tf_content_from_tfplan() -> None:
1314
tfplan_content = get_file_content(os.path.join(_PATH_TO_EXAMPLES, example, 'tfplan.json'))
1415
tf_expected_content = get_file_content(os.path.join(_PATH_TO_EXAMPLES, example, 'tf_content.txt'))
1516
tf_content = tf_content_generator.generate_tf_content_from_tfplan(example, tfplan_content)
16-
assert tf_content == tf_expected_content
17+
18+
cleaned_tf_content = re.sub(r'-[a-fA-F0-9\-]{36}', '', tf_content)
19+
assert cleaned_tf_content == tf_expected_content

0 commit comments

Comments
 (0)