mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
add debian-11 tests
This commit is contained in:
parent
4c1903f004
commit
8275732c6c
3 changed files with 232 additions and 0 deletions
184
.github/workflows/main.yml
vendored
184
.github/workflows/main.yml
vendored
|
@ -2620,6 +2620,190 @@ jobs:
|
||||||
bundle exec kitchen destroy latest-debian-10
|
bundle exec kitchen destroy latest-debian-10
|
||||||
|
|
||||||
|
|
||||||
|
py3-stable-3002-debian-11:
|
||||||
|
name: Debian 11 v3002 Py3 Stable
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 20
|
||||||
|
|
||||||
|
needs: lint
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Setup Ruby
|
||||||
|
uses: actions/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: 2.6.x
|
||||||
|
|
||||||
|
- name: Install Bundler
|
||||||
|
run: |
|
||||||
|
gem install bundler
|
||||||
|
|
||||||
|
- name: Setup Bundle
|
||||||
|
run: |
|
||||||
|
bundle install --with docker --without opennebula ec2 windows vagrant
|
||||||
|
|
||||||
|
- name: Set up Python 3.7
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: 3.7
|
||||||
|
|
||||||
|
- name: Install Python Dependencies
|
||||||
|
run: |
|
||||||
|
pip install -U pip
|
||||||
|
pip install -r tests/requirements.txt
|
||||||
|
|
||||||
|
- name: Create Test Container
|
||||||
|
run: |
|
||||||
|
bundle exec kitchen create py3-stable-3002-debian-11 || bundle exec kitchen create py3-stable-3002-debian-11
|
||||||
|
|
||||||
|
- name: Test Bootstrap In Test Container
|
||||||
|
run: |
|
||||||
|
bundle exec kitchen verify py3-stable-3002-debian-11
|
||||||
|
|
||||||
|
- name: Destroy Test Container
|
||||||
|
if: always()
|
||||||
|
run: |
|
||||||
|
bundle exec kitchen destroy py3-stable-3002-debian-11
|
||||||
|
|
||||||
|
|
||||||
|
py3-git-3002-debian-11:
|
||||||
|
name: Debian 11 v3002 Py3 Git
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 20
|
||||||
|
|
||||||
|
needs: lint
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Setup Ruby
|
||||||
|
uses: actions/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: 2.6.x
|
||||||
|
|
||||||
|
- name: Install Bundler
|
||||||
|
run: |
|
||||||
|
gem install bundler
|
||||||
|
|
||||||
|
- name: Setup Bundle
|
||||||
|
run: |
|
||||||
|
bundle install --with docker --without opennebula ec2 windows vagrant
|
||||||
|
|
||||||
|
- name: Set up Python 3.7
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: 3.7
|
||||||
|
|
||||||
|
- name: Install Python Dependencies
|
||||||
|
run: |
|
||||||
|
pip install -U pip
|
||||||
|
pip install -r tests/requirements.txt
|
||||||
|
|
||||||
|
- name: Create Test Container
|
||||||
|
run: |
|
||||||
|
bundle exec kitchen create py3-git-3002-debian-11 || bundle exec kitchen create py3-git-3002-debian-11
|
||||||
|
|
||||||
|
- name: Test Bootstrap In Test Container
|
||||||
|
run: |
|
||||||
|
bundle exec kitchen verify py3-git-3002-debian-11
|
||||||
|
|
||||||
|
- name: Destroy Test Container
|
||||||
|
if: always()
|
||||||
|
run: |
|
||||||
|
bundle exec kitchen destroy py3-git-3002-debian-11
|
||||||
|
|
||||||
|
|
||||||
|
py3-git-master-debian-11:
|
||||||
|
name: Debian 11 Master Py3 Git
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 20
|
||||||
|
|
||||||
|
needs: lint
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Setup Ruby
|
||||||
|
uses: actions/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: 2.6.x
|
||||||
|
|
||||||
|
- name: Install Bundler
|
||||||
|
run: |
|
||||||
|
gem install bundler
|
||||||
|
|
||||||
|
- name: Setup Bundle
|
||||||
|
run: |
|
||||||
|
bundle install --with docker --without opennebula ec2 windows vagrant
|
||||||
|
|
||||||
|
- name: Set up Python 3.7
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: 3.7
|
||||||
|
|
||||||
|
- name: Install Python Dependencies
|
||||||
|
run: |
|
||||||
|
pip install -U pip
|
||||||
|
pip install -r tests/requirements.txt
|
||||||
|
|
||||||
|
- name: Create Test Container
|
||||||
|
run: |
|
||||||
|
bundle exec kitchen create py3-git-master-debian-11 || bundle exec kitchen create py3-git-master-debian-11
|
||||||
|
|
||||||
|
- name: Test Bootstrap In Test Container
|
||||||
|
run: |
|
||||||
|
bundle exec kitchen verify py3-git-master-debian-11
|
||||||
|
|
||||||
|
- name: Destroy Test Container
|
||||||
|
if: always()
|
||||||
|
run: |
|
||||||
|
bundle exec kitchen destroy py3-git-master-debian-11
|
||||||
|
|
||||||
|
|
||||||
|
latest-debian-11:
|
||||||
|
name: Debian 11 Latest packaged release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 20
|
||||||
|
|
||||||
|
needs: lint
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Setup Ruby
|
||||||
|
uses: actions/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: 2.6.x
|
||||||
|
|
||||||
|
- name: Install Bundler
|
||||||
|
run: |
|
||||||
|
gem install bundler
|
||||||
|
|
||||||
|
- name: Setup Bundle
|
||||||
|
run: |
|
||||||
|
bundle install --with docker --without opennebula ec2 windows vagrant
|
||||||
|
|
||||||
|
- name: Set up Python 3.7
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: 3.7
|
||||||
|
|
||||||
|
- name: Install Python Dependencies
|
||||||
|
run: |
|
||||||
|
pip install -U pip
|
||||||
|
pip install -r tests/requirements.txt
|
||||||
|
|
||||||
|
- name: Create Test Container
|
||||||
|
run: |
|
||||||
|
bundle exec kitchen create latest-debian-11 || bundle exec kitchen create latest-debian-11
|
||||||
|
|
||||||
|
- name: Test Bootstrap In Test Container
|
||||||
|
run: |
|
||||||
|
bundle exec kitchen verify latest-debian-11
|
||||||
|
|
||||||
|
- name: Destroy Test Container
|
||||||
|
if: always()
|
||||||
|
run: |
|
||||||
|
bundle exec kitchen destroy latest-debian-11
|
||||||
|
|
||||||
|
|
||||||
py2-stable-2019-2-debian-9:
|
py2-stable-2019-2-debian-9:
|
||||||
name: Debian 9 v2019.2 Py2 Stable
|
name: Debian 9 v2019.2 Py2 Stable
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
27
.github/workflows/templates/generate.py
vendored
27
.github/workflows/templates/generate.py
vendored
|
@ -12,6 +12,7 @@ LINUX_DISTROS = [
|
||||||
"centos-7",
|
"centos-7",
|
||||||
"centos-8",
|
"centos-8",
|
||||||
"debian-10",
|
"debian-10",
|
||||||
|
"debian-11",
|
||||||
"debian-9",
|
"debian-9",
|
||||||
"fedora-32",
|
"fedora-32",
|
||||||
"fedora-33",
|
"fedora-33",
|
||||||
|
@ -30,6 +31,7 @@ STABLE_DISTROS = [
|
||||||
"centos-7",
|
"centos-7",
|
||||||
"centos-8",
|
"centos-8",
|
||||||
"debian-10",
|
"debian-10",
|
||||||
|
"debian-11",
|
||||||
"debian-9",
|
"debian-9",
|
||||||
"fedora-32",
|
"fedora-32",
|
||||||
"fedora-33",
|
"fedora-33",
|
||||||
|
@ -43,6 +45,7 @@ STABLE_DISTROS = [
|
||||||
PY2_BLACKLIST = [
|
PY2_BLACKLIST = [
|
||||||
"centos-8",
|
"centos-8",
|
||||||
"debian-10",
|
"debian-10",
|
||||||
|
"debian-11",
|
||||||
"fedora-32",
|
"fedora-32",
|
||||||
"fedora-33",
|
"fedora-33",
|
||||||
"gentoo",
|
"gentoo",
|
||||||
|
@ -56,15 +59,29 @@ PY3_BLACKLIST = [
|
||||||
]
|
]
|
||||||
|
|
||||||
BLACKLIST_2019 = [
|
BLACKLIST_2019 = [
|
||||||
|
"debian-11",
|
||||||
"fedora-33",
|
"fedora-33",
|
||||||
"ubuntu-2004",
|
"ubuntu-2004",
|
||||||
]
|
]
|
||||||
|
|
||||||
BLACKLIST_3000 = [
|
BLACKLIST_3000 = [
|
||||||
|
"debian-11",
|
||||||
"fedora-33",
|
"fedora-33",
|
||||||
"ubuntu-2004",
|
"ubuntu-2004",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
BLACKLIST_3001 = [
|
||||||
|
"debian-11",
|
||||||
|
]
|
||||||
|
|
||||||
|
BLACKLIST_3001_0 = [
|
||||||
|
"debian-11",
|
||||||
|
]
|
||||||
|
|
||||||
|
BLACKLIST_3002_0 = [
|
||||||
|
"debian-11",
|
||||||
|
]
|
||||||
|
|
||||||
SALT_BRANCHES = [
|
SALT_BRANCHES = [
|
||||||
"2019-2",
|
"2019-2",
|
||||||
"3000",
|
"3000",
|
||||||
|
@ -100,6 +117,7 @@ DISTRO_DISPLAY_NAMES = {
|
||||||
"centos-7": "CentOS 7",
|
"centos-7": "CentOS 7",
|
||||||
"centos-8": "CentOS 8",
|
"centos-8": "CentOS 8",
|
||||||
"debian-10": "Debian 10",
|
"debian-10": "Debian 10",
|
||||||
|
"debian-11": "Debian 11",
|
||||||
"debian-9": "Debian 9",
|
"debian-9": "Debian 9",
|
||||||
"fedora-32": "Fedora 32",
|
"fedora-32": "Fedora 32",
|
||||||
"fedora-33": "Fedora 33",
|
"fedora-33": "Fedora 33",
|
||||||
|
@ -221,6 +239,15 @@ def generate_test_jobs():
|
||||||
if branch == "3000" and distro in BLACKLIST_3000:
|
if branch == "3000" and distro in BLACKLIST_3000:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if branch == "3001" and distro in BLACKLIST_3001:
|
||||||
|
continue
|
||||||
|
|
||||||
|
if branch == "3001-0" and distro in BLACKLIST_3001_0:
|
||||||
|
continue
|
||||||
|
|
||||||
|
if branch == "3002-0" and distro in BLACKLIST_3002_0:
|
||||||
|
continue
|
||||||
|
|
||||||
if python_version == "py2" and distro in PY2_BLACKLIST:
|
if python_version == "py2" and distro in PY2_BLACKLIST:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
21
.kitchen.yml
21
.kitchen.yml
|
@ -63,6 +63,10 @@ platforms:
|
||||||
- name: debian-10
|
- name: debian-10
|
||||||
driver_config:
|
driver_config:
|
||||||
run_command: /lib/systemd/systemd
|
run_command: /lib/systemd/systemd
|
||||||
|
- name: debian-11
|
||||||
|
driver_config:
|
||||||
|
image: debian:bullseye
|
||||||
|
run_command: /lib/systemd/systemd
|
||||||
- name: fedora-32
|
- name: fedora-32
|
||||||
driver_config:
|
driver_config:
|
||||||
image: fedora:32
|
image: fedora:32
|
||||||
|
@ -115,18 +119,24 @@ suites:
|
||||||
provisioner:
|
provisioner:
|
||||||
salt_version: 2019.2
|
salt_version: 2019.2
|
||||||
excludes:
|
excludes:
|
||||||
|
- debian-10
|
||||||
|
- debian-11
|
||||||
- gentoo
|
- gentoo
|
||||||
- gentoo-systemd
|
- gentoo-systemd
|
||||||
- name: py2-git-3000
|
- name: py2-git-3000
|
||||||
provisioner:
|
provisioner:
|
||||||
salt_version: 3000
|
salt_version: 3000
|
||||||
excludes:
|
excludes:
|
||||||
|
- debian-10
|
||||||
|
- debian-11
|
||||||
- gentoo
|
- gentoo
|
||||||
- gentoo-systemd
|
- gentoo-systemd
|
||||||
- name: py2-git-master
|
- name: py2-git-master
|
||||||
provisioner:
|
provisioner:
|
||||||
salt_version: master
|
salt_version: master
|
||||||
excludes:
|
excludes:
|
||||||
|
- debian-10
|
||||||
|
- debian-11
|
||||||
- gentoo
|
- gentoo
|
||||||
- gentoo-systemd
|
- gentoo-systemd
|
||||||
- name: py2-stable-2019-2
|
- name: py2-stable-2019-2
|
||||||
|
@ -138,6 +148,8 @@ suites:
|
||||||
- opensuse-15
|
- opensuse-15
|
||||||
- fedora-32
|
- fedora-32
|
||||||
- fedora-33
|
- fedora-33
|
||||||
|
- debian-10
|
||||||
|
- debian-11
|
||||||
- gentoo
|
- gentoo
|
||||||
- gentoo-systemd
|
- gentoo-systemd
|
||||||
- ubuntu-2004
|
- ubuntu-2004
|
||||||
|
@ -148,6 +160,8 @@ suites:
|
||||||
excludes:
|
excludes:
|
||||||
- arch
|
- arch
|
||||||
- opensuse-15
|
- opensuse-15
|
||||||
|
- debian-10
|
||||||
|
- debian-11
|
||||||
- fedora-32
|
- fedora-32
|
||||||
- fedora-33
|
- fedora-33
|
||||||
- gentoo
|
- gentoo
|
||||||
|
@ -160,6 +174,7 @@ suites:
|
||||||
salt_bootstrap_options: -x python3 -MPfq git %s
|
salt_bootstrap_options: -x python3 -MPfq git %s
|
||||||
excludes:
|
excludes:
|
||||||
- amazon-1
|
- amazon-1
|
||||||
|
- debian-11
|
||||||
- ubuntu-2004
|
- ubuntu-2004
|
||||||
- name: py3-git-2019-2
|
- name: py3-git-2019-2
|
||||||
provisioner:
|
provisioner:
|
||||||
|
@ -167,6 +182,7 @@ suites:
|
||||||
salt_bootstrap_options: -x python3 -MPfq git %s
|
salt_bootstrap_options: -x python3 -MPfq git %s
|
||||||
excludes:
|
excludes:
|
||||||
- amazon-1
|
- amazon-1
|
||||||
|
- debian-11
|
||||||
- ubuntu-2004
|
- ubuntu-2004
|
||||||
- name: py3-git-3001
|
- name: py3-git-3001
|
||||||
provisioner:
|
provisioner:
|
||||||
|
@ -186,6 +202,7 @@ suites:
|
||||||
salt_bootstrap_options: -x python3 -MP stable %s
|
salt_bootstrap_options: -x python3 -MP stable %s
|
||||||
excludes:
|
excludes:
|
||||||
- amazon-1
|
- amazon-1
|
||||||
|
- debian-11
|
||||||
- opensuse-15
|
- opensuse-15
|
||||||
- arch
|
- arch
|
||||||
- ubuntu-2004
|
- ubuntu-2004
|
||||||
|
@ -195,6 +212,7 @@ suites:
|
||||||
salt_bootstrap_options: -x python3 -MP stable %s
|
salt_bootstrap_options: -x python3 -MP stable %s
|
||||||
excludes:
|
excludes:
|
||||||
- amazon-1
|
- amazon-1
|
||||||
|
- debian-11
|
||||||
- opensuse-15
|
- opensuse-15
|
||||||
- arch
|
- arch
|
||||||
- ubuntu-2004
|
- ubuntu-2004
|
||||||
|
@ -205,6 +223,7 @@ suites:
|
||||||
excludes:
|
excludes:
|
||||||
- amazon-1
|
- amazon-1
|
||||||
- opensuse-15
|
- opensuse-15
|
||||||
|
- debian-11
|
||||||
- fedora-32
|
- fedora-32
|
||||||
- fedora-33
|
- fedora-33
|
||||||
- arch
|
- arch
|
||||||
|
@ -214,6 +233,7 @@ suites:
|
||||||
salt_bootstrap_options: -x python3 -MP stable %s
|
salt_bootstrap_options: -x python3 -MP stable %s
|
||||||
excludes:
|
excludes:
|
||||||
- amazon-1
|
- amazon-1
|
||||||
|
- debian-11
|
||||||
- opensuse-15
|
- opensuse-15
|
||||||
- arch
|
- arch
|
||||||
- name: py3-stable-3002-0
|
- name: py3-stable-3002-0
|
||||||
|
@ -223,6 +243,7 @@ suites:
|
||||||
excludes:
|
excludes:
|
||||||
- amazon-1
|
- amazon-1
|
||||||
- opensuse-15
|
- opensuse-15
|
||||||
|
- debian-11
|
||||||
- fedora-32
|
- fedora-32
|
||||||
- fedora-33
|
- fedora-33
|
||||||
- arch
|
- arch
|
||||||
|
|
Loading…
Add table
Reference in a new issue