Saltstack Official Apt 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.

36 lines
1.1KB

  1. require_relative '../../../kitchen/data/spec_helper'
  2. describe 'apt.repositories' do
  3. describe package('debian-archive-keyring') do
  4. it { should be_installed }
  5. end
  6. describe file('/etc/apt/sources.list') do
  7. it { should_not exist }
  8. end
  9. describe file('/etc/apt/sources.list.d') do
  10. it { should be_directory }
  11. it { should be_mode 755 }
  12. it { should be_owned_by 'root' }
  13. it { should be_grouped_into 'root' }
  14. end
  15. describe file('/etc/apt/sources.list.d/debian-jessie-source.list') do
  16. it { should exist }
  17. it { should be_mode 644 }
  18. it { should be_owned_by 'root' }
  19. it { should be_grouped_into 'root' }
  20. its(:content) { should match('deb-src http://httpredir.debian.org/debian jessie contrib non-free main') }
  21. end
  22. describe file('/etc/apt/sources.list.d/dropbox-binary.list') do
  23. it { should exist }
  24. it { should be_mode 644 }
  25. it { should be_owned_by 'root' }
  26. it { should be_grouped_into 'root' }
  27. its(:content) { should match(%r{deb \[arch=i386,amd64\] http://linux.dropbox.com/debian jessie main}) }
  28. end
  29. end