Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Shellyber committed May 28, 2024
1 parent 8b7ce0e commit 76ee064
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .changelog/4304.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -1560,7 +1559,6 @@ class TestRNUpdateUnit:
##### Sample GenericField
- %%UPDATE_RN%%
"""
CHANGED_FILES = {
("Cortex XDR Incident", FileType.INCIDENT_TYPE): {
Expand Down

0 comments on commit 76ee064

Please sign in to comment.