Browse Source

Bootstrap using git, so versions don't collide at package install time.

tags/v0.57.0
Javier Bértoli 5 years ago
parent
commit
5ffc1e5bc1
7 changed files with 56 additions and 59 deletions
  1. +8
    -8
      kitchen.yml
  2. +8
    -8
      test/integration/2017-7/pkgs_spec.rb
  3. +8
    -9
      test/integration/2017-7/service_spec.rb
  4. +8
    -8
      test/integration/2018-3/pkgs_spec.rb
  5. +8
    -9
      test/integration/2018-3/service_spec.rb
  6. +8
    -8
      test/integration/2019-2/pkgs_spec.rb
  7. +8
    -9
      test/integration/2019-2/service_spec.rb

+ 8
- 8
kitchen.yml View File



provisioner: provisioner:
name: salt_solo name: salt_solo
salt_bootstrap_options: -X -d
salt_bootstrap_options: -X -d git %s
log_level: info log_level: info
require_chef: false require_chef: false
formula: salt formula: salt
- ubuntu-18.04 - ubuntu-18.04
- centos-7 - centos-7
provisioner: provisioner:
salt_version: '2019.2.0'
salt_version: '2019.2'
pillars: pillars:
salt.sls: salt.sls:
salt: salt:
includes: includes:
- fedora-29 - fedora-29
provisioner: provisioner:
salt_version: '2019.2.0'
salt_version: '2019.2'
pillars: pillars:
salt.sls: salt.sls:
salt: salt:
provisioner: provisioner:
# We require an old version of salt in the provisioner or, # We require an old version of salt in the provisioner or,
# the salt formula fails to downgrade to the desired version to test # the salt formula fails to downgrade to the desired version to test
salt_version: '2018.3.3'
salt_version: '2018.3'
pillars: pillars:
salt.sls: salt.sls:
salt: salt:
provisioner: provisioner:
# We require an old version of salt in the provisioner or, # We require an old version of salt in the provisioner or,
# the salt formula fails to downgrade to the desired version to test # the salt formula fails to downgrade to the desired version to test
salt_version: '2016.11.10'
salt_version: '2016.11'
pillars: pillars:
salt.sls: salt.sls:
salt: salt:
provisioner: provisioner:
# We require an old version of salt in the provisioner or, # We require an old version of salt in the provisioner or,
# the salt formula fails to downgrade to the desired version to test # the salt formula fails to downgrade to the desired version to test
salt_version: '2018.3.3'
salt_version: '2018.3'
pillars: pillars:
salt.sls: salt.sls:
salt: salt:
provisioner: provisioner:
# We require an old version of salt in the provisioner or, # We require an old version of salt in the provisioner or,
# the salt formula fails to downgrade to the desired version to test # the salt formula fails to downgrade to the desired version to test
salt_version: '2017.7.8'
salt_version: '2017.7'
pillars: pillars:
salt.sls: salt.sls:
salt: salt:
provisioner: provisioner:
# We require an old version of salt in the provisioner or, # We require an old version of salt in the provisioner or,
# the salt formula fails to downgrade to the desired version to test # the salt formula fails to downgrade to the desired version to test
salt_version: '2016.11.10'
salt_version: '2016.11'
pillars: pillars:
salt.sls: salt.sls:
salt: salt:

+ 8
- 8
test/integration/2017-7/pkgs_spec.rb View File

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


describe package('salt-master') do
it { should be_installed }
its('version') { should eq version }
end
describe package('salt-minion') do
it { should be_installed }
its('version') { should eq version }
%w(
salt-master
salt-minion
).each do |p|
describe package(p) do
it { should be_installed }
its('version') { should eq version }
end
end end
end end

+ 8
- 9
test/integration/2017-7/service_spec.rb View File

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


describe service('salt-master') do
it { should be_enabled }
it { 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

describe service('salt-minion') do
it { should be_enabled }
it { should be_running }
end

end end

+ 8
- 8
test/integration/2018-3/pkgs_spec.rb View File

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


describe package('salt-master') do
it { should be_installed }
its('version') { should eq version }
end
describe package('salt-minion') do
it { should be_installed }
its('version') { should eq version }
%w(
salt-master
salt-minion
).each do |p|
describe package(p) do
it { should be_installed }
its('version') { should eq version }
end
end end
end end

+ 8
- 9
test/integration/2018-3/service_spec.rb View File

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


describe service('salt-master') do
it { should be_enabled }
it { 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

describe service('salt-minion') do
it { should be_enabled }
it { should be_running }
end

end end

+ 8
- 8
test/integration/2019-2/pkgs_spec.rb View File

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


describe package('salt-master') do
it { should be_installed }
its('version') { should eq version }
end
describe package('salt-minion') do
it { should be_installed }
its('version') { should eq version }
%w(
salt-master
salt-minion
).each do |p|
describe package(p) do
it { should be_installed }
its('version') { should eq version }
end
end end
end end

+ 8
- 9
test/integration/2019-2/service_spec.rb View File

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


describe service('salt-master') do
it { should be_enabled }
it { 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

describe service('salt-minion') do
it { should be_enabled }
it { should be_running }
end

end end

Loading…
Cancel
Save