Commit Graph

10 Commits

Author SHA1 Message Date
Colleen Murphy 0d7e18d9d7 Block pypi.org for pip mirror tests
The beaker tests for this module use iptables to block access to pypi to
ensure the mirror functionality of the custom pip provider is working.
Pip now uses pypi.org instead of pypi.python.org and pypi.python.org is
a CNAME to pypi.org so it makes more sense to block pypi.org directly.
Also add iptables output for debugging purposes.

Change-Id: I370a403aef30dc42f3d614c5882138dac4f41ec8
2019-03-24 15:53:05 +01:00
Colleen Murphy 8e1d497bc5 Fix tests for pip 10
On CentOS, the python-ipaddress comes with the python2-pip package which
comes installed on the test nodes. Uninstall it (and consequently the
distro pip package) so that the new pip can do the right thing.

Change-Id: I15fabb2bc2e1645c9045603575dfa52957398a2d
2018-07-14 16:53:17 +02:00
Zuul bdfb4e7591 Merge "Depend on helper gem for spec_helper_acceptance" 2018-03-26 21:59:46 +00:00
Clark Boylan 1c6e7f380e Trim the test package list to just shade
We were installing ~24 packages before. Problem with this is it takes
quite a bit of time and is subject to many external failures. Installing
just shade should still be a valid test of significant coverage as it is
a non trivial python package and we use it in quite a few places.

Change-Id: I9cefc83ff280ca00cb434dbe6a1a2357163bc8a6
2017-08-24 15:23:48 -07: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
Colleen Murphy 44090680a9 Fix beaker on xenial
Add a xenial nodeset and update the spec helper to install puppet 3 from
the Ubuntu repos instead of from puppetlabs.

Change-Id: I2ba699d58fe29854d078199c95dd3ea061086793
2017-06-11 17:39:02 +02:00
Paul Belanger 35a83454f2
Add pip3 support
We are wanting to start running python3 applications in production, as
a results we need to ensure that pip3 is created.

Because get-pip.py will override existing pip executables, it will be
possible for an existing server to have is version change to python3.
As a result, symlink specifically to pip2 to ensure we have defaulted
properly to python3.

Drop Babel from acceptance testing, this appears to be a failure that
needs to be looked at in the future.

Change-Id: I8f78dfc62cd3745e900eec573e80236137ac5c78
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-05-31 14:39:00 -04: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
Spencer Krum 066123cae9 Fix target path for regular git clone during tests
Use same target directory for zuul-cloner and
the regular git command.

Change-Id: Ic0079d1de6549c8b21974fc18cc6e8858e22aa44
Co-Authored-By: Fabien Boucher <fabien.boucher@enovance.com>
2015-08-19 16:40:58 -07:00
Spencer Krum d461920848 Boilerplate beaker-rspec files
Change-Id: Ibf0ab54f5240968e82b22626a2fb4a444a87da31
2015-07-28 02:05:28 -07:00