Skip to content

Commit

Permalink
test: add tests for v3000-py2
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed May 1, 2020
1 parent 965588b commit c228029
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test/integration/v3000-py2/controls/pkgs_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# frozen_string_literal: true

version =
case platform[:family]
when 'debian'
'3000.2+ds-1'
end

control 'salt packages' do
title 'should be installed'

%w[
salt-master
salt-minion
].each do |p|
describe package(p) do
it { should be_installed }
its('version') { should eq version }
end
end
end
16 changes: 16 additions & 0 deletions test/integration/v3000-py2/controls/service_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# frozen_string_literal: true

control 'salt services' do
title 'should be running'

%w[
salt-master
salt-minion
].each do |p|
describe service(p) do
it { should be_installed }
it { should be_enabled }
it { should be_running }
end
end
end
5 changes: 5 additions & 0 deletions test/salt/pillar/v3000-py2.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
salt:
release: '3000'

0 comments on commit c228029

Please sign in to comment.