Commit Graph

13 Commits

Author SHA1 Message Date
Tobias Urdin 58f3f8adc0 Add Puppet Litmus
Depends-On: https://review.opendev.org/#/c/740601/
Change-Id: Ib09e32db27e71384f122b54a6d1d269aa1e1a375
2020-08-31 21:20:51 +02:00
Emilien Macchi 67bd15682e 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: Ia9279876369e1ae1d0062eae4b103fca5256c452
2016-01-18 09:11:17 -05:00
Emilien Macchi 0e5ca8f1d7 Checkout openstack-integration from master
Since stable/liberty was created, let's now checkout master to prepare
the next release (Mitaka).

Change-Id: I1a6220db3323637ccd4dda91ddb2388671be5cfb
2015-11-26 11:12:21 +01:00
Emilien Macchi 0f384787e3 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: I67c7cefb95003539400a8176af21325d71cd4575
2015-11-25 11:51:22 +01:00
Cody Herriges 6ea3194989 Initial msync run for all Puppet OpenStack modules
This patch is the initial modulesync run, it impacts:

* gitignore: just a sync between projects
* gemfile:
  - update and allow to setup facter version and gem source
  - split beaker gems with a dedicated group
  - switch to rspec-puppet 2.2.0
* rakefile:
  - use the new syntax for lint configuration
  - add a acceptance target
* acceptance:
  - sync nodesets
* spec: added rspec coverage report

Change-Id: I05e2e4c13bd264c65fad8bade1886e23a50184d9
2015-09-04 21:16:12 +00:00
Colleen Murphy 0bb7577f7e 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: I543148dd97f7415b1e461b8300cffc5f7f191ecd
2015-07-08 11:56:25 -07:00
Colleen Murphy f13dd0ec89 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. It should
only exit 0.

Change-Id: I5a29908f5c63209dd7416c5e281f60198a4b552c
2015-07-07 13:58:01 -07:00
Colleen Murphy 2ef0788e03 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: I9117cfd40a90059af9e3c9d2763ec05f6cdb39ed
Co-Authored-By: James E. Blair <jeblair@hp.com>
Co-Authored-By: Spencer Krum <spencer.krum@hp.com>
2015-07-07 13:57:57 -07:00
Emilien Macchi 646a6cd15f 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: I410ebcc23bdc27ae0e632d1f330cab374cbc8912
Co-Authored-By: Colleen Murphy <colleen@gazlene.net>
2015-06-30 16:51:46 -04:00
Colleen Murphy c17afb139f Update spec_helper_acceptance for project renames
Change-Id: Ieda6129dc62819bb1c61002ac5bf845afe875f02
2015-06-12 17:36:18 -07:00
Emilien Macchi 104829144f 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 11
  http://projects.theforeman.org/issues/2650 for details)
* separate nodepool files to have trusty & centos7 support in OS infra
* class_spec: add case for repo configuration and support
  RH systems.
* don't install rabbitmq module that is not used (yet)
* install the apt module explicitly since it's no longer installed
  implicitly by the rabbitmq module

Change-Id: I17a571c8d56d55337ee0c8491fb4aad272074cf6
Closes-bug: #1444736
2015-06-08 13:40:33 -07:00
Emilien Macchi d4563e25e7 Beaker: install APT repo with openstack_extras
Use openstack_extras module to manage Ubuntu Cloud Archive repository.

Change-Id: I163610d2f0207ffd836147498a67c604aa2b8dc7
2015-06-08 13:14:16 -07:00
Emilien Macchi 79d307044a Beaker tests
Implement basic structure for beaker tests.

Change-Id: Ibfe041a7f500502ce357981a7ef917d1ce2a1760
Closes-bug: #1444736
2015-04-20 17:44:38 -04:00