2a8035cecc
Due to backward-incompatible changes in beaker-hiera 0.2.0, we're receiving a "uninitialized constant Beaker::DSL::Hiera" NameError exception trying to use it. Earlier versions were working. Change-Id: I232b1de6cfbf9c4ffc81e1cc2d6af5dd769ed0b5
86 lines
3.8 KiB
Ruby
86 lines
3.8 KiB
Ruby
lib = File.expand_path('../lib', __FILE__)
|
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
require 'puppet-openstack_infra_spec_helper/version'
|
|
|
|
Gem::Specification.new do |spec|
|
|
spec.name = "puppet-openstack_infra_spec_helper"
|
|
spec.version = PuppetOpenstackInfraSpecHelper::Version::STRING
|
|
spec.authors = ["OpenStack Infrastructure Team"]
|
|
spec.description = %q{Helpers for module testing}
|
|
spec.summary = %q{Puppet-OpenStack-Infra spec helper}
|
|
spec.homepage = ""
|
|
spec.license = "Apache-2.0"
|
|
|
|
spec.files = `git ls-files`.split($/)
|
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
spec.require_paths = ["lib"]
|
|
|
|
# This is a transitive dep that we define early so that the version
|
|
# that works for us is found.
|
|
# rake 12.3.0 requires Ruby version ~> 2.0
|
|
spec.add_dependency 'rake', ['< 12.3.0']
|
|
# dependencies that are needed to run puppet-lint
|
|
spec.add_dependency 'puppet', [ '~> 4.10']
|
|
spec.add_dependency 'puppetlabs_spec_helper'
|
|
# metadata-job-lint 2.0 requires Ruby version ~> 2.0
|
|
spec.add_dependency 'metadata-json-lint', ['< 2.0.0']
|
|
spec.add_dependency 'puppet-lint-absolute_classname-check'
|
|
spec.add_dependency 'puppet-lint-absolute_template_path'
|
|
spec.add_dependency 'puppet-lint-trailing_newline-check'
|
|
# puppet-lint-unquoted_string-check 2.0.0 requires Ruby version ~> 2.4
|
|
spec.add_dependency 'puppet-lint-unquoted_string-check', ['<2.0.0']
|
|
spec.add_dependency 'puppet-lint-leading_zero-check'
|
|
spec.add_dependency 'puppet-lint-variable_contains_upcase'
|
|
spec.add_dependency 'puppet-lint-spaceship_operator_without_tag-check'
|
|
spec.add_dependency 'puppet-lint-undef_in_function-check'
|
|
spec.add_dependency 'json'
|
|
spec.add_dependency 'netaddr'
|
|
# webmock 3.0 requires Ruby version ~> 2.0
|
|
spec.add_dependency 'webmock', ['< 3.0.0']
|
|
# signet requires Ruby version ~> 2.0
|
|
spec.add_dependency 'signet', ['< 0.8.0']
|
|
# google-api-client requires Ruby version ~> 2.0
|
|
spec.add_dependency 'google-api-client', ['0.9.4']
|
|
# latest json_pure requires Ruby version ~> 2.0
|
|
# puppet 4.10.12 requires json_pure ~> 1.8
|
|
spec.add_dependency 'json_pure', ['~> 1.8']
|
|
# latest specinfra broke us, we pin it until we figure what's wrong.
|
|
spec.add_dependency 'specinfra', ['2.59.0']
|
|
# fast_gettext 1.2.0+ requires ruby 2.1.0 which is not available on centos7
|
|
spec.add_dependency 'fast_gettext', ['< 1.2.0']
|
|
# nokogiri 1.7.0+ requires ruby 2.1.0 which is not available on centos7
|
|
# fog 1.34.0 requires nokogiri ~> 1.5
|
|
spec.add_dependency 'nokogiri', ['~> 1.5']
|
|
# fog-aws 2.0.0 requires ruby 2.0 which is not available on trusty
|
|
spec.add_dependency 'fog-aws', ['< 2.0.0']
|
|
# fog-core 1.44.0 requires xmlrpc 0.3.0 which requires ruby 2.3.0 which is not available on centos7
|
|
spec.add_dependency 'fog-core', ['!= 1.44.0']
|
|
# net-telnet requires Ruby version >= 2.3.0
|
|
spec.add_dependency 'net-telnet', ['< 0.2.0']
|
|
|
|
# Beaker 3.0.0 fails to run in Puppet Openstack CI
|
|
# LoadError: cannot load such file -- serverspec
|
|
# While we're investigating it, let's pin Beaker to 2.x releases.
|
|
spec.add_dependency 'beaker', ['< 3.0.0']
|
|
|
|
# avoid failure "uninitialized constant Beaker::DSL::Hiera"
|
|
spec.add_dependency 'beaker-hiera', ['< 0.2.0']
|
|
|
|
# hashdiff 0.3.9 breaks beaker-trusty job
|
|
spec.add_dependency 'hashdiff', ['< 0.3.9']
|
|
|
|
# bundler 2.0 needs Ruby >= 2.3.0
|
|
spec.add_dependency 'bundler', ['< 2.0.0']
|
|
|
|
# minitest 5.12.1 needs Ruby version >= 2.3, breaks centos-7 jobs
|
|
spec.add_dependency 'minitest', ['< 5.12.0']
|
|
|
|
# 0.2.0 needs newer ruby version
|
|
spec.add_dependency 'dry-inflector', ['< 0.2.0']
|
|
|
|
# dependencies that are needed to run beaker-rspec
|
|
spec.add_dependency 'beaker-rspec'
|
|
spec.add_dependency 'beaker-puppet_install_helper'
|
|
end
|