Set selective rspec-puppet versions

We set the 2.7.1 rspec-puppet version on the
latest non-voting job so that we can start
working on supporting this latest version
were strict variables is enabled.

Since our spec testing does not include classes
in pre_condition properly it fails in later
rspec-puppet versions.

This still leaves our voting jobs with the
2.3.0 versions so that they dont fail.

Change-Id: I7f589d931a948dd9de2100d55f98b95675956768
This commit is contained in:
Tobias Urdin 2018-11-20 01:49:44 +01:00
parent c9a8bc4f66
commit d12671bc28
5 changed files with 16 additions and 1 deletions

View File

@ -12,6 +12,8 @@
export PUPPET_GEM_VERSION='~> {{ puppet_gem_version }}.0'
fi
fi
# TODO(tobias-urdin): Remove when we dont pin rspec-puppet
export RSPEC_PUPPET_VERSION='{{ rspec_puppet_version }}'
./run_unit_tests.sh
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'

View File

@ -11,6 +11,8 @@
export PUPPET_GEM_VERSION='~> {{ puppet_gem_version }}.0'
fi
fi
# TODO(tobias-urdin): Remove when we dont pin rspec-puppet
export RSPEC_PUPPET_VERSION='{{ rspec_puppet_version }}'
mkdir .bundled_gems
export GEM_HOME=`pwd`/.bundled_gems
ruby <<EOF

View File

@ -126,6 +126,9 @@
- ^.gitignore$
- ^setup.cfg$
- ^setup.py$
# TODO(tobias-urdin): Remove when we use rspec-puppet 2.7.1
vars:
rspec_puppet_version: '~> 2.3.0'
- job:
name: puppet-openstack-libraries-puppet-unit-base
@ -145,6 +148,9 @@
- ^.gitignore$
- ^setup.cfg$
- ^setup.py$
# TODO(tobias-urdin): Remove when we use rspec-puppet 2.7.1
vars:
rspec_puppet_version: '~> 2.3.0'
- job:
name: puppet-openstack-beaker-run-base

View File

@ -32,3 +32,6 @@
voting: false
vars:
puppet_gem_version: latest
# TODO(tobias-urdin): Remove this when we 2.7.1 works without
# any issues and we can leave it not pinned to anything.
rspec_puppet_version: '= 2.7.1'

View File

@ -31,7 +31,9 @@
voting: false
vars:
puppet_gem_version: latest
# TODO(tobias-urdin): Remove this when we 2.7.1 works without
# any issues and we can leave it not pinned to anything.
rspec_puppet_version: '= 2.7.1'
- project-template:
name: puppet-openstack-module-unit-jobs