Integrate gating unit tests to puppet modules

This commit adds unit tests that can serve as a minimal
gate that verifies the Puppet modules work on the following
versions of Puppet:
  - 2.6
  - 2.7
  - 3.0
  - 3.1

and builds jenkins jobs for the following modules:

  - cinder
  - nova
  - glance
  - horizon
  - openstack
  - swift

The unit tests are implemented as a job-group in jenkins job builder
with a single project called puppet-module-unit that is set as the
check and gate for the stackforge projects.

Change-Id: I61684bf150e572adaf3e9d9ae67f22d409f9afa4
Reviewed-on: https://review.openstack.org/26148
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Dan Bode <bodepd@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
This commit is contained in:
Dan Bode 2013-04-04 12:17:46 -07:00 committed by Jenkins
parent e775582e05
commit be584b0c46
3 changed files with 150 additions and 18 deletions

View File

@ -738,3 +738,72 @@
jobs: jobs:
- python-jobs - python-jobs
- project:
name: puppet-glance
github-org: stackforge
node: quantal
tarball-site: tarballs.openstack.org
jobs:
- puppet-module-unit
- project:
name: puppet-keystone
github-org: stackforge
node: quantal
tarball-site: tarballs.openstack.org
jobs:
- puppet-module-unit
- project:
name: puppet-cinder
github-org: stackforge
node: quantal
tarball-site: tarballs.openstack.org
jobs:
- puppet-module-unit
- project:
name: puppet-nova
github-org: stackforge
node: quantal
tarball-site: tarballs.openstack.org
jobs:
- puppet-module-unit
- project:
name: puppet-horizon
github-org: stackforge
node: quantal
tarball-site: tarballs.openstack.org
jobs:
- puppet-module-unit
- project:
name: puppet-openstack
github-org: stackforge
node: quantal
tarball-site: tarballs.openstack.org
jobs:
- puppet-module-unit
- project:
name: puppet-swift
github-org: stackforge
node: quantal
tarball-site: tarballs.openstack.org
jobs:
- puppet-module-unit

View File

@ -0,0 +1,21 @@
- job-template:
name: 'gate-{name}-puppet-unit-{puppet_version}'
node: '{node}'
builders:
- shell: |
export PUPPET_GEM_VERSION={puppet_version}
bundle install
echo {puppet_version} | grep '2.6' && git clone git://github.com/puppetlabs/puppetlabs-create_resources.git spec/fixtures/modules/create_resources || true
bundle exec rake spec SPEC_OPTS='--format documentation'
- job-group:
name: 'puppet-module-unit'
puppet_version:
- 2.6
- 2.7
- 3.0
- 3.1
jobs:
- 'gate-{name}-puppet-unit-{puppet_version}'

View File

@ -1463,47 +1463,89 @@ projects:
- name: stackforge/puppet-cinder - name: stackforge/puppet-cinder
check: check:
- gate-noop - gate-puppet-cinder-puppet-unit-2.6
- gate-puppet-cinder-puppet-unit-2.7
- gate-puppet-cinder-puppet-unit-3.0
- gate-puppet-cinder-puppet-unit-3.1
gate: gate:
- gate-noop - gate-puppet-cinder-puppet-unit-2.6
- gate-puppet-cinder-puppet-unit-2.7
- gate-puppet-cinder-puppet-unit-3.0
- gate-puppet-cinder-puppet-unit-3.1
- name: stackforge/puppet-glance - name: stackforge/puppet-glance
check: check:
- gate-noop - gate-puppet-glance-puppet-unit-2.6
- gate-puppet-glance-puppet-unit-2.7
- gate-puppet-glance-puppet-unit-3.0
- gate-puppet-glance-puppet-unit-3.1
gate: gate:
- gate-noop - gate-puppet-glance-puppet-unit-2.6
- gate-puppet-glance-puppet-unit-2.7
- gate-puppet-glance-puppet-unit-3.0
- gate-puppet-glance-puppet-unit-3.1
- name: stackforge/puppet-horizon - name: stackforge/puppet-horizon
check: check:
- gate-noop - gate-puppet-horizon-puppet-unit-2.6
- gate-puppet-horizon-puppet-unit-2.7
- gate-puppet-horizon-puppet-unit-3.0
- gate-puppet-horizon-puppet-unit-3.1
gate: gate:
- gate-noop - gate-puppet-horizon-puppet-unit-2.6
- gate-puppet-horizon-puppet-unit-2.7
- gate-puppet-horizon-puppet-unit-3.0
- gate-puppet-horizon-puppet-unit-3.1
- name: stackforge/puppet-keystone - name: stackforge/puppet-keystone
check: check:
- gate-noop - gate-puppet-keystone-puppet-unit-2.6
- gate-puppet-keystone-puppet-unit-2.7
- gate-puppet-keystone-puppet-unit-3.0
- gate-puppet-keystone-puppet-unit-3.1
gate: gate:
- gate-noop - gate-puppet-keystone-puppet-unit-2.6
- gate-puppet-keystone-puppet-unit-2.7
- gate-puppet-keystone-puppet-unit-3.0
- gate-puppet-keystone-puppet-unit-3.1
- name: stackforge/puppet-nova - name: stackforge/puppet-nova
check: check:
- gate-noop - gate-puppet-nova-puppet-unit-2.6
- gate-puppet-nova-puppet-unit-2.7
- gate-puppet-nova-puppet-unit-3.0
- gate-puppet-nova-puppet-unit-3.1
gate: gate:
- gate-noop - gate-puppet-nova-puppet-unit-2.6
- gate-puppet-nova-puppet-unit-2.7
- gate-puppet-nova-puppet-unit-3.0
- gate-puppet-nova-puppet-unit-3.1
- name: stackforge/puppet-openstack - name: stackforge/puppet-openstack
check: check:
- gate-noop - gate-puppet-openstack-puppet-unit-2.6
- gate-puppet-openstack-puppet-unit-2.7
- gate-puppet-openstack-puppet-unit-3.0
- gate-puppet-openstack-puppet-unit-3.1
gate: gate:
- gate-noop - gate-puppet-openstack-puppet-unit-2.6
- gate-puppet-openstack-puppet-unit-2.7
- name: stackforge/puppet-openstack_dev_env - gate-puppet-openstack-puppet-unit-3.0
check: - gate-puppet-openstack-puppet-unit-3.1
- gate-noop
gate:
- gate-noop
- name: stackforge/puppet-swift - name: stackforge/puppet-swift
check:
- gate-puppet-swift-puppet-unit-2.6
- gate-puppet-swift-puppet-unit-2.7
- gate-puppet-swift-puppet-unit-3.0
- gate-puppet-swift-puppet-unit-3.1
gate:
- gate-puppet-swift-puppet-unit-2.6
- gate-puppet-swift-puppet-unit-2.7
- gate-puppet-swift-puppet-unit-3.0
- gate-puppet-swift-puppet-unit-3.1
- name: stackforge/puppet-openstack_dev_env
check: check:
- gate-noop - gate-noop
gate: gate: