From 76ee064ace0f4efb70fe16484bd0612c5aaa5c3a Mon Sep 17 00:00:00 2001 From: sberman Date: Tue, 28 May 2024 17:58:25 +0300 Subject: [PATCH] Fixed tests --- .changelog/4304.yml | 2 +- .../commands/update_release_notes/tests/update_rn_test.py | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.changelog/4304.yml b/.changelog/4304.yml index c38447706e..c682f26126 100644 --- a/.changelog/4304.yml +++ b/.changelog/4304.yml @@ -1,4 +1,4 @@ changes: -- description: Fixed the **update-release-notes** command to support the right template for incident fields, incident types, and layouts. +- description: Fixed the **update-release-notes** command to support the right template for incident fields, incident types, layouts, generic objects, indicator types, and indicator fields. type: fix pr_number: 4304 diff --git a/demisto_sdk/commands/update_release_notes/tests/update_rn_test.py b/demisto_sdk/commands/update_release_notes/tests/update_rn_test.py index a1bb1e1ec0..6ed5037b20 100644 --- a/demisto_sdk/commands/update_release_notes/tests/update_rn_test.py +++ b/demisto_sdk/commands/update_release_notes/tests/update_rn_test.py @@ -78,7 +78,7 @@ def test_build_rn_template_integration(self, mocker): """ expected_result = ( "\n#### Classifiers\n\n##### Hello World Classifier\n\n- %%UPDATE_RN%%\n" - "\n#### Connections\n\n##### Hello World Connections\n\n- %%UPDATE_RN%%\n" + "\n#### Connections\n\n##### Hello World Connection\n\n- %%UPDATE_RN%%\n" "\n#### Dashboards\n\n##### Hello World Dashboard\n\n- %%UPDATE_RN%%\n" "\n#### Incident Fields\n\n##### Hello World IncidentField\n\n- %%UPDATE_RN%%\n" "\n#### Incident Types\n\n##### Hello World Incident Type\n\n- %%UPDATE_RN%%\n" @@ -91,7 +91,6 @@ def test_build_rn_template_integration(self, mocker): "##### Second Hello World Layout\n\n- %%UPDATE_RN%%\n" "\n#### Modules\n\n##### Hello World Generic Module\n\n- %%UPDATE_RN%%\n" "\n#### Objects\n\n##### Hello World Generic Definition\n\n- %%UPDATE_RN%%\n" - "\n#### Indicator Fields\n\n##### Hello World Indicator Field\n\n- %%UPDATE_RN%%\n" "\n#### Playbooks\n\n##### Hello World Playbook\n\n- %%UPDATE_RN%%\n" "\n#### Reports\n\n##### Hello World Report\n\n- %%UPDATE_RN%%\n" "\n#### Scripts\n\n##### Hello World Script\n\n- %%UPDATE_RN%%\n" @@ -203,8 +202,8 @@ def test_build_rn_template_integration_for_generic(self, mock_master): - return a markdown string """ expected_result = ( - "\n#### Objects Fields\n\n##### Sample Generic Field\n\n- %%UPDATE_RN%%\n" - "\n#### Objects Types\n\n##### Sample Generic Type\n\n- %%UPDATE_RN%%\n" + "\n#### Object Fields\n\n##### Sample Generic Field\n\n- %%UPDATE_RN%%\n" + "\n#### Object Types\n\n##### Sample Generic Type\n\n- %%UPDATE_RN%%\n" ) pack_path = TestRNUpdate.FILES_PATH + "/generic_testing" @@ -1560,7 +1559,6 @@ class TestRNUpdateUnit: ##### Sample GenericField - %%UPDATE_RN%% - """ CHANGED_FILES = { ("Cortex XDR Incident", FileType.INCIDENT_TYPE): {