Skip to content

Commit

Permalink
test(sodium): add pillar and tests for 3001
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Jun 23, 2020
1 parent 4f5e511 commit 42cacc2
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/integration/v3001-py3/controls/pkgs_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# frozen_string_literal: true

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

version = '3001'

%w[
salt-master
salt-minion
].each do |p|
describe package(p) do
it { should be_installed }
its('version') { should match(/^#{version}/) }
end
end
end
16 changes: 16 additions & 0 deletions test/integration/v3001-py3/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
6 changes: 6 additions & 0 deletions test/salt/pillar/v3001-py3.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
salt:
release: '3001'
py_ver: 'py3'

0 comments on commit 42cacc2

Please sign in to comment.