-
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add spec tests, update validations, cleanup
- Loading branch information
1 parent
2a16ded
commit 86e9599
Showing
33 changed files
with
467 additions
and
332 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
fixtures: | ||
repositories: | ||
concat: https://github.com/puppetlabs/puppetlabs-concat.git | ||
stdlib: https://github.com/puppetlabs/puppetlabs-stdlib.git | ||
symlinks: | ||
selinux: "#{source_dir}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
*.swp | ||
pkg/* | ||
vendor/bundle | ||
.bundle | ||
Gemfile.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
language: ruby | ||
cache: bundler | ||
bundler_args: --without development | ||
script: "bundle exec rake validate && bundle exec rake test SPEC_OPTS='--format documentation'" | ||
sudo: false | ||
matrix: | ||
fast_finish: true | ||
include: | ||
- rvm: 1.8.7 | ||
env: PUPPET_GEM_VERSION="~> 2.7.0" | ||
- rvm: 1.8.7 | ||
env: PUPPET_GEM_VERSION="~> 3.1.0" | ||
- rvm: 1.8.7 | ||
env: PUPPET_GEM_VERSION="~> 3.2.0" | ||
- rvm: 1.8.7 | ||
env: PUPPET_GEM_VERSION="~> 3.3.0" | ||
- rvm: 1.8.7 | ||
env: PUPPET_GEM_VERSION="~> 3.4.0" | ||
- rvm: 1.8.7 | ||
env: PUPPET_GEM_VERSION="~> 3.5.0" STRICT_VARIABLES="yes" | ||
- rvm: 1.8.7 | ||
env: PUPPET_GEM_VERSION="~> 3.6.0" STRICT_VARIABLES="yes" | ||
- rvm: 1.8.7 | ||
env: PUPPET_GEM_VERSION="~> 3.7.0" STRICT_VARIABLES="yes" | ||
- rvm: 1.9.3 | ||
env: PUPPET_GEM_VERSION="~> 3.1.0" | ||
- rvm: 1.9.3 | ||
env: PUPPET_GEM_VERSION="~> 3.2.0" | ||
- rvm: 1.9.3 | ||
env: PUPPET_GEM_VERSION="~> 3.3.0" | ||
- rvm: 1.9.3 | ||
env: PUPPET_GEM_VERSION="~> 3.4.0" | ||
- rvm: 1.9.3 | ||
env: PUPPET_GEM_VERSION="~> 3.5.0" STRICT_VARIABLES="yes" | ||
- rvm: 1.9.3 | ||
env: PUPPET_GEM_VERSION="~> 3.6.0" STRICT_VARIABLES="yes" | ||
- rvm: 1.9.3 | ||
env: PUPPET_GEM_VERSION="~> 3.7.0" STRICT_VARIABLES="yes" | ||
- rvm: 2.0.0 | ||
env: PUPPET_GEM_VERSION="~> 3.2.0" | ||
- rvm: 2.0.0 | ||
env: PUPPET_GEM_VERSION="~> 3.3.0" | ||
- rvm: 2.0.0 | ||
env: PUPPET_GEM_VERSION="~> 3.4.0" | ||
- rvm: 2.0.0 | ||
env: PUPPET_GEM_VERSION="~> 3.5.0" STRICT_VARIABLES="yes" | ||
- rvm: 2.0.0 | ||
env: PUPPET_GEM_VERSION="~> 3.6.0" STRICT_VARIABLES="yes" | ||
- rvm: 2.0.0 | ||
env: PUPPET_GEM_VERSION="~> 3.7.0" STRICT_VARIABLES="yes" | ||
- rvm: 2.1.0 | ||
env: PUPPET_GEM_VERSION="~> 3.5.0" STRICT_VARIABLES="yes" | ||
- rvm: 2.1.0 | ||
env: PUPPET_GEM_VERSION="~> 3.6.0" STRICT_VARIABLES="yes" | ||
- rvm: 2.1.0 | ||
env: PUPPET_GEM_VERSION="~> 3.7.0" STRICT_VARIABLES="yes" | ||
notifications: | ||
email: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,39 @@ | ||
require 'bundler' | ||
Bundler.require(:rake) | ||
require 'rake/clean' | ||
|
||
CLEAN.include('spec/fixtures/', 'doc', 'pkg') | ||
CLOBBER.include('.tmp', '.librarian') | ||
|
||
require 'rubygems' if RUBY_VERSION < '1.9.0' | ||
require 'puppetlabs_spec_helper/rake_tasks' | ||
require 'puppet_blacksmith/rake_tasks' | ||
require 'rspec-system/rake_task' | ||
require 'puppet-lint/tasks/puppet-lint' | ||
require 'puppet-syntax/tasks/puppet-syntax' | ||
|
||
begin | ||
require 'puppet_blacksmith/rake_tasks' | ||
rescue LoadError | ||
end | ||
|
||
task :default => [:clean, :spec] | ||
exclude_paths = [ | ||
"pkg/**/*", | ||
"vendor/**/*", | ||
"spec/**/*", | ||
] | ||
|
||
PuppetLint.configuration.fail_on_warnings | ||
PuppetLint.configuration.send('relative') | ||
PuppetLint.configuration.send('disable_80chars') | ||
PuppetLint.configuration.send('disable_class_inherits_from_params_class') | ||
PuppetLint.configuration.send('disable_class_parameter_defaults') | ||
PuppetLint.configuration.send('disable_documentation') | ||
PuppetLint.configuration.send('disable_single_quote_string_with_variables') | ||
PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"] | ||
PuppetLint.configuration.ignore_paths = exclude_paths | ||
#PuppetLint.configuration.send('disable_class_parameter_defaults') | ||
#PuppetLint.configuration.send('disable_single_quote_string_with_variables') | ||
PuppetSyntax.exclude_paths = exclude_paths | ||
|
||
task :default => [:test, :spec] | ||
|
||
task :metadata do | ||
sh "metadata-json-lint metadata.json" | ||
end | ||
|
||
desc "Run syntax, lint, and spec tests." | ||
task :test => [ | ||
:syntax, | ||
:lint, | ||
:metadata, | ||
:spec, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# File Managed by Puppet | ||
/etc/services | ||
/etc/resolv.conf | ||
/etc/samba/secrets.tdb | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.