Browse Source

Merge pull request #195 from myii/chore/standardise-structure

ci(kitchen+travis): replace EOL pre-salted images
tags/v1.1.1
Imran Iqbal 5 years ago
parent
commit
4b869ed5b6
No account linked to committer's email address
4 changed files with 53 additions and 27 deletions
  1. +11
    -7
      .travis.yml
  2. +37
    -18
      kitchen.yml
  3. +1
    -1
      test/integration/default/controls/package_spec.rb
  4. +4
    -1
      test/salt/pillar/suse.sls

+ 11
- 7
.travis.yml View File

# the `platforms` defined in `kitchen.yml` # the `platforms` defined in `kitchen.yml`
env: env:
matrix: matrix:
- INSTANCE: debian-debian-9-develop-py3
- INSTANCE: debian-debian-10-develop-py3
# - INSTANCE: ubuntu-ubuntu-1804-develop-py3 # - INSTANCE: ubuntu-ubuntu-1804-develop-py3
# - INSTANCE: redhat-centos-7-develop-py3 # - INSTANCE: redhat-centos-7-develop-py3
# - INSTANCE: redhat-fedora-29-develop-py3
# - INSTANCE: redhat-fedora-30-develop-py3
# - INSTANCE: suse-opensuse-leap-15-develop-py3 # - INSTANCE: suse-opensuse-leap-15-develop-py3
# - INSTANCE: redhat-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: redhat-centos-7-2019-2-py3
# - INSTANCE: redhat-fedora-29-2019-2-py3
# - INSTANCE: redhat-centos-7-2019-2-py3
# - INSTANCE: redhat-fedora-30-2019-2-py3
# - INSTANCE: suse-opensuse-leap-15-2019-2-py3 # - INSTANCE: suse-opensuse-leap-15-2019-2-py3
- INSTANCE: redhat-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: redhat-centos-7-2018-3-py2 # - INSTANCE: redhat-centos-7-2018-3-py2
- INSTANCE: redhat-fedora-29-2018-3-py2 - INSTANCE: redhat-fedora-29-2018-3-py2
- INSTANCE: suse-opensuse-leap-42-2018-3-py2
- INSTANCE: suse-opensuse-leap-15-2018-3-py2
# - INSTANCE: redhat-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: redhat-centos-6-2017-7-py2 - INSTANCE: redhat-centos-6-2017-7-py2
# - INSTANCE: redhat-fedora-28-2017-7-py2
# - INSTANCE: suse-opensuse-leap-42-2017-7-py2
# - INSTANCE: redhat-fedora-29-2017-7-py2
# - INSTANCE: suse-opensuse-leap-15-2017-7-py2
# - INSTANCE: redhat-amazonlinux-2-2017-7-py2


script: script:
- bin/kitchen verify ${INSTANCE} - bin/kitchen verify ${INSTANCE}

+ 37
- 18
kitchen.yml View File

# the `env.matrix` instances defined in `.travis.yml` # the `env.matrix` instances defined in `.travis.yml`
platforms: platforms:
## SALT `develop` ## SALT `develop`
- name: debian-9-develop-py3
- name: debian-10-develop-py3
driver: driver:
image: netmanagers/salt-develop-py3:debian-9
image: netmanagers/salt-develop-py3:debian-10
provision_command: provision_command:
- curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com - curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
- sh bootstrap-salt.sh -XdPbfrq -x python3 git develop - sh bootstrap-salt.sh -XdPbfrq -x python3 git develop
provision_command: provision_command:
- curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com - curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
- sh bootstrap-salt.sh -XdPbfrq -x python3 git develop - sh bootstrap-salt.sh -XdPbfrq -x python3 git develop
- name: fedora-29-develop-py3
- name: fedora-30-develop-py3
driver: driver:
image: netmanagers/salt-develop-py3:fedora-29
image: netmanagers/salt-develop-py3:fedora-30
provision_command: provision_command:
- curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com - curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
- sh bootstrap-salt.sh -XdPbfrq -x python3 git develop - sh bootstrap-salt.sh -XdPbfrq -x python3 git develop
- curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com - curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
- sh bootstrap-salt.sh -XdPbfrq -x python3 git develop - sh bootstrap-salt.sh -XdPbfrq -x python3 git develop
run_command: /usr/lib/systemd/systemd run_command: /usr/lib/systemd/systemd
- name: amazonlinux-2-develop-py2
driver:
image: netmanagers/salt-develop-py2:amazonlinux-2
provision_command:
- curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
- sh bootstrap-salt.sh -XdPbfrq -x python2 git develop


## SALT `2019.2` ## SALT `2019.2`
- name: debian-9-2019-2-py3 - name: debian-9-2019-2-py3
- name: centos-7-2019-2-py3 - name: centos-7-2019-2-py3
driver: driver:
image: netmanagers/salt-2019.2-py3:centos-7 image: netmanagers/salt-2019.2-py3:centos-7
- name: fedora-29-2019-2-py3
- name: fedora-30-2019-2-py3
driver: driver:
image: netmanagers/salt-2019.2-py3:fedora-29
image: netmanagers/salt-2019.2-py3:fedora-30
- name: opensuse-leap-15-2019-2-py3 - name: opensuse-leap-15-2019-2-py3
driver: driver:
image: netmanagers/salt-2019.2-py3:opensuse-leap-15 image: netmanagers/salt-2019.2-py3:opensuse-leap-15
run_command: /usr/lib/systemd/systemd run_command: /usr/lib/systemd/systemd
- name: amazonlinux-2-2019-2-py2
driver:
image: netmanagers/salt-2019.2-py2:amazonlinux-2


## SALT `2018.3` ## SALT `2018.3`
- name: debian-9-2018-3-py2 - name: debian-9-2018-3-py2
- name: fedora-29-2018-3-py2 - name: fedora-29-2018-3-py2
driver: driver:
image: netmanagers/salt-2018.3-py2:fedora-29 image: netmanagers/salt-2018.3-py2:fedora-29
- name: opensuse-leap-42-2018-3-py2
- name: opensuse-leap-15-2018-3-py2
driver: driver:
image: netmanagers/salt-2018.3-py2:opensuse-leap-42
image: netmanagers/salt-2018.3-py2:opensuse-leap-15
run_command: /usr/lib/systemd/systemd run_command: /usr/lib/systemd/systemd
- name: amazonlinux-2-2018-3-py2
driver:
image: netmanagers/salt-2018.3-py2:amazonlinux-2


## SALT `2017.7` ## SALT `2017.7`
- name: debian-8-2017-7-py2 - name: debian-8-2017-7-py2
driver: driver:
image: netmanagers/salt-2017.7-py2:centos-6 image: netmanagers/salt-2017.7-py2:centos-6
run_command: /sbin/init run_command: /sbin/init
- name: fedora-28-2017-7-py2
- name: fedora-29-2017-7-py2
driver: driver:
image: netmanagers/salt-2017.7-py2:fedora-28
- name: opensuse-leap-42-2017-7-py2
image: netmanagers/salt-2017.7-py2:fedora-29
- name: opensuse-leap-15-2017-7-py2
driver: driver:
image: netmanagers/salt-2017.7-py2:opensuse-leap-42
image: netmanagers/salt-2017.7-py2:opensuse-leap-15
run_command: /usr/lib/systemd/systemd run_command: /usr/lib/systemd/systemd
- name: amazonlinux-2-2017-7-py2
driver:
image: netmanagers/salt-2017.7-py2:amazonlinux-2


provisioner: provisioner:
name: salt_solo name: salt_solo
- path: test/integration/default - path: test/integration/default
- name: debian - name: debian
includes: includes:
- debian-9-develop-py3
- debian-10-develop-py3
- debian-9-2019-2-py3 - debian-9-2019-2-py3
- debian-9-2018-3-py2 - debian-9-2018-3-py2
- debian-8-2017-7-py2 - debian-8-2017-7-py2
- name: redhat - name: redhat
includes: includes:
- centos-7-develop-py3 - centos-7-develop-py3
- fedora-29-develop-py3
- fedora-30-develop-py3
- amazonlinux-2-develop-py2
- centos-7-2019-2-py3 - centos-7-2019-2-py3
- fedora-29-2019-2-py3
- fedora-30-2019-2-py3
- amazonlinux-2-2019-2-py2
- centos-7-2018-3-py2 - centos-7-2018-3-py2
- fedora-29-2018-3-py2 - fedora-29-2018-3-py2
- amazonlinux-2-2018-3-py2
- centos-6-2017-7-py2 - centos-6-2017-7-py2
- fedora-28-2017-7-py2
- fedora-29-2017-7-py2
- amazonlinux-2-2017-7-py2
provisioner: provisioner:
state_top: state_top:
base: base:
includes: includes:
- opensuse-leap-15-develop-py3 - opensuse-leap-15-develop-py3
- opensuse-leap-15-2019-2-py3 - opensuse-leap-15-2019-2-py3
- opensuse-leap-42-2018-3-py2
- opensuse-leap-42-2017-7-py2
- opensuse-leap-15-2018-3-py2
- opensuse-leap-15-2017-7-py2
provisioner: provisioner:
state_top: state_top:
base: base:

+ 1
- 1
test/integration/default/controls/package_spec.rb View File

end end


def test_suse def test_suse
describe package('php5') do
describe package('php7') do
it { should be_installed } it { should be_installed }
end end
end end

+ 4
- 1
test/salt/pillar/suse.sls View File

# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# vim: ft=yaml # vim: ft=yaml
--- ---
php: {}
php:
lookup:
pkgs:
php: php7

Loading…
Cancel
Save