Browse Source
test(magnesium): add pillar and tests for `3002`
tags/v1.7.2
Imran Iqbal
3 years ago
No account linked to committer's email address
3 changed files with
39 additions and
0 deletions
-
test/integration/v3002-py3/controls/pkgs_spec.rb
-
test/integration/v3002-py3/controls/service_spec.rb
-
test/salt/pillar/v3002-py3.sls
|
|
|
|
|
|
|
|
|
|
|
# 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 |
|
|
|
|
|
|
|
|
|
|
|
# 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 |
|
|
|
|
|
|
|
|
|
|
|
# -*- coding: utf-8 -*- |
|
|
|
|
|
# vim: ft=yaml |
|
|
|
|
|
--- |
|
|
|
|
|
salt: |
|
|
|
|
|
release: '3002' |
|
|
|
|
|
py_ver: 'py3' |