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.

repositories_spec.rb 1.0KB

1234567891011121314151617181920212223242526272829303132333435
  1. require '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-repo.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