From 5c96fe576eac565fcb2c21881b92af60b95ab61a Mon Sep 17 00:00:00 2001 From: toby chen <49122725+651477787@users.noreply.github.com> Date: Tue, 25 Feb 2025 17:53:49 +0800 Subject: [PATCH] Update aaa_test.py --- tests/aaa_test.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/aaa_test.py b/tests/aaa_test.py index a8031854bb..b6c5aacb97 100644 --- a/tests/aaa_test.py +++ b/tests/aaa_test.py @@ -293,16 +293,17 @@ def test_config_aaa_tacacs_reach_maxsize(self, get_cmd_module): servers = ("1.1.1.1", "1.1.1.2", "1.1.1.3", "1.1.1.4", "1.1.1.5", "1.1.1.6", "1.1.1.7", "1.1.1.8") for ip in servers: # config tacacs add - result = runner.invoke(config.config.commands["tacacs"].commands["add"], [ip], obj=obj) + result = runner.invoke(config.config.commands["tacacs"].commands["add"], [ip], obj=db) print(result.exit_code, result.output) assert result.exit_code == 0 result = runner.invoke(show.cli.commands["tacacs"], []) assert result.exit_code == 0 print(result.exit_code, result.output) - result = runner.invoke(config.config.commands["tacacs"].commands["add"], ["1.1.1.9"], obj=obj) - info = runner.invoke(config.config.commands["tacacs"].commands["add"], ["1.1.1.9"], obj=db) - print(result.exit_code) - print(info.exit_code) + result = runner.invoke(config.config.commands["tacacs"].commands["add"], ["1.1.1.9"], obj=db) + info = runner.invoke(config.config.commands["tacacs"].commands["add"], ["1.1.1.9"]) + print(f"{config.config.commands["tacacs"].commands["add"]} 1.1.1.10") + print(result.exit_code, result.output) + print(info.exit_code, info.output) assert result.exit_code != 0, "tacacs server reach maxsize" for ip in servers: