ci(kitchen+inspec): add initial support for opensuse

This commit is contained in:
Eric Veiras Galisson 2019-08-16 14:14:25 +02:00 committed by Imran Iqbal
parent d320ccd36b
commit 58b1209d9a
No known key found for this signature in database
GPG key ID: 6D8629439D2B7819
4 changed files with 42 additions and 9 deletions

View file

@ -32,27 +32,27 @@ env:
matrix:
# - INSTANCE: debian-debian-10-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: default-opensuse-leap-15-develop-py3
- INSTANCE: suse-opensuse-leap-15-develop-py3
# - INSTANCE: default-amazonlinux-2-develop-py2
# - INSTANCE: debian-debian-9-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: default-opensuse-leap-15-2019-2-py3
- INSTANCE: suse-opensuse-leap-15-2019-2-py3
# - INSTANCE: default-amazonlinux-2-2019-2-py2
# - INSTANCE: debian-debian-9-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: default-opensuse-leap-15-2018-3-py2
- INSTANCE: suse-opensuse-leap-15-2018-3-py2
# - INSTANCE: default-amazonlinux-2-2018-3-py2
# - INSTANCE: debian-debian-8-2017-7-py2
# - INSTANCE: ubuntu-ubuntu-1604-2017-7-py2
# - INSTANCE: centos-centos-6-2017-7-py2
# - INSTANCE: fedora29-fedora-29-2017-7-py2
# - INSTANCE: default-opensuse-leap-15-2017-7-py2
- INSTANCE: suse-opensuse-leap-15-2017-7-py2
# - INSTANCE: default-amazonlinux-2-2017-7-py2
script:

View file

@ -242,3 +242,29 @@ suites:
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:
base:
'*':
- packages
pillars:
top.sls:
base:
'*':
- packages
pillars_from_files:
packages.sls: test/salt/pillar/pillar.example.opensuse
verifier:
inspec_tests:
- path: test/integration/default

View file

@ -1,4 +1,11 @@
### REMOTE PKGS
remote_pkgs = ['zoom']
case os[:name]
when 'opensuse'
remote_pkgs = []
end
control 'Remote packages' do
title 'should be downloaded and installed'

View file

@ -23,5 +23,5 @@ packages:
- diff-lcs
- kitchen-vagrant
- kwalify
remote_pkgs:
zoom: 'https://zoom.us/client/latest/zoom_openSUSE_x86_64.rpm'
# remote_pkgs:
# zoom: 'https://zoom.us/client/latest/zoom_openSUSE_x86_64.rpm'