From 5ce4f216eab44b606e4b6db50b9802a43844d58c Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 30 Jul 2021 08:19:48 -0400 Subject: [PATCH] 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 --- templates/135_filesys-logfiles.yaml.tt2 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/templates/135_filesys-logfiles.yaml.tt2 b/templates/135_filesys-logfiles.yaml.tt2 index 6f00c20..4f0efe1 100644 --- a/templates/135_filesys-logfiles.yaml.tt2 +++ b/templates/135_filesys-logfiles.yaml.tt2 @@ -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: - '!/./'