TT#26451 Add a check for /var/cores/

- Rename the file so that it makes more sense with the new checks.
- Improve the directory contents check to be more robust against
  changes in ls output (ideally goss would support this directly
  with the contains directive).

Change-Id: I8bebb929240e3147627a1ec5db246f73f948799e
changes/79/17379/2
Guillem Jover 9 years ago
parent 6dd64ec3dc
commit 16c0119e7e

@ -0,0 +1,15 @@
file:
/var/cores:
exists: true
mode: "1777"
owner: root
group: root
filetype: directory
contains: []
command:
"ls /var/cores/":
exit-status: 0
stdout:
- "!/^core\\..+/"
stderr: []

@ -1,6 +0,0 @@
command:
"ls -la /var/cores/core.*":
exit-status: 2
stdout: []
stderr:
- "/ls: cannot access '??/var/cores/core.*'??: No such file or directory/"

@ -1,6 +1,6 @@
gossfile:
000_self-test-command.yaml: {}
110_filesys-no-cores.yaml: {}
110_filesys-cores.yaml: {}
120_filesys-free-space.yaml: {}
130_filesys-ngcp.yaml: {}
[% IF general.ngcp_type != 'spce' -%]

Loading…
Cancel
Save