11 Commits

Author SHA1 Message Date
Tobias Urdin
e1a7353395 Add Puppet Litmus
Depends-On: https://review.opendev.org/#/c/751890/
Change-Id: Ia13ddf28332053f08c8e7ecab6f41d8643260bf2
2020-09-14 23:42:42 +02:00
Emilien Macchi
373c13ec38 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: Ia20f9207874fe69618b215e24c4ec5113ecb86be
2016-01-19 22:38:44 -05:00
Emilien Macchi
d3924b0d4d Checkout openstack-integration from master
Since stable/liberty was created, let's now checkout master to prepare
the next release (Mitaka).

Change-Id: Ia00fb94756b71d248c9e0d0e2639da2636653f5a
2015-11-26 14:32:21 +01:00
Emilien Macchi
c374840910 release: prepare 3.0.0 (liberty)
This patch prepares this Puppet module to be released in 3.x series (Liberty)
with 3.0.0.

Change-Id: Iaf2112da836e26f8c4d856c693ad7d83db29dc30
2015-11-26 10:24:34 +01:00
Colleen Murphy
e73073a120 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: Ice5d2d72a3dd674cd09171d480d3517b96dae2a5
2015-07-08 11:57:05 -07:00
Colleen Murphy
9a56a307e8 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: Id4bb4a4054ddad3802bf04338f6b0428a66d481a
Co-Authored-By: James E. Blair <jeblair@hp.com>
Co-Authored-By: Spencer Krum <spencer.krum@hp.com>
2015-07-07 14:22:54 -07:00
Colleen Murphy
012ed899fe 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: If12404d692b4ad5bf3d536f58e7a553ebf014ce3
2015-07-07 14:22:48 -07:00
Colleen Murphy
754e12d2dd 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: Id17d26acda26b5baaac3bb5f616738201aa99044
2015-07-07 14:20:44 -07:00
Colleen Murphy
b250aae156 Update spec_helper_acceptance for project renames
Change-Id: Ie45a4b79ddaf4e01ac8ad9a3a6240da770f67eb5
2015-06-12 17:36:20 -07:00
Emilien Macchi
f9be6156e7 Bring Redhat support to acceptance tests
OpenStack Infra has jobs to run this on both Ubuntu Trusty and
OS7.

* 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
* install openstack_extras module
* install EPEL on RH systems

Change-Id: Ib0e14a8e866ffafc2fb47bb72b4ee40a7f4d0230
Closes-bug: #1444736
2015-05-16 08:03:03 -07:00
Emilien Macchi
58e807a42c Beaker tests
Implement basic structure for beaker tests.

Change-Id: Ia8533ffacf8aab27010496fab744a2490a5b8f53
Closes-bug: #1444736
2015-05-04 22:11:34 -04:00