puppet-openstack-integration/playbooks/run-libraries-unit-tests.yaml
Takashi Kajinami 3fde8d655e Unpin rspec-puppet
Depends-on: https://review.opendev.org/883458
Change-Id: If88812340f50b952fb657e32e9f497f4e140e0f6
2023-05-18 13:19:56 +09:00

24 lines
1006 B
YAML

- hosts: all
tasks:
- shell:
cmd: |
set -e
set -x
if [ "{{ puppet_gem_version }}" != "latest" ]; then
export PUPPET_GEM_VERSION='~> {{ puppet_gem_version }}'
fi
if [ "{{ rspec_puppet_version }}" != "latest" ]; then
export RSPEC_PUPPET_VERSION='{{ rspec_puppet_version }}'
fi
# NOTE(aschultz): rspec-puppet 2.4+ has strict variables enabled
# which causes test failures. The problem is that the puppet modules
# have never worked with strict_variables = true due to backwards
# compatibility & import ordering. Since this has not been true,
# lets disable it in the unit testing for now. Perhaps some day
# we will be able to turn this back to true.
export STRICT_VARIABLES=no
./run_unit_tests.sh
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'