SuperTux88's Diaspora Saltstack Formula
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

config_spec.rb 808B

1234567891011121314151617181920212223242526
  1. # frozen_string_literal: true
  2. control 'diaspora configuration' do
  3. title 'should match desired lines'
  4. describe file('/srv/diaspora/config/database.yml') do
  5. it { should be_file }
  6. it { should be_owned_by 'diaspora' }
  7. it { should be_grouped_into 'root' }
  8. its('mode') { should cmp '0600' }
  9. its('content') do
  10. should include '# This file is managed by Salt! Do not edit by hand!'
  11. end
  12. end
  13. describe file('/srv/diaspora/config/diaspora.yml') do
  14. it { should be_file }
  15. it { should be_owned_by 'diaspora' }
  16. it { should be_grouped_into 'root' }
  17. its('mode') { should cmp '0600' }
  18. its('content') do
  19. should include '# This file is managed by Salt! Do not edit by hand!'
  20. end
  21. its('content') { should include 'rails_environment: production' }
  22. end
  23. end