11 Commits

Author SHA1 Message Date
Emilien Macchi
5db75452a5 Use puppet-openstack_spec_helper for Rakefile & spec_helper_acceptance
Use common code in puppet-openstack_spec_helper in Rakefile and
spec_helper_acceptance.

Change-Id: I93ba1d6bfc33fe7b7476cf149a110a90cb4dd135
2016-01-18 09:11:34 -05:00
Emilien Macchi
1dcf76f083 Checkout openstack-integration from master
Since stable/liberty was created, let's now checkout master to prepare
the next release (Mitaka).

Change-Id: I7020099b45c3dc04cbfd1c93cd41fedc686a5f21
2015-11-26 11:46:22 +01:00
Emilien Macchi
2462480f91 release: prepare 7.0.0 (liberty)
This patch prepares this Puppet module to be released in 7.x series (Liberty)
with 7.0.0.

Change-Id: I4e4db142633459ccd828ed3d1bdeb9661aa4dcaf
2015-11-26 09:31:33 +01:00
Colleen Murphy
2636a384f6 Fix git clone for locally running tests
Zuul-cloner's behavior is to clone the repository into a subdirectory
under a directory named for the repo namespace. Git's default behavior
is to just clone it directly into the present working directory. This
patch adds an argument to the git clone command to clone it into the
<namespace>/<repo name> directory, so that whether zuul-cloner or git
is used the repo ends up in the same directory relative to the PWD.

Change-Id: I069d64bc9d2a2ee09b58824441c52b8e009cb73f
2015-07-08 11:56:56 -07:00
Colleen Murphy
2767c1fae6 Use module install script for acceptance tests
This patch updates the spec_helper_acceptance.rb file to use the common
module install script and Puppetfile from the new
openstack/puppet-openstack-integration repo. This will allow us to take
advantage of Zuul's Depends-On feature so that we can test changes
across multiple related modules. This is based on idea 1 from this
brainstorming session[1].

This will probably be abstracted out into a separate function or
eventually a separate gem so that it can be more easily shared across
the OpenStack modules and the Infra modules.

[1] https://etherpad.openstack.org/p/puppet-git-dependencies

Change-Id: I2741dbf8b9e124de5aa3b1ae113414fddbae8ab9
Co-Authored-By: James E. Blair <jeblair@hp.com>
Co-Authored-By: Spencer Krum <spencer.krum@hp.com>
2015-07-07 14:18:43 -07:00
Colleen Murphy
650c8f9f55 Correct puppet module list check in beaker
The final check during the prep stage, where `puppet module list` is
run so that its output can be used for debugging, should run on the
current host in the loop, not the first host in the array.

Change-Id: I3dab89150a880767ffd62604f4b961708c796bb7
2015-07-07 14:18:24 -07:00
Emilien Macchi
83e9d07a6a Use beaker-puppet_install_helper to install puppet
When running with BEAKER_provision=no, the following happens:

In Trusty: beaker is running dpkg with '--force' option so even
if Puppet is already installed, the return code will be 0.
In CentOS: beaker is running 'rpm -ivh' the second time and since
the package is already here, the return code will be 1.

Using the new puppet install helper will abort installing puppet
if BEAKER_provision is no, so tests will continue as normal.

Change-Id: Iff706a44f19dc620dc9f0cc39685adfadc785e2c
Co-Authored-By: Colleen Murphy <colleen@gazlene.net>
2015-06-30 17:00:23 -04:00
Colleen Murphy
fbaf565e85 Update spec_helper_acceptance for project renames
Change-Id: I384be1d6059672b793f1413e2632debd9b50da3d
2015-06-12 17:36:19 -07:00
Martin Mágr
bd16e3dbe5 Bring Redhat support to acceptance tests
OpenStack Infra has jobs to run this on both Ubuntu Trusty and CentOS7.

* Add minitest to Gemfile (dependency to run beaker on centos - see
  http://projects.theforeman.org/issues/2650 for details)
* separate nodepool files to have trusty & centos7 support in OS infra
* basic_trove_spec: add case for repo configuration and support
  RH systems.

Change-Id: Iaf590e0040afe0a4dc58c52a9b1a8e83a0154792
Closes-bug: #1444736
2015-05-22 10:14:31 -07:00
Martin Mágr
29be41ed02 Beaker: install APT repo with openstack_extras
Use openstack_extras module to manage Ubuntu Cloud Archive repository.

Change-Id: I3bd52741a5bce00044adf331699f357873172669
2015-05-22 10:12:52 -07:00
Emilien Macchi
19731ad8f1 Beaker tests
Implement basic structure for beaker tests.

Change-Id: I7fc62d44b683b8f6f62f122ca5eced315422f943
Closes-bug: #1444736
2015-05-04 23:14:02 -04:00