mirror of
https://github.com/saltstack-formulas/packages-formula.git
synced 2025-04-17 10:10:27 +00:00
ci(kitchen+inspec): add Amazonlinux test suite
This commit is contained in:
parent
58b1209d9a
commit
edb0d73ffe
4 changed files with 76 additions and 13 deletions
16
.travis.yml
16
.travis.yml
|
@ -34,26 +34,26 @@ env:
|
||||||
# - INSTANCE: ubuntu-ubuntu-1804-develop-py3
|
# - INSTANCE: ubuntu-ubuntu-1804-develop-py3
|
||||||
# - INSTANCE: centos-centos-7-develop-py3
|
# - INSTANCE: centos-centos-7-develop-py3
|
||||||
# - INSTANCE: fedora30-fedora-30-develop-py3
|
# - INSTANCE: fedora30-fedora-30-develop-py3
|
||||||
- INSTANCE: suse-opensuse-leap-15-develop-py3
|
# - INSTANCE: suse-opensuse-leap-15-develop-py3
|
||||||
# - INSTANCE: default-amazonlinux-2-develop-py2
|
- INSTANCE: amazonlinux-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: centos-centos-7-2019-2-py3
|
# - INSTANCE: centos-centos-7-2019-2-py3
|
||||||
# - INSTANCE: fedora30-fedora-30-2019-2-py3
|
# - INSTANCE: fedora30-fedora-30-2019-2-py3
|
||||||
- INSTANCE: suse-opensuse-leap-15-2019-2-py3
|
# - INSTANCE: suse-opensuse-leap-15-2019-2-py3
|
||||||
# - INSTANCE: default-amazonlinux-2-2019-2-py2
|
- INSTANCE: amazonlinux-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: centos-centos-7-2018-3-py2
|
# - INSTANCE: centos-centos-7-2018-3-py2
|
||||||
# - INSTANCE: fedora29-fedora-29-2018-3-py2
|
# - INSTANCE: fedora29-fedora-29-2018-3-py2
|
||||||
- INSTANCE: suse-opensuse-leap-15-2018-3-py2
|
# - INSTANCE: suse-opensuse-leap-15-2018-3-py2
|
||||||
# - INSTANCE: default-amazonlinux-2-2018-3-py2
|
- INSTANCE: amazonlinux-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: centos-centos-6-2017-7-py2
|
# - INSTANCE: centos-centos-6-2017-7-py2
|
||||||
# - INSTANCE: fedora29-fedora-29-2017-7-py2
|
# - INSTANCE: fedora29-fedora-29-2017-7-py2
|
||||||
- INSTANCE: suse-opensuse-leap-15-2017-7-py2
|
# - INSTANCE: suse-opensuse-leap-15-2017-7-py2
|
||||||
# - INSTANCE: default-amazonlinux-2-2017-7-py2
|
- INSTANCE: amazonlinux-amazonlinux-2-2017-7-py2
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- bin/kitchen verify ${INSTANCE}
|
- bin/kitchen verify ${INSTANCE}
|
||||||
|
|
36
kitchen.yml
36
kitchen.yml
|
@ -243,17 +243,43 @@ suites:
|
||||||
inspec_tests:
|
inspec_tests:
|
||||||
- path: test/integration/default
|
- path: test/integration/default
|
||||||
|
|
||||||
- name: suse
|
- name: amazonlinux
|
||||||
includes:
|
includes:
|
||||||
- opensuse-leap-15-develop-py3
|
- amazonlinux-2-develop-py2
|
||||||
- opensuse-leap-15-2019-2-py3
|
- amazonlinux-2-2019-2-py2
|
||||||
- opensuse-leap-15-2018-3-py2
|
- amazonlinux-2-2018-3-py2
|
||||||
- opensuse-leap-15-2017-7-py2
|
- amazonlinux-2-2017-7-py2
|
||||||
provisioner:
|
provisioner:
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: epel
|
- name: epel
|
||||||
repo: git
|
repo: git
|
||||||
source: https://github.com/saltstack-formulas/epel-formula.git
|
source: https://github.com/saltstack-formulas/epel-formula.git
|
||||||
|
state_top:
|
||||||
|
base:
|
||||||
|
'*':
|
||||||
|
- packages
|
||||||
|
pillars:
|
||||||
|
top.sls:
|
||||||
|
base:
|
||||||
|
'*':
|
||||||
|
- packages
|
||||||
|
pillars_from_files:
|
||||||
|
packages.sls: test/salt/pillar/pillar.example.amazonlinux
|
||||||
|
verifier:
|
||||||
|
inspec_tests:
|
||||||
|
- path: test/integration/default
|
||||||
|
|
||||||
|
- name: suse
|
||||||
|
includes:
|
||||||
|
- opensuse-leap-15-develop-py3
|
||||||
|
- opensuse-leap-15-2019-2-py3
|
||||||
|
- opensuse-leap-15-2018-3-py2
|
||||||
|
- opensuse-leap-15-2017-7-py2
|
||||||
|
provisioner:
|
||||||
|
# dependencies:
|
||||||
|
# - name: epel
|
||||||
|
# repo: git
|
||||||
|
# source: https://github.com/saltstack-formulas/epel-formula.git
|
||||||
state_top:
|
state_top:
|
||||||
base:
|
base:
|
||||||
'*':
|
'*':
|
||||||
|
|
|
@ -43,6 +43,10 @@ when 'debian', 'ubuntu'
|
||||||
'iotop': '0.6-'
|
'iotop': '0.6-'
|
||||||
}
|
}
|
||||||
lock_file = '/var/lib/dpkg/status'
|
lock_file = '/var/lib/dpkg/status'
|
||||||
|
when 'amazon'
|
||||||
|
common_packages.delete('fail2ban')
|
||||||
|
os_packages = ['git']
|
||||||
|
held_packages = []
|
||||||
end
|
end
|
||||||
|
|
||||||
## FIXME - not testing Held packages
|
## FIXME - not testing Held packages
|
||||||
|
|
33
test/salt/pillar/pillar.example.amazonlinux
Normal file
33
test/salt/pillar/pillar.example.amazonlinux
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
packages:
|
||||||
|
pkgs:
|
||||||
|
# held:
|
||||||
|
# - alien
|
||||||
|
# - iotop
|
||||||
|
wanted:
|
||||||
|
- git
|
||||||
|
- less
|
||||||
|
- bc
|
||||||
|
- curl
|
||||||
|
unwanted:
|
||||||
|
- avahi-daemon
|
||||||
|
required:
|
||||||
|
pkgs:
|
||||||
|
- git
|
||||||
|
- yum-plugin-versionlock
|
||||||
|
pips:
|
||||||
|
wanted:
|
||||||
|
- 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