diff --git a/playbooks/run-libraries-unit-tests.yaml b/playbooks/run-libraries-unit-tests.yaml index fbb26fd10..acadafafb 100644 --- a/playbooks/run-libraries-unit-tests.yaml +++ b/playbooks/run-libraries-unit-tests.yaml @@ -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' diff --git a/playbooks/run-unit-tests.yaml b/playbooks/run-unit-tests.yaml index b0fa8c5de..417af5000 100644 --- a/playbooks/run-unit-tests.yaml +++ b/playbooks/run-unit-tests.yaml @@ -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 < 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 diff --git a/zuul.d/libraries.yaml b/zuul.d/libraries.yaml index fcaf2c01e..6a12a6932 100644 --- a/zuul.d/libraries.yaml +++ b/zuul.d/libraries.yaml @@ -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' diff --git a/zuul.d/unit.yaml b/zuul.d/unit.yaml index 343648483..17f1c0b08 100644 --- a/zuul.d/unit.yaml +++ b/zuul.d/unit.yaml @@ -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