You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
system-tests/templates/135_filesys-logfiles.yaml.tt2

165 lines
3.1 KiB

file:
/var/log/messages:
exists: true
mode: "0640"
owner: root
group: adm
filetype: file
/var/log/syslog:
exists: true
mode: "0640"
owner: root
group: adm
filetype: file
/var/log/daemon.log:
exists: true
mode: "0640"
owner: root
group: adm
filetype: file
/var/log/kern.log:
exists: true
mode: "0640"
owner: root
group: adm
filetype: file
/var/log/auth.log:
exists: true
mode: "0640"
owner: root
group: adm
filetype: file
/var/log/user.log:
exists: true
mode: "0640"
owner: root
group: adm
filetype: file
/var/log/debug:
exists:
or:
- true
- false
mode: "0640"
owner: root
group: adm
filetype: file
/var/log/cron.log:
exists: true
mode: "0640"
owner: root
group: adm
filetype: file
/var/log/ngcp/api.log:
exists:
or:
- true
- false
mode: "0640"
owner: root
group: _ngcp-li
filetype: file
command:
"find /var/log/ngcp/ -maxdepth 1 -type f -size +0 -perm /o+rwx":
exit-status: 0
stdout:
- '!/./'
stderr:
- '!/./'
"find /var/log/ngcp/ -maxdepth 1 -size +0 -type f ! -user root":
exit-status: 0
stdout:
- '!/./'
stderr:
- '!/./'
"find /var/log/ngcp/ -maxdepth 1 -size +0 -type f ! -group adm ! -name api.log":
exit-status: 0
stdout:
- '!/./'
stderr:
- '!/./'
# optionally existing subdirectories
[% FOR dir IN ['/var/log/ngcp/ngcp-rtcengine/', '/var/log/ngcp/ngcp-comx-fileshare-service/'] -%]
"if test -e [% dir %]; then find [% dir %] -maxdepth 1 -type f -size +0 -perm /o+rwx; fi":
exit-status: 0
stdout:
- '!/./'
stderr:
- '!/./'
"if test -e [% dir %]; then find [% dir %] -maxdepth 1 -size +0 -type f ! -user root; fi":
exit-status: 0
stdout:
- '!/./'
stderr:
- '!/./'
"if test -e [% dir %]; then find [% dir %] -maxdepth 1 -size +0 -type f ! -group adm; fi":
exit-status: 0
stdout:
- '!/./'
stderr:
- '!/./'
[% END -%]
"if test -e /var/log/ngcp/nginx/; then find /var/log/ngcp/nginx/ -type f -perm /o+rwx; fi":
exit-status: 0
stdout:
- '!/./'
stderr:
- '!/./'
"if test -e /var/log/ngcp/nginx/; then find /var/log/ngcp/nginx/ -type f ! -user root; fi":
exit-status: 0
stdout:
- '!/./'
stderr:
- '!/./'
"if test -e /var/log/ngcp/nginx/; then find /var/log/ngcp/nginx/ -type f ! -group adm; fi":
exit-status: 0
stdout:
- '!/./'
stderr:
- '!/./'
"if test -e /var/log/ngcp/kannel/; then find /var/log/ngcp/kannel/ -type f -size +0 -perm /o+rwx; fi":
exit-status: 0
stdout:
- '!/./'
stderr:
- '!/./'
"if test -e /var/log/ngcp/kannel/; then find /var/log/ngcp/kannel/ -size +0 -type f ! -user kannel; fi":
exit-status: 0
stdout:
- '!/./'
stderr:
- '!/./'
"if test -e /var/log/ngcp/kannel/; then find /var/log/ngcp/kannel/ -size +0 -type f ! -group adm; fi":
exit-status: 0
stdout:
- '!/./'
stderr:
- '!/./'