Browse Source

test(pillar): use custom pillar file to run tests

tags/v0.4.0
Nicolas Rodriguez 5 years ago
parent
commit
5cb5bd4af7
2 changed files with 33 additions and 1 deletions
  1. +1
    -1
      kitchen.yml
  2. +32
    -0
      test/salt/pillar/syslog_ng.sls

+ 1
- 1
kitchen.yml View File

@@ -161,7 +161,7 @@ suites:
'*':
- syslog_ng
pillars_from_files:
syslog_ng.sls: pillar.example
syslog_ng.sls: test/salt/pillar/syslog_ng.sls
verifier:
inspec_tests:
- path: test/integration/default

+ 32
- 0
test/salt/pillar/syslog_ng.sls View File

@@ -0,0 +1,32 @@
---
syslog_ng:
options:
- chain_hostnames: no
- flush_lines: 0
- use_dns: no
- use_fqdn: no
- owner: root
- group: adm
- perm: =0640
- stats_freq: 0
- bad_hostname: "^gconfd$"

source:
- s_src:
- system: null
- internal: null

destination:
- d_syslog:
- file:
- /var/log/syslog

filter:
- f_syslog3:
- =not level(debug)

log:
-
- source: =s_src
- filter: =f_syslog3
- destination: =d_syslog

Loading…
Cancel
Save