瀏覽代碼

integrating patch from danny-smit, fixes #33

tags/v0.9.0
Eric Veiras Galisson 6 年之前
父節點
當前提交
0d039778f8
共有 2 個檔案被更改,包括 3 行新增4 行删除
  1. +2
    -2
      logrotate/jobs.sls
  2. +1
    -2
      test/integration/default/controls/jobs.rb

+ 2
- 2
logrotate/jobs.sls 查看文件

- template: jinja - template: jinja
- context: - context:
{% if value is mapping %} {% if value is mapping %}
path: {{ value.get('path', []) }}
path: {{ value.get('path', [key]) }}
data: {{ value.get('config', []) }} data: {{ value.get('config', []) }}
{% else %} {% else %}
path: {{ key }}
path: [ {{ key }} ]
data: {{ value }} data: {{ value }}
{% endif %} {% endif %}
{% endif %} {% endif %}

+ 1
- 2
test/integration/default/controls/jobs.rb 查看文件

it { should be_owned_by 'root' } it { should be_owned_by 'root' }
it { should be_grouped_into 'root' } it { should be_grouped_into 'root' }
its('mode') { should cmp '0644' } its('mode') { should cmp '0644' }
# FIXME
#its('content') { should include '/tmp/var/log/mysql/error' }
its('content') { should include '/tmp/var/log/mysql/error' }
its('content') { should include 'weekly' } its('content') { should include 'weekly' }
its('content') { should include 'missingok' } its('content') { should include 'missingok' }
its('content') { should include 'rotate 52' } its('content') { should include 'rotate 52' }

Loading…
取消
儲存