2
0

test(sodium): add pillar and tests for 3001

This commit is contained in:
Imran Iqbal 2020-06-23 08:44:08 +01:00
parent 4f5e51184c
commit 42cacc253f
No known key found for this signature in database
GPG Key ID: 6D8629439D2B7819
3 changed files with 39 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,6 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
salt:
release: '3001'
py_ver: 'py3'