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

36 lines
620B

  1. # frozen_string_literal: true
  2. <<<<<<< HEAD
  3. version =
  4. case platform[:family]
  5. when 'redhat'
  6. case platform[:name]
  7. when 'amazon'
  8. '2019.2.3-1.amzn2'
  9. when 'centos'
  10. '2019.2.3-1.el8'
  11. end
  12. when 'suse'
  13. '2019.2.0-lp151.5.9.1'
  14. when 'debian'
  15. '2019.2.3+ds-1'
  16. end
  17. =======
  18. >>>>>>> 43dd0c7efc57c6da83477218ba1038bcf42ba945
  19. control 'salt packages' do
  20. title 'should be installed'
  21. version = '2019.2.5'
  22. %w[
  23. salt-master
  24. salt-minion
  25. ].each do |p|
  26. describe package(p) do
  27. it { should be_installed }
  28. its('version') { should match(/^#{version}/) }
  29. end
  30. end
  31. end