Commit e3f0bdf
Fix TACACS accounting UT issue caused by auditd log rotate (#11710)
Fix TACACS accounting UT issue caused by auditd log rotate
### Description of PR
Fix TACACS accounting UT issue caused by auditd log rotate
##### Work item tracking
- Microsoft ADO: 26710599
### Type of change
- [x] Bug fix
- [ ] Testbed and Framework(new/improvement)
- [] Test case(new/improvement)
## Approach
#### What is the motivation for this PR?
Fix TACACS accounting UT issue caused by auditd log rotate.
There are 2 code issue:
1. when auditd log rotate, some auditd log will missing from output of 'service auditd status'
1. duthost.command() can only run 1 command, so can't handle piping output to grep
#### How did you do it?
show auditd log with 'sudo journalctl -u auditd --boot' and run command with duthost.shell() to support grep.
#### How did you verify/test it?
Pass all UT1 parent 22b238f commit e3f0bdf
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | | - | |
| 318 | + | |
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
| |||
0 commit comments