TT#134150 add test exception for backup.log

backup.log is created directly by backup-tools without explicitly
setting the group. It's not guaranteed to exist but must be in group
root if it does.

Change-Id: I80092d8f4cf10f98128668b10afa088037ce431d
mr10.0
Richard Fuchs 4 years ago
parent d778deab9c
commit 5ce4f216ea

@ -70,6 +70,16 @@ file:
group: _ngcp-li
filetype: file
/var/log/ngcp/backup.log:
exists:
or:
- true
- false
mode: "0640"
owner: root
group: root
filetype: file
command:
@ -88,7 +98,7 @@ command:
stderr:
- '!/./'
"find /var/log/ngcp/ -maxdepth 1 -size +0 -type f ! -group adm ! -name api.log":
"find /var/log/ngcp/ -maxdepth 1 -size +0 -type f ! -group adm ! -name api.log ! -name backup.log":
exit-status: 0
stdout:
- '!/./'

Loading…
Cancel
Save