Commit Graph

25 Commits

Author SHA1 Message Date
Jeremy Stanley 2a8035cecc Pin beaker-hiera<0.2.0
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
2021-02-10 21:47:21 +00:00
Jeremy Stanley 619783f683 Match Puppet version used on servers
OpenDev's legacy Puppet-based configuration management on Ubuntu
Xenial is using the puppet-agent version corresponding to puppet
4.10.12, but our spec helper was still testing with older puppet
3.8. Update here to match what we use in production, for better
fidelity and also to hopefully work around some issues with its
older vendored YAML parser. Also adjust version requirements for
json_pure and nokogiri which were unsettled by the puppet bump.

Change-Id: Ia302186851159ec8c32ebb46e28a15fe9c0f5456
2020-09-18 17:57:17 +00:00
Jeremy Stanley ee9d290ced Pin puppet-lint-unquoted_string-check to < 2.0.0
The recent 2.0.0 release breaks the
puppet-beaker-rspec-puppet-4-infra job because it wants newer Ruby
than our ubuntu-xenial nodes can provide.

Change-Id: Ibefbf15a9b950783bfd981de41ac62b1352bd2e5
2020-03-25 18:32:57 +00:00
Monty Taylor 9ac8623933 Pin dry-inflector to <0.2
The recent 0.2 release breaks the puppet jobs. Just pin it, it's
a depend for a cloud module we don't care about.

Change-Id: I196acdea6081c7003d11df8f6bf94ab109ccbfbd
2019-10-16 03:04:01 +09:00
Jeremy Stanley 0af997e27f Block minitest 5.12.1
Failing on centos-7 builds:

Gem::InstallError: minitest requires Ruby version ~> 2.3.

https://github.com/seattlerb/minitest/commit/c6352b4 raised the
minimum from Ruby 1.8.7 (unenforced) to 2.3 (enforced) in the
minitest 5.12.1 release, so use 5.12.0 for now.

Change-Id: I56e9693a8d9df6051874ff1ff7096db08bc00dad
2019-10-10 12:51:36 +00:00
Andreas Jaeger 09cfc3d2a6 Block hashdiff 0.3.9 and bundler 2.0
The 0.3.9 hashdiff package breaks beaker-trusty, use 0.3.8 for now.

Cap bundler since version 2.0.1 needs Ruby >= 2.3.0.

Change-Id: I464e29fca3958d058dc5ede93a486fd5c79eb29a
2019-04-23 17:31:34 +02:00
Paul Belanger c6c2435101
Cap net-telnet < 0.2.0 for ruby 1.9 support
A new release of net-telnet is breaking trusty and centos-7 jobs.

Change-Id: I190f725e2c32c522004fbc9f8970f629d58e27c1
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-07-25 14:07:56 -04:00
Clark Boylan 77dcdb469e Cap fog-aws < 2.0.0 for ruby 1.9 support
The 2.0.0 release of fog-aws requires ruby 2.0 or greater which is not
available on trusty. Pin to less than 2.0.0 so that we can continue to
function trusty.

Change-Id: Ic2bf772a7e6669ee23b6712222372bc55986f617
2017-11-28 15:09:50 -08:00
Clark Boylan a9b567eadf Cap rake below 12.3.0
New rake version 12.3.0 needs ruby 2.0 or greater which is not available
on our trusty test nodes. Cap to under rake 12.3.0 so that we use older
rake until we can stop using trusty and have more modern ruby.

The test runner script updates the installation path for this helper lib
to point back at itself when running local tests. Unfortunately it was
doing so with a buggy sed that no longer matched the contents of the
Gemfile that needed updating.

Fix this by updating the sed command to properly point to this lib for
local testing. Note this is fixed here because we need both fixes in
together in order to get gate jobs to pass.

Change-Id: Iddbbab9ea5996df4922bf7927deb8f0354378ab7
2017-11-20 10:41:45 -08:00
Paul Belanger b5924b5de0
Cap signet < 0.8.0
The latest release requires ruby 2.0.0, which we don't have on ubuntu
trusty.

Change-Id: Icbc5ad4deb5ed1d2770b55fb4eae1b2b04da7908
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-10-12 14:03:15 -04:00
Clark Boylan 7835c3877c Pin metadata-json-lint and webmock
With release 2.0.0 metadata-json-lint requires ruby 2.0 or greater. Not
all of our platforms come with ruby 2.0 or greater so pin to less than
the 2.0.0 release of metadata-json-lint.

Webmock is in a similar boat with release 3.0.0 dropping support for
ruby < 2.0. Pin this package below 3.0.0 as well.

Change-Id: I698b82c9e4fa2402cbea14a2500402395e6af2ba
2017-09-20 13:38:55 -07:00
Colleen Murphy 8472caea46 Pin fog-core
The fog-core gem added a dependency on the xmlrpc gem which depends on
ruby 2.3 which is not available on centos7. It seems like they tried to
avoid this issue but weren't successful at it[1], so we'll blacklist the
current version and assume it will be fixed in the next version.

[1] https://github.com/fog/fog-core/issues/206

Change-Id: I968aa64e958cd3e9567fd47981d50b302960783d
2017-04-28 22:03:52 +02:00
Paul Belanger 44a6e5777c Pin nokogiri to fix centos 7 jobs
Change-Id: I9692c6898787703d831e7c7781d6f877e84a7eda
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-12-29 10:32:28 -05:00
Clark Boylan bd9327efe2 Pin fast_gettext to work on CentOS7 ruby
fast_gettext >= 1.2.0 needs ruby >=2.1.0 which is not available on
CentOS 7 so we pin it to < 1.2.0.

Change-Id: I2cc03d0c7f25fdaffa7fdfcf27149a60a7120f1d
2016-12-13 16:49:02 -08:00
Emilien Macchi cc6e6f666b Pin beaker to 2.x releases
Beaker 3.0.0 fails run with current dependencies:
LoadError: cannot load such file -- serverspec

It will be fixed when this PR will be merged and released:
https://github.com/puppetlabs/beaker-rspec/pull/86

Change-Id: I77a35c57b4ff9351b9820d8e36409163da2c0d8f
2016-09-28 14:36:39 +00:00
Jeremy Stanley 4c7c3a271b Revert "Pin puppetlabs_spec_helper ~> 1.1.1"
Oops, I meant to abandon Ide9d7166abba906fd3552fd62983e22f29ba0c4d
as we've worked around it for now in
openstack-infra/project-config via
I96b694dca77c32e9e1cf698ec0d93f8bcae8f082 instead.

This reverts commit 0484aba688.

Change-Id: I67415e1b600f75fcb836a9fed4bcc262a1aaaae0
2016-09-10 13:35:43 +00:00
Jeremy Stanley 0484aba688 Pin puppetlabs_spec_helper ~> 1.1.1
As a workaround for https://github.com/bundler/bundler/issues/4961
temporarily pin puppetlabs_spec_helper ~> 1.1.1 so that we can
resolve a puppet-lint < 2.0 which happens to not tickle the
dependency resolution issues there.

Change-Id: Ide9d7166abba906fd3552fd62983e22f29ba0c4d
2016-09-09 23:19:58 +00:00
Jenkins 788d0b01a6 Merge "Revert "Pin puppetlabs-spec-helper"" 2016-08-26 17:01:50 +00:00
Emilien Macchi 5b61e57d2b Revert "Pin puppetlabs-spec-helper"
They cleared 1.2.0 release to support ruby 2.0.x.

This reverts commit e6a1ce0997.

Change-Id: Iec64103711ea05dddfcde2f07d9b90944352a98a
2016-08-24 01:51:08 +00:00
Jenkins 69c3a0e100 Merge "Pin json_pure gem for ruby1.9 support" 2016-08-23 23:56:30 +00:00
Spencer Krum e6a1ce0997 Pin puppetlabs-spec-helper
We are pinning this because the latest version (1.2.0) requires ruby 2.2
which we don't have. We're largely following suit with what the puppet
openstack modules are doing.

Co-Authored-By: Alex Schultz <aschultz@mirantis.com>
Change-Id: I9153aac8c122e0379cf9e8247cb34c6acc0921fc
2016-08-23 13:57:59 -07:00
K Jonathan Harker 8f3272ec1c Pin json_pure gem for ruby1.9 support
The latest version of json_pure requires ruby ~> 2.0, pin to the last
version that doesn't.

Change-Id: Ide2d519b7a814401162e6e984493510cfa9f2f61
2016-08-03 17:23:14 -07:00
Spencer Krum 2643f056c0 Dependon ~> 3.8 for puppet.
This causes 3.8 or any later 3.x to be installed. It stops short of
4.x

Change-Id: Ie842b25d38541e85cebfc0d11043aec836980173
2016-07-13 18:59:04 -07:00
Spencer Krum ea437014b6 Depend on the puppet gem
Change-Id: I5ed149ea9c3722b4623bfa35b30cfb957887b628
2016-06-21 17:06:24 -07:00
Spencer Krum 8fe0a33f15 Initial commit
This code came from
http://git.openstack.org/cgit/openstack/puppet-openstack_spec_helper/

and was modified for infra's use.

The gems specified in gemspec are current with what infra is currently
using.

Change-Id: I06e47d4af32f30e4504ee67257923a4596725d0f
2016-06-21 16:19:09 -07:00