Skip to content

Commit f9d1f81

Browse files
committed
Updating UT with the improved error message and resolved sanity
1 parent bcc3a08 commit f9d1f81

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/unit/modules/dnac/test_lan_automation_workflow_manager.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,11 @@ def test_update_port_channel_negative_testcase_playbook_case_9(self):
402402
)
403403
result = self.execute_module(changed=False, failed=True)
404404
self.assertIn(
405-
"No existing Port Channel configuration found with the provided port_channel_number: 11. If you want to create a new Port Channel, please remove the port_channel_number parameter from your playbook configuration and try again.",
405+
"No existing Port Channel configuration found with the provided "
406+
f"port_channel_number: 11. When both port_channel_number and links "
407+
"are specified, an existing Port Channel is expected for update. "
408+
"If you want to create a new Port Channel, please remove the "
409+
"port_channel_number parameter from your playbook configuration "
410+
"and try again.",
406411
result.get("msg"),
407412
)

0 commit comments

Comments
 (0)