浏览代码

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

tags/v0.4.0
Nicolas Rodriguez 5 年前
父节点
当前提交
5cb5bd4af7
共有 2 个文件被更改,包括 33 次插入1 次删除
  1. +1
    -1
      kitchen.yml
  2. +32
    -0
      test/salt/pillar/syslog_ng.sls

+ 1
- 1
kitchen.yml 查看文件

@@ -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 查看文件

@@ -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

正在加载...
取消
保存