Skip to content

Commit

Permalink
TT#134150 add test exception for backup.log
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rfuchs committed Jul 30, 2021
1 parent d778dea commit 5ce4f21
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion templates/135_filesys-logfiles.yaml.tt2
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
- '!/./'
Expand Down

0 comments on commit 5ce4f21

Please sign in to comment.