mirror of
https://github.com/saltstack-formulas/packages-formula.git
synced 2025-04-17 10:10:27 +00:00
ci(kitchen+inspec): add fedora30 and fedora29 tests suites
This commit is contained in:
parent
39ba77d044
commit
e41117c34b
5 changed files with 92 additions and 12 deletions
|
@ -33,25 +33,25 @@ env:
|
||||||
- INSTANCE: debian-debian-10-develop-py3
|
- INSTANCE: debian-debian-10-develop-py3
|
||||||
# - INSTANCE: ubuntu-ubuntu-1804-develop-py3
|
# - INSTANCE: ubuntu-ubuntu-1804-develop-py3
|
||||||
# - INSTANCE: default-centos-7-develop-py3
|
# - INSTANCE: default-centos-7-develop-py3
|
||||||
# - INSTANCE: default-fedora-30-develop-py3
|
#- INSTANCE: fedora30-fedora-30-develop-py3
|
||||||
# - INSTANCE: default-opensuse-leap-15-develop-py3
|
# - INSTANCE: default-opensuse-leap-15-develop-py3
|
||||||
# - INSTANCE: default-amazonlinux-2-develop-py2
|
# - INSTANCE: default-amazonlinux-2-develop-py2
|
||||||
# - INSTANCE: debian-debian-9-2019-2-py3
|
# - INSTANCE: debian-debian-9-2019-2-py3
|
||||||
- INSTANCE: ubuntu-ubuntu-1804-2019-2-py3
|
- INSTANCE: ubuntu-ubuntu-1804-2019-2-py3
|
||||||
# - INSTANCE: default-centos-7-2019-2-py3
|
# - INSTANCE: default-centos-7-2019-2-py3
|
||||||
# - INSTANCE: default-fedora-30-2019-2-py3
|
- INSTANCE: fedora30-fedora-30-2019-2-py3
|
||||||
# - INSTANCE: default-opensuse-leap-15-2019-2-py3
|
# - INSTANCE: default-opensuse-leap-15-2019-2-py3
|
||||||
- INSTANCE: default-amazonlinux-2-2019-2-py2
|
- INSTANCE: default-amazonlinux-2-2019-2-py2
|
||||||
# - INSTANCE: debian-debian-9-2018-3-py2
|
# - INSTANCE: debian-debian-9-2018-3-py2
|
||||||
# - INSTANCE: ubuntu-ubuntu-1604-2018-3-py2
|
# - INSTANCE: ubuntu-ubuntu-1604-2018-3-py2
|
||||||
# - INSTANCE: default-centos-7-2018-3-py2
|
# - INSTANCE: default-centos-7-2018-3-py2
|
||||||
- INSTANCE: default-fedora-29-2018-3-py2
|
- INSTANCE: fedora29-fedora-29-2018-3-py2
|
||||||
- INSTANCE: default-opensuse-leap-15-2018-3-py2
|
- INSTANCE: default-opensuse-leap-15-2018-3-py2
|
||||||
# - INSTANCE: default-amazonlinux-2-2018-3-py2
|
# - INSTANCE: default-amazonlinux-2-2018-3-py2
|
||||||
# - INSTANCE: debian-debian-8-2017-7-py2
|
# - INSTANCE: debian-debian-8-2017-7-py2
|
||||||
# - INSTANCE: ubuntu-ubuntu-1604-2017-7-py2
|
# - INSTANCE: ubuntu-ubuntu-1604-2017-7-py2
|
||||||
- INSTANCE: default-centos-6-2017-7-py2
|
- INSTANCE: default-centos-6-2017-7-py2
|
||||||
# - INSTANCE: default-fedora-29-2017-7-py2
|
# - INSTANCE: fedora29-fedora-29-2017-7-py2
|
||||||
# - INSTANCE: default-opensuse-leap-15-2017-7-py2
|
# - INSTANCE: default-opensuse-leap-15-2017-7-py2
|
||||||
# - INSTANCE: default-amazonlinux-2-2017-7-py2
|
# - INSTANCE: default-amazonlinux-2-2017-7-py2
|
||||||
|
|
||||||
|
|
40
kitchen.yml
40
kitchen.yml
|
@ -176,3 +176,43 @@ suites:
|
||||||
verifier:
|
verifier:
|
||||||
inspec_tests:
|
inspec_tests:
|
||||||
- path: test/integration/default
|
- path: test/integration/default
|
||||||
|
|
||||||
|
- name: fedora30
|
||||||
|
includes:
|
||||||
|
- fedora-30-develop-py3
|
||||||
|
- fedora-30-2019-2-py3
|
||||||
|
provisioner:
|
||||||
|
state_top:
|
||||||
|
base:
|
||||||
|
'*':
|
||||||
|
- packages
|
||||||
|
pillars:
|
||||||
|
top.sls:
|
||||||
|
base:
|
||||||
|
'*':
|
||||||
|
- packages
|
||||||
|
pillars_from_files:
|
||||||
|
packages.sls: test/salt/pillar/pillar.example.fedora30
|
||||||
|
verifier:
|
||||||
|
inspec_tests:
|
||||||
|
- path: test/integration/default
|
||||||
|
|
||||||
|
- name: fedora29
|
||||||
|
includes:
|
||||||
|
- fedora-29-2018-3-py2
|
||||||
|
- fedora-29-2017-7-py2
|
||||||
|
provisioner:
|
||||||
|
state_top:
|
||||||
|
base:
|
||||||
|
'*':
|
||||||
|
- packages
|
||||||
|
pillars:
|
||||||
|
top.sls:
|
||||||
|
base:
|
||||||
|
'*':
|
||||||
|
- packages
|
||||||
|
pillars_from_files:
|
||||||
|
packages.sls: test/salt/pillar/pillar.example.fedora29
|
||||||
|
verifier:
|
||||||
|
inspec_tests:
|
||||||
|
- path: test/integration/default
|
||||||
|
|
|
@ -18,10 +18,12 @@ when 'redhat', 'centos'
|
||||||
}
|
}
|
||||||
lock_file = '/etc/yum/pluginconf.d/versionlock.list'
|
lock_file = '/etc/yum/pluginconf.d/versionlock.list'
|
||||||
when 'fedora'
|
when 'fedora'
|
||||||
os_packages = %w(
|
case os[:release]
|
||||||
python2-dnf-plugin-versionlock
|
when '29'
|
||||||
python3-dnf-plugin-versionlock
|
os_packages = ['python2-dnf-plugin-versionlock']
|
||||||
)
|
when '30'
|
||||||
|
os_packages = ['python3-dnf-plugin-versionlock']
|
||||||
|
end
|
||||||
held_packages = {
|
held_packages = {
|
||||||
'alien': '8.95-8.fc29',
|
'alien': '8.95-8.fc29',
|
||||||
'iotop': '0.6-18.fc29'
|
'iotop': '0.6-18.fc29'
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
packages:
|
packages:
|
||||||
pkgs:
|
pkgs:
|
||||||
held:
|
# held:
|
||||||
alien: 8.95-8.fc29
|
# alien: 8.95-8.fc29
|
||||||
iotop: 0.6-18.fc29
|
# iotop: 0.6-18.fc29
|
||||||
wanted:
|
wanted:
|
||||||
- git
|
- git
|
||||||
- less
|
- less
|
||||||
|
@ -15,7 +15,7 @@ packages:
|
||||||
pkgs:
|
pkgs:
|
||||||
- git
|
- git
|
||||||
- python2-dnf-plugin-versionlock
|
- python2-dnf-plugin-versionlock
|
||||||
- python3-dnf-plugin-versionlock
|
# - python3-dnf-plugin-versionlock
|
||||||
# Not testing pips in FC29 because it still ships 2018.3.3
|
# Not testing pips in FC29 because it still ships 2018.3.3
|
||||||
# which breaks with pip > 18 (https://github.com/saltstack/salt/issues/49967)
|
# which breaks with pip > 18 (https://github.com/saltstack/salt/issues/49967)
|
||||||
# pips:
|
# pips:
|
38
test/salt/pillar/pillar.example.fedora30
Normal file
38
test/salt/pillar/pillar.example.fedora30
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
packages:
|
||||||
|
pkgs:
|
||||||
|
# held:
|
||||||
|
# alien: 8.95-8.fc29
|
||||||
|
# iotop: 0.6-18.fc29
|
||||||
|
wanted:
|
||||||
|
- git
|
||||||
|
- less
|
||||||
|
- bc
|
||||||
|
- curl
|
||||||
|
- fail2ban
|
||||||
|
unwanted:
|
||||||
|
- avahi-daemon
|
||||||
|
required:
|
||||||
|
pkgs:
|
||||||
|
- git
|
||||||
|
# - python2-dnf-plugin-versionlock
|
||||||
|
- python3-dnf-plugin-versionlock
|
||||||
|
# Not testing pips in FC29 because it still ships 2018.3.3
|
||||||
|
# which breaks with pip > 18 (https://github.com/saltstack/salt/issues/49967)
|
||||||
|
pips:
|
||||||
|
wanted:
|
||||||
|
# - dxpy
|
||||||
|
- attrs
|
||||||
|
unwanted:
|
||||||
|
- campbel
|
||||||
|
- reverse_geocode
|
||||||
|
- indy-crypto
|
||||||
|
gems:
|
||||||
|
wanted:
|
||||||
|
- progressbar
|
||||||
|
- minitest
|
||||||
|
unwanted:
|
||||||
|
- diff-lcs
|
||||||
|
- kitchen-vagrant
|
||||||
|
- kwalify
|
||||||
|
remote_pkgs:
|
||||||
|
zoom: 'https://zoom.us/client/latest/zoom_x86_64.rpm'
|
Loading…
Add table
Reference in a new issue