From de04f9504a1166c283c0757eb0d1dcb720c2f153 Mon Sep 17 00:00:00 2001 From: YuvHayun Date: Tue, 25 Feb 2025 10:54:42 +0200 Subject: [PATCH] test fixes --- demisto_sdk/commands/validate/tests/PA_validators_test.py | 2 +- demisto_sdk/commands/validate/tests/PB_validators_test.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/demisto_sdk/commands/validate/tests/PA_validators_test.py b/demisto_sdk/commands/validate/tests/PA_validators_test.py index 47b7d7ecbd6..7f510904460 100644 --- a/demisto_sdk/commands/validate/tests/PA_validators_test.py +++ b/demisto_sdk/commands/validate/tests/PA_validators_test.py @@ -1555,7 +1555,7 @@ def test_IsValidUseCasesValidator_fix(): [], 1, [ - "The Pack HelloWorld should be deprecated, as all its content items are deprecated.\nThe name of the pack in the pack_metadata.json should end with (Deprecated).\nThe description of the pack in the pack_metadata.json should be one of the following formats:\n1. 'Deprecated. Use instead.'\n2. 'Deprecated. No available replacement.'" + "The Pack HelloWorld should be deprecated, as all its content items are deprecated.\nThe name of the pack in the pack_metadata.json should end with (Deprecated).\nThe description of the pack in the pack_metadata.json should be one of the following formats:\n1. 'Deprecated. Use PACK_NAME instead.'\n2. 'Deprecated. REASON No available replacement.'" ], ), ( diff --git a/demisto_sdk/commands/validate/tests/PB_validators_test.py b/demisto_sdk/commands/validate/tests/PB_validators_test.py index 388394c97e5..da4fc870403 100644 --- a/demisto_sdk/commands/validate/tests/PB_validators_test.py +++ b/demisto_sdk/commands/validate/tests/PB_validators_test.py @@ -277,14 +277,14 @@ def test_is_no_rolename(content_item, expected_result): ( create_playbook_object( paths=["deprecated", "description"], - values=[True, "Deprecated. Use instead."], + values=[True, "Deprecated. Use PLAYBOOK_NAME instead."], ), [], ), ( create_playbook_object( paths=["deprecated", "description"], - values=[True, "Deprecated. No available replacement."], + values=[True, "Deprecated. REASON No available replacement."], ), [], ), @@ -294,8 +294,8 @@ def test_is_no_rolename(content_item, expected_result): values=[True, "Not a valid description"], ), "The deprecated playbook 'Detonate File - JoeSecurity V2' has invalid description.\nThe description of " - 'all deprecated playbooks should follow one of the formats:\n1. "Deprecated. Use ' - 'instead."\n2. "Deprecated. No available replacement."', + 'all deprecated playbooks should follow one of the formats:\n1. "Deprecated. Use PLAYBOOK_NAME ' + 'instead."\n2. "Deprecated. REASON No available replacement."', ), ], )