Browse Source
test(neon): add pillar and tests for `3000`
tags/v1.3.2
Imran Iqbal
4 years ago
No account linked to committer's email address
4 changed files with
54 additions and
1 deletions
-
test/integration/v201902-py3/controls/pkgs_spec.rb
-
test/integration/v3000-py3/controls/pkgs_spec.rb
-
test/integration/v3000-py3/controls/service_spec.rb
-
test/salt/pillar/v3000-py3.sls
|
|
|
|
|
|
|
|
when 'fedora' |
|
|
when 'fedora' |
|
|
'2019.2.1rc0-3.fc31' |
|
|
'2019.2.1rc0-3.fc31' |
|
|
when 'suse' |
|
|
when 'suse' |
|
|
'2019.2.0-lp151.5.12.1' |
|
|
|
|
|
|
|
|
'2019.2.0-lp151.28.1' |
|
|
when 'debian' |
|
|
when 'debian' |
|
|
'2019.2.3+ds-1' |
|
|
'2019.2.3+ds-1' |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
# frozen_string_literal: true |
|
|
|
|
|
|
|
|
|
|
|
version = |
|
|
|
|
|
case platform[:family] |
|
|
|
|
|
when 'redhat' |
|
|
|
|
|
case platform[:name] |
|
|
|
|
|
when 'amazon' |
|
|
|
|
|
'3000-1.amzn2' |
|
|
|
|
|
when 'centos' |
|
|
|
|
|
'3000-1.el8' |
|
|
|
|
|
end |
|
|
|
|
|
when 'fedora' |
|
|
|
|
|
'3000-5.fc31' |
|
|
|
|
|
when 'suse' |
|
|
|
|
|
'3000-lp151.28.1' |
|
|
|
|
|
when 'debian' |
|
|
|
|
|
'3000+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 |
|
|
|
|
|
|
|
|
|
|
|
# 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_enabled } |
|
|
|
|
|
it { should be_running } |
|
|
|
|
|
end |
|
|
|
|
|
end |
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
# -*- coding: utf-8 -*- |
|
|
|
|
|
# vim: ft=yaml |
|
|
|
|
|
--- |
|
|
|
|
|
salt: |
|
|
|
|
|
release: '3000' |
|
|
|
|
|
py_ver: 'py3' |