Commit Graph

10 Commits

Author SHA1 Message Date
Emilien Macchi 211a5047ba 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: I9df009e02991c5a738d8c86fb02d9ac2d486111c
2016-01-18 09:11:19 -05:00
Emilien Macchi 828e73a5ae Checkout openstack-integration from master
Since stable/liberty was created, let's now checkout master to prepare
the next release (Mitaka).

Change-Id: I8c080e07e76c205211a8509b67bff289afd2a7bb
2015-11-26 11:14:32 +01:00
Emilien Macchi 9567116722 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: Id9c6733690001290e94c5d8e04a96c149c151468
2015-11-25 11:52:51 +01:00
Gael Chamoulaud d1506f8b0d Remove class_parameter_defaults puppet-lint check
Change-Id: I5fd24f2d6f6b167395c8a6d24f59683dcc8ae411
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-11-16 16:04:25 +01:00
Emilien Macchi 6e52509101 Try to use zuul-cloner to prepare fixtures
In OpenStack Infra, we would like to run Puppet unit tests that
sometimes depends on other Puppet OpenStack modules.
Example: a patch in puppet-openstacklib that needs to be tested in puppet-nova.

This patch modifies the Rakefile to:
* clean spec_prep and spec_clean Rake tasks
* use openstack/puppet-openstack-integration/install_modules_unit.sh script
  to clone modules.
* do not use .fixtures.yaml file to clone modules and rely on
  zuul-cloner or git.
* Add openstack/ in gitignore so we never commit the
  puppet-openstack-integration repository (can happen when spec_clean
  did not run but you want to submit the patch anyway)
* Allow to run a custom Puppetfile if PUPPETFILE env is exported. It
  will allow people to test the module with the dependencies they like,
  feature we had with .fixtures.yaml.

Also add 'r10k' to Gemfile.

That way, we will be able to use zuul dependencies and run tests accross
modules like we do with functional testing.

Change-Id: If983dae0260ea2a1df49b4bdb0ada3c5223012c9
2015-10-08 14:54:10 -07:00
Cody Herriges 4fa9985f2a 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: Ib75add2af3380d0b1d4ce320b58df22b6c3ffa57
2015-08-18 14:37:18 +02:00
Sebastien Badia d7e9fe0e7a spec: updates for rspec-puppet 2.x and rspec 3.x
This patch aim to update our specs test in order to work with the
rspec-puppet release 2.0.0, in the mean time, we update rspec syntax
in order to be prepared for rspec 3.x move.

In details:
  * Use shared_examples "a Puppet::Error" for puppet::error tests
  * Convert 'should' keyword to 'is_expected.to' (prepare rspec 3.x)
  * Fix spec tests for rspec-puppet 2.0.0
  * Upgrade and pin rspec-puppet from 1.0.1 to 2.0.0
  * Clean Gemfile (remove over-specificication of runtime deps of puppetlabs_spec_helper)
  * Remove un-used puppet-lint (name_containing_dash config)

Change-Id: I1b82e4f6ec0b1bbf52e86c5d127413a26277ae8c
Card: https://trello.com/c/eHXc1Ryd/4-investigate-the-necessary-change-to-be-rspec-puppet-2-0-0-compliant
2015-03-02 13:54:32 +01:00
Mathieu Gagné ceee58426a Fail puppet-lint on warnings
Puppet-lint will now fail if there is any warnings.

Disable 'names_containing_dash' check until the remaining classes
are completely removed or we find a way to add exceptions.

Change-Id: I09c15fcfbac82904a3d90328683d8c39b1bcaf0d
2013-08-29 10:08:47 -04:00
Mathieu Gagné c45b40015d Disable 80chars/class_parameter_defaults checks
* Disable warnings for "line has more than 80 characters"
* Disable warnings for "parameterised class parameter without a default value"

We do not wish to track warnings for such violations.

Change-Id: I8e25cf71c1ab336c9c9c2fac1da5d8a47a947802
2013-08-12 17:49:03 -04:00
Émilien Macchi b63a40b030 Basic structure + DB + Client support 2013-05-30 15:20:11 +02:00