Commit Graph

6 Commits

Author SHA1 Message Date
Colleen Murphy 429f763064 Update Gemfile for Zuulv3
The logic in the Gemfile was relying on Zuulv2 variables to find out
whether the spec helper gem was already available on disk, and since
Zuulv3 has changed things it was failing to find it and downloading the
master version instead. This patch ensures the Gemfile looks for the gem
in the right place when running in CI.

Change-Id: I8415e5759f05ad9b03196f2d8ca0f09635006efa
2018-07-12 09:57:45 +02:00
Colleen Murphy d94f36a519 Depend on helper gem for spec_helper_acceptance
Instead of keeping a local copy of spec_helper_acceptance.rb and
requiring updates to all modules for any change, we can move it into the
common helper gem and require it from there. This will make it easier to
create and review changes that affect all puppet modules. Also change
the Gemfile to look for the gem in the local workspace if running in a
zuul environment.

Change-Id: I5c18fc44e41e14868c4dcc38bbd7ad09a960b5e8
2017-08-18 10:41:44 +02:00
Spencer Krum 0c66a45f2e Use new infra_spec_helper for gem dependencies
Change-Id: I49b48e8282aed3c3c8c3596d7f8b7c8ff2ce7f41
2016-06-21 18:39:41 -07:00
Spencer Krum a4187111d0 Pin google-api-client; sanitize Gemfile
Change-Id: If829487c8c4d93235a1ade1afeed1b1ba2fe345d
2016-04-14 15:22:30 -07:00
Colleen Murphy 7f3957fa9a Add new pip provider to use pypi mirrors
The upstream pip provider hard-codes pypi.python.org as the index to
search when determining the latest available release of a package. This
means puppet won't use our mirrors on the second run of a pip package
resource using ensure => latest. This patch adds a new provider that
inherits from the upstream one and overrides the latest() method to
just use `pip list --outdated` to see what the latest version is. This could
potentially be proposed upstream in the future depending on what
versions of pip support 'list --outdated' and what systems require
support.

To use this, package resources currently using the 'pip' provider will
have to switch to the 'openstack_pip' provider.

Change-Id: I6c24c8f99fb3f879a30d21f38d1ad883f96f7937
2016-04-08 09:12:39 -07:00
Paul Belanger a0d714c7cf Add Gemfile and puppet 4 checks
In anticipation of puppet 4, start trying to deal with puppet 4 things
that can be helpfully predicted by puppet lint plugins.

Change-Id: I498052d2db57e571f0f91cd2c2e43e39c693331f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-08-06 14:11:06 -04:00