Commit graph

40 commits

Author SHA1 Message Date
David Schmitt
dad690f82a (MAINT) Update for modulesync_config 72d19f184 2016-07-27 15:44:11 +01:00
David Schmitt
2fa39c65c7 (MODULES-3581) modulesync [067d08a] 2016-07-08 13:34:27 +01:00
David Schmitt
f99a3fa78e (FM-4046) Update to current msync configs [006831f]
This moves all copyright statements to the NOTICE file in accordance with the ASFs guidelines on applying the Apache-2.0 license.
2016-02-16 16:33:44 +00:00
David Schmitt
7889a85d37 (FM-4049) Update to current msync configs [2c99161] 2016-01-27 14:44:53 +00:00
David Schmitt
a261a3d493 (maint) fix logic for choosing rspec version
Depending on the ruby version, we either need 3.1.7 to support ruby 1.8,
but since (at least) ruby 2.2 a newer version of rspec is required.
2016-01-18 12:19:21 +00:00
Bryan Jen
608801c838 Fix Gemfile to work with ruby 1.8.7 2015-11-20 11:34:59 -07:00
David Schmitt
6527a3aa22 (MAINT) switch to rspec-puppet-facts
Switching out the puppet version, as puppet_facts does, does not work,
as this will confuse code that wants to use version-dependent features.

Instead this uses rspec-puppet-facts, which doesn't touch the puppet
version.
2015-10-13 11:29:42 +01:00
David Schmitt
c2e4b9f01c (maint) update to current modulesync configs 2015-07-24 14:08:27 +01:00
Hunter Haugen
53257df16f Add helper to install puppet/pe/puppet-agent 2015-06-11 16:14:06 -07:00
Morgan Haskel
617843aaef beaker gemfile fixes 2015-05-06 14:32:49 -07:00
Morgan Haskel
c4a66e0379 sync via modulesync 2015-05-06 14:30:59 -07:00
Morgan Haskel
11f3b2dd86 sync via modulesync 2015-05-06 14:10:25 -07:00
Alice Nodelman
519371ff0a (BKR-147) add Gemfile setting for BEAKER_VERSION for puppet...
puppetdb, etc

- support for BEAKER_VERSION and BEAKER_RSPEC_VERSION in gemfile
2015-03-24 14:53:44 -07:00
Colleen Murphy
9b977ec943 Remove unneeded dependencies
puppetlabs_spec_helper handles these dependencies for us.
2015-03-23 22:09:27 -07:00
Colleen Murphy
a59c68b165 Update tests for rspec-puppet 2 and future parser
This patch changes the raise_error matchers to use `catalogue` instead
of `subject` since `subject` is not evaluated the way it used to be;
changes a parameter value from empty string to nil to be compatible
with the future parser, and unpins rspec-puppet.
2015-03-23 22:09:15 -07:00
Colleen Murphy
1394bd9513 Pin rspec gems 2015-02-04 17:02:04 +01:00
Colleen Murphy
e8708f25d8 Add json gem
The puppet_facts gem implicitly depends on the json gem.
On Ruby 1.8.7, json is not built in. On Puppet 2.7, it is
not explicitly pulled in by the hiera gem. So we add it
here explicitly.
2014-12-08 22:52:30 -08:00
Colleen Murphy
638b9c5704 Update .travis.yml, Gemfile, Rakefile, and CONTRIBUTING.md 2014-12-08 10:23:34 -08:00
Morgan Haskel
0aee5c94d2 Prior to this there was generic :test group.
Unfortunately Beaker will be EOL-ing support for Ruby 1.8 (a number of
Beaker's dependencies already have and pinning to older versions is
becoming costly). Once Beaker does this it will cause failures whenever
running `bundle install`.

To avoid this failure we can segregate the system testing gems, allowing
unit, lint and development to continue with
`bundle install --without system_tests.`
2014-11-10 14:54:36 -08:00
Hunter Haugen
1812fbca25 Rewrite some of the unit tests to work on more platforms.
This commit introduces puppet_facts, a gem that allows easier testing
against PE platforms.  We're using this gem to automatically parse the
metadata.json and test against appropriate versions of PE on platforms
we support.

We start by only running against centos-6-x86_64 and ubuntu 14.04 on a
regular basis but this is implemented as an ENV so it can be overwritten
by CI systems to test against all PE platforms.
2014-08-07 16:27:17 -04:00
Ashley Penney
32393b6099 Merge branch '2.3.x' 2014-08-07 15:50:56 -04:00
Colleen Murphy
0f099478c4 Update Gemfile for .travis.yml defaults 2014-06-30 10:58:02 -07:00
Colleen Murphy
66e3d2b52c Sync files 2014-06-25 17:23:29 -07:00
Morgan Haskel
c57071213b Require at least beaker-rspec 2.2. 2014-06-10 11:29:30 -04:00
Ashley Penney
9d888a9c59 Pin rspec to 2.x. 2014-06-09 11:34:05 -04:00
Ashley Penney
7f4c067350 Remove all rspec-system traces. 2014-04-24 22:05:43 +02:00
Ashley Penney
101b524ca0 I believe this Rake problem has been fixed upstream. 2014-04-10 17:34:57 +00:00
Ashley Penney
5a002bcd67 Allow rspec-beaker to update.
Previously the dependencies for rspec-system were holding back rspec-beaker and specinfra.
2014-04-05 13:34:38 +00:00
Igor Galić
e08a0790d4 Fixed travis by updating Gemfile to pin Rake to 10.1.1
The latest Rake update requires Ruby >= 1.9. This update
fixes the failing 1.8.7 tests by pinning Rake to the last
supported version on ruby 1.8.7.

This is a direct copy from @blkperl's fix for puppetlabs-apache
https://github.com/puppetlabs/puppetlabs-apache/pull/685
2014-03-26 13:41:10 +01:00
Justin Stoller
e02ebc63d7 Allow configuration of Gem source in Gemfile
This commit allows configuring of the Gem source via an environment
variable "GEM_SOURCE" with a default of 'https://rubygems.org'.
This follows the conventions of Puppet Labs Open Source Platform team.
2014-02-07 12:22:22 -08:00
Hunter Haugen
0aed9e07f7 Adding beaker-rspec test files
These tests are more or less parity with the rspec-system tests, though
dependent on a few patches that still have to make it into beaker and
beaker-rspec
2013-12-06 14:52:41 -08:00
Ashley Penney
047bff19ad Force mime-types to < 2.0 as this no longer works on Ruby 1.8. 2013-10-28 18:02:08 -04:00
Ashley Penney
2abccab4d9 Refactor and rename database_grant to mysql_grant.
This provider has undergone the largest set of changes and currently
just accepts a full SQL grant string as the name and then applies it,
making things easier for DBAs and removes the awkward attempts at
modelling grants into Puppet.
2013-09-03 17:24:21 -04:00
Ashley Penney
88eea1708e Add simplecov support in order to generate test coverage. 2013-08-28 18:11:21 -04:00
Hunter Haugen
c34bcc0f73 Add rspec-system / serverspec tests 2013-07-05 15:19:02 -07:00
Hunter Haugen
b5778d56a2 Update specs for current testing practices and GH publish 2013-06-26 14:19:57 -07:00
William Van Hevelingen
a3868bc65b Update travis config file
This commit standardizes the Gemfile and travis.yml to be similar
to the files in stdlib. Puppet 3 and ruby 1.9.3 are now added to
the matrix
2013-02-02 17:24:07 -08:00
Branan Purvine-Riley
703c0bde30 Update the module to the new layout for easier testing and packaging
* Add spec_full, spec_prep, and spec_clean targets
* Rename Gemfile -> .gemfile for less cluttered module packages
* Append fixtuers to modulepath instead of overwriting
* Use a more complete .gitignore
* Remove the recursive symlink
2012-05-24 16:55:22 -07:00
Branan Purvine-Riley
e3a0703c6c Add mocha to gemfile 2012-05-08 10:10:37 -07:00
Nan Liu
33c72efde1 Add travis.ci for testing multiple puppet versions.
The existing spec tests should be tested on multiple puppet version. The
addition of travis.ci allows us to easily verify all specs are passing
and new manifests did not break backwards compatibility by introducing
new syntax.
2012-03-18 01:35:12 -05:00