mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2024-11-27 22:38:10 +01:00
test(magnesium): add pillar and tests for 3002
This commit is contained in:
parent
2a5b6798d4
commit
c0660608d7
17
test/integration/v3002-py3/controls/pkgs_spec.rb
Normal file
17
test/integration/v3002-py3/controls/pkgs_spec.rb
Normal file
@ -0,0 +1,17 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
control 'salt packages' do
|
||||
title 'should be installed'
|
||||
|
||||
version = '3002'
|
||||
|
||||
%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
test/integration/v3002-py3/controls/service_spec.rb
Normal file
16
test/integration/v3002-py3/controls/service_spec.rb
Normal 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
|
6
test/salt/pillar/v3002-py3.sls
Normal file
6
test/salt/pillar/v3002-py3.sls
Normal file
@ -0,0 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
---
|
||||
salt:
|
||||
release: '3002'
|
||||
py_ver: 'py3'
|
Loading…
Reference in New Issue
Block a user