소스 검색

test: update for new platforms (inc. using `system` library)

tags/v1.8.1
Imran Iqbal 3 년 전
부모
커밋
e6bcdc1b4d
No account linked to committer's email address
8개의 변경된 파일80개의 추가작업 그리고 26개의 파일을 삭제
  1. +13
    -4
      test/integration/v3000-py2/controls/pkgs_spec.rb
  2. +11
    -4
      test/integration/v3000-py2/controls/service_spec.rb
  3. +5
    -1
      test/integration/v3000-py3/controls/pkgs_spec.rb
  4. +3
    -1
      test/integration/v3000-py3/controls/service_spec.rb
  5. +13
    -4
      test/integration/v3001-py3/controls/pkgs_spec.rb
  6. +11
    -4
      test/integration/v3001-py3/controls/service_spec.rb
  7. +13
    -4
      test/integration/v3002-py3/controls/pkgs_spec.rb
  8. +11
    -4
      test/integration/v3002-py3/controls/service_spec.rb

+ 13
- 4
test/integration/v3000-py2/controls/pkgs_spec.rb 파일 보기

# frozen_string_literal: true # frozen_string_literal: true


pkgs =
case system.platform[:name]
when 'arch'
%w[salt]
when /bsd$/
%w[py37-salt-3002.6]
when 'windows'
%w[Salt\ Minion]
else
%w[salt-master salt-minion]
end

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


version = '3000' version = '3000'


%w[
salt-master
salt-minion
].each do |p|
pkgs.each do |p|
describe package(p) do describe package(p) do
it { should be_installed } it { should be_installed }
its('version') { should match(/^#{version}/) } its('version') { should match(/^#{version}/) }

+ 11
- 4
test/integration/v3000-py2/controls/service_spec.rb 파일 보기

# frozen_string_literal: true # frozen_string_literal: true


services =
case system.platform[:family]
when 'bsd'
%w[salt_master salt_minion]
when 'windows'
%w[salt-minion]
else
%w[salt-master salt-minion]
end

control 'salt services' do control 'salt services' do
title 'should be running' title 'should be running'


%w[
salt-master
salt-minion
].each do |p|
services.each do |p|
describe service(p) do describe service(p) do
it { should be_installed } it { should be_installed }
it { should be_enabled } it { should be_enabled }

+ 5
- 1
test/integration/v3000-py3/controls/pkgs_spec.rb 파일 보기

# frozen_string_literal: true # frozen_string_literal: true


pkgs = pkgs =
case platform[:family]
case system.platform[:name]
when 'arch'
%w[salt]
when /bsd$/
%w[py37-salt-3002.6]
when 'windows' when 'windows'
%w[Salt\ Minion] %w[Salt\ Minion]
else else

+ 3
- 1
test/integration/v3000-py3/controls/service_spec.rb 파일 보기

# frozen_string_literal: true # frozen_string_literal: true


services = services =
case platform[:family]
case system.platform[:family]
when 'bsd'
%w[salt_master salt_minion]
when 'windows' when 'windows'
%w[salt-minion] %w[salt-minion]
else else

+ 13
- 4
test/integration/v3001-py3/controls/pkgs_spec.rb 파일 보기

# frozen_string_literal: true # frozen_string_literal: true


pkgs =
case system.platform[:name]
when 'arch'
%w[salt]
when /bsd$/
%w[py37-salt-3002.6]
when 'windows'
%w[Salt\ Minion]
else
%w[salt-master salt-minion]
end

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


version = '3001' version = '3001'


%w[
salt-master
salt-minion
].each do |p|
pkgs.each do |p|
describe package(p) do describe package(p) do
it { should be_installed } it { should be_installed }
its('version') { should match(/^#{version}/) } its('version') { should match(/^#{version}/) }

+ 11
- 4
test/integration/v3001-py3/controls/service_spec.rb 파일 보기

# frozen_string_literal: true # frozen_string_literal: true


services =
case system.platform[:family]
when 'bsd'
%w[salt_master salt_minion]
when 'windows'
%w[salt-minion]
else
%w[salt-master salt-minion]
end

control 'salt services' do control 'salt services' do
title 'should be running' title 'should be running'


%w[
salt-master
salt-minion
].each do |p|
services.each do |p|
describe service(p) do describe service(p) do
it { should be_installed } it { should be_installed }
it { should be_enabled } it { should be_enabled }

+ 13
- 4
test/integration/v3002-py3/controls/pkgs_spec.rb 파일 보기

# frozen_string_literal: true # frozen_string_literal: true


pkgs =
case system.platform[:name]
when 'arch'
%w[salt]
when /bsd$/
%w[py37-salt-3002.6]
when 'windows'
%w[Salt\ Minion]
else
%w[salt-master salt-minion]
end

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


version = '3002' version = '3002'


%w[
salt-master
salt-minion
].each do |p|
pkgs.each do |p|
describe package(p) do describe package(p) do
it { should be_installed } it { should be_installed }
its('version') { should match(/^#{version}/) } its('version') { should match(/^#{version}/) }

+ 11
- 4
test/integration/v3002-py3/controls/service_spec.rb 파일 보기

# frozen_string_literal: true # frozen_string_literal: true


services =
case system.platform[:family]
when 'bsd'
%w[salt_master salt_minion]
when 'windows'
%w[salt-minion]
else
%w[salt-master salt-minion]
end

control 'salt services' do control 'salt services' do
title 'should be running' title 'should be running'


%w[
salt-master
salt-minion
].each do |p|
services.each do |p|
describe service(p) do describe service(p) do
it { should be_installed } it { should be_installed }
it { should be_enabled } it { should be_enabled }

Loading…
취소
저장