Support multiple nodetype library beaker tests
Change-Id: I7dc23d2a5c22c269929f82ac5579d913d4827c45
This commit is contained in:
parent
476c9b7fc2
commit
39e65c0b08
25
.zuul.yaml
25
.zuul.yaml
@ -579,6 +579,29 @@
|
|||||||
- ^test-requirements.txt$
|
- ^test-requirements.txt$
|
||||||
- ^LICENSE$
|
- ^LICENSE$
|
||||||
- ^.gitignore$
|
- ^.gitignore$
|
||||||
|
vars:
|
||||||
|
nodepool_type: centos7
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: puppet-openstack-libraries-puppet-beaker-rspec-ubuntu-bionic
|
||||||
|
parent: puppet-openstack-integration-base
|
||||||
|
pre-run: playbooks/prepare-node-beaker.yaml
|
||||||
|
post-run: playbooks/upload-logs.yaml
|
||||||
|
run: playbooks/run-libraries-beaker-tests.yaml
|
||||||
|
timeout: 3600
|
||||||
|
nodeset: ubuntu-bionic
|
||||||
|
irrelevant-files:
|
||||||
|
- ^.*\.md$
|
||||||
|
- ^.*\.rst$
|
||||||
|
- ^doc/.*$
|
||||||
|
- ^etc/.*$
|
||||||
|
- ^metadata.json$
|
||||||
|
- ^releasenotes/.*$
|
||||||
|
- ^test-requirements.txt$
|
||||||
|
- ^LICENSE$
|
||||||
|
- ^.gitignore$
|
||||||
|
vars:
|
||||||
|
nodepool_type: bionic
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: puppet-openstack-libraries-puppet-lint-centos-7
|
name: puppet-openstack-libraries-puppet-lint-centos-7
|
||||||
@ -703,6 +726,7 @@
|
|||||||
- puppet-openstack-libraries-puppet-unit-4.8-centos-7
|
- puppet-openstack-libraries-puppet-unit-4.8-centos-7
|
||||||
- puppet-openstack-libraries-puppet-unit-latest-centos-7
|
- puppet-openstack-libraries-puppet-unit-latest-centos-7
|
||||||
- puppet-openstack-libraries-puppet-beaker-rspec-centos-7
|
- puppet-openstack-libraries-puppet-beaker-rspec-centos-7
|
||||||
|
- puppet-openstack-libraries-puppet-beaker-rspec-ubuntu-bionic
|
||||||
gate:
|
gate:
|
||||||
jobs:
|
jobs:
|
||||||
- puppet-openstack-libraries-puppet-lint-centos-7
|
- puppet-openstack-libraries-puppet-lint-centos-7
|
||||||
@ -711,3 +735,4 @@
|
|||||||
- puppet-openstack-libraries-puppet-unit-4.8-centos-7
|
- puppet-openstack-libraries-puppet-unit-4.8-centos-7
|
||||||
- puppet-openstack-libraries-puppet-unit-latest-centos-7
|
- puppet-openstack-libraries-puppet-unit-latest-centos-7
|
||||||
- puppet-openstack-libraries-puppet-beaker-rspec-centos-7
|
- puppet-openstack-libraries-puppet-beaker-rspec-centos-7
|
||||||
|
- puppet-openstack-libraries-puppet-beaker-rspec-ubuntu-bionic
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
export WRITE_FACTS=${WRITE_FACTS:-true}
|
export WRITE_FACTS=${WRITE_FACTS:-true}
|
||||||
export DLRN_BASE=${DLRN_BASE:-centos7-master/puppet-passed-ci}
|
export DLRN_BASE=${DLRN_BASE:-centos7-master/puppet-passed-ci}
|
||||||
export DLRN_DEPS_BASE=${DLRN_DEPS_BASE:-centos7-master/deps/latest/}
|
export DLRN_DEPS_BASE=${DLRN_DEPS_BASE:-centos7-master/deps/latest/}
|
||||||
export CEPH_VERSION=${CEPH_VERSION:-luminous}
|
export CEPH_VERSION=${CEPH_VERSION:-mimic}
|
||||||
|
|
||||||
export SCRIPT_DIR=$(cd `dirname $0` && pwd -P)
|
export SCRIPT_DIR=$(cd `dirname $0` && pwd -P)
|
||||||
source $SCRIPT_DIR/functions
|
source $SCRIPT_DIR/functions
|
||||||
|
@ -4,7 +4,7 @@ class openstack_integration::repos {
|
|||||||
if $::ceph_version != '' {
|
if $::ceph_version != '' {
|
||||||
$ceph_version_real = $::ceph_version
|
$ceph_version_real = $::ceph_version
|
||||||
} else {
|
} else {
|
||||||
$ceph_version_real = 'luminous'
|
$ceph_version_real = 'mimic'
|
||||||
}
|
}
|
||||||
case $::osfamily {
|
case $::osfamily {
|
||||||
'Debian': {
|
'Debian': {
|
||||||
|
@ -121,10 +121,10 @@
|
|||||||
export YUM=yum
|
export YUM=yum
|
||||||
fi
|
fi
|
||||||
if [[ -f /usr/bin/yum || -f /usr/bin/dnf ]]; then
|
if [[ -f /usr/bin/yum || -f /usr/bin/dnf ]]; then
|
||||||
$YUM install -y https://yum.puppetlabs.com/puppetlabs-release-pc1-el-7.noarch.rpm
|
$YUM install -y https://yum.puppetlabs.com/puppet5/puppet5-release-el-7.noarch.rpm
|
||||||
$YUM install -y puppet-agent
|
$YUM install -y puppet-agent
|
||||||
elif [ -f /usr/bin/apt-get ]; then
|
elif [ -f /usr/bin/apt-get ]; then
|
||||||
wget https://apt.puppetlabs.com/puppetlabs-release-pc1-{{ ansible_distribution_release }}.deb -O /tmp/puppet.deb
|
wget https://apt.puppetlabs.com/puppet5-release-{{ ansible_distribution_release }}.deb -O /tmp/puppet.deb
|
||||||
dpkg -i /tmp/puppet.deb
|
dpkg -i /tmp/puppet.deb
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install puppet-agent
|
apt-get install puppet-agent
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
shell:
|
shell:
|
||||||
cmd: |
|
cmd: |
|
||||||
trap "{{ ansible_user_dir }}/workspace/openstack/puppet-openstack-integration/copy_logs.sh" EXIT
|
trap "{{ ansible_user_dir }}/workspace/openstack/puppet-openstack-integration/copy_logs.sh" EXIT
|
||||||
|
export BEAKER_PUPPET_COLLECTION=puppet5
|
||||||
export BEAKER_set=nodepool-{{ nodepool_type }}
|
export BEAKER_set=nodepool-{{ nodepool_type }}
|
||||||
export BEAKER_debug=yes
|
export BEAKER_debug=yes
|
||||||
export BEAKER_color=no
|
export BEAKER_color=no
|
||||||
|
@ -25,6 +25,8 @@
|
|||||||
set -e
|
set -e
|
||||||
set -x
|
set -x
|
||||||
trap "{{ ansible_user_dir }}/workspace/openstack/puppet-openstack-integration/copy_logs.sh" EXIT
|
trap "{{ ansible_user_dir }}/workspace/openstack/puppet-openstack-integration/copy_logs.sh" EXIT
|
||||||
|
export BEAKER_PUPPET_COLLECTION=puppet5
|
||||||
|
export BEAKER_set=nodepool-{{ nodepool_type }}
|
||||||
./run_beaker_tests.sh
|
./run_beaker_tests.sh
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
chdir: '{{ ansible_user_dir }}/workspace'
|
chdir: '{{ ansible_user_dir }}/workspace'
|
||||||
|
@ -18,7 +18,7 @@ source ${SCRIPT_DIR}/functions
|
|||||||
|
|
||||||
export WORKSPACE=${WORKSPACE:-/tmp}
|
export WORKSPACE=${WORKSPACE:-/tmp}
|
||||||
export PUPPET_URL_SUFFIX=
|
export PUPPET_URL_SUFFIX=
|
||||||
export CEPH_VERSION=${CEPH_VERSION:-luminous}
|
export CEPH_VERSION=${CEPH_VERSION:-mimic}
|
||||||
export PUPPET_MAJ_VERSION=${PUPPET_MAJ_VERSION:-4}
|
export PUPPET_MAJ_VERSION=${PUPPET_MAJ_VERSION:-4}
|
||||||
export SCENARIO=${SCENARIO:-scenario001}
|
export SCENARIO=${SCENARIO:-scenario001}
|
||||||
export MANAGE_PUPPET_MODULES=${MANAGE_PUPPET_MODULES:-true}
|
export MANAGE_PUPPET_MODULES=${MANAGE_PUPPET_MODULES:-true}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user