Skip to content

Commit eeef1fd

Browse files
liuh-80yxieca
authored andcommitted
Remove unsupported command from TACACS RO user test case. (#7845)
What I did Remove unsupported command from test_ro_user_allowed_command test case. Why I did it For RO user, cat command should only show syslog and syslog.1 How I verified it Pass all UT.
1 parent 34745c9 commit eeef1fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/tacacs/test_ro_user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def test_ro_user_allowed_command(localhost, duthosts, enum_rand_one_per_hwsku_ho
9696

9797
# Run as RO and use the commands allowed by the sudoers file
9898
commands = {
99-
"cat": ["sudo cat /var/log/syslog", "sudo cat /var/log/syslog.1", "sudo cat /var/log/syslog.2.gz"],
99+
"cat": ["sudo cat /var/log/syslog", "sudo cat /var/log/syslog.1"],
100100
"brctl": ["sudo brctl show"],
101101
"docker": [
102102
"sudo docker exec snmp cat /etc/snmp/snmpd.conf",

0 commit comments

Comments
 (0)