Saltstack Official Apt Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 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 exist }
  8. its(:size) { should eq 0 }
  9. end
  10. describe file('/etc/apt/sources.list.d') do
  11. it { should be_directory }
  12. it { should be_mode 755 }
  13. it { should be_owned_by 'root' }
  14. it { should be_grouped_into 'root' }
  15. end
  16. describe file('/etc/apt/sources.list.d/debian-jessie-source.list') do
  17. it { should exist }
  18. it { should be_mode 644 }
  19. it { should be_owned_by 'root' }
  20. it { should be_grouped_into 'root' }
  21. its(:content) { should match('deb-src http://httpredir.debian.org/debian jessie contrib non-free main') }
  22. end
  23. describe file('/etc/apt/sources.list.d/dropbox-binary.list') do
  24. it { should exist }
  25. it { should be_mode 644 }
  26. it { should be_owned_by 'root' }
  27. it { should be_grouped_into 'root' }
  28. its(:content) { should match(%r{deb \[arch=i386,amd64\] http://linux.dropbox.com/debian jessie main}) }
  29. end
  30. end