Pārlūkot izejas kodu

test: add tests for `v3000-py2`

tags/v1.4.1
Imran Iqbal pirms 4 gadiem
vecāks
revīzija
c228029879
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
3 mainītis faili ar 42 papildinājumiem un 0 dzēšanām
  1. +21
    -0
      test/integration/v3000-py2/controls/pkgs_spec.rb
  2. +16
    -0
      test/integration/v3000-py2/controls/service_spec.rb
  3. +5
    -0
      test/salt/pillar/v3000-py2.sls

+ 21
- 0
test/integration/v3000-py2/controls/pkgs_spec.rb Parādīt failu

@@ -0,0 +1,21 @@
# frozen_string_literal: true

version =
case platform[:family]
when 'debian'
'3000.2+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

+ 16
- 0
test/integration/v3000-py2/controls/service_spec.rb Parādīt failu

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

+ 5
- 0
test/salt/pillar/v3000-py2.sls Parādīt failu

@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
salt:
release: '3000'

Notiek ielāde…
Atcelt
Saglabāt