path: root/Rakefile
diff options
authorEmilien Macchi <emilien@redhat.com>2016-09-22 11:11:13 -0400
committerEmilien Macchi <emilien@redhat.com>2016-09-22 21:26:23 -0400
commit1c4fe921e677c52dd01c9ce9aa12933fe0688b88 (patch)
tree229a250fff00be4394ef1a7e3a645051813253e1 /Rakefile
parent223c88460baf33f62acd9d089351b61306e42d72 (diff)
Switch puppet-tripleo to use puppet-openstack_spec_helper
Align puppet-tripleo with other Puppet OpenStack modules to use puppet-openstack_spec_helper. Here are the benefits: - Allow to use Depends-On between Puppet OpenStack modules and puppet-tripleo, and unit tests will work correctly with dependencies. - Use the Puppet OpenStack gemspec file that handle gems dependencies to test the module. - Allow to re-use ruby helper that Puppet OpenStack modules have in unit tests, to avoid duplicated code. - Don't manage .fixtures.yml file, it will be generated by Puppet OpenStack tooling. TripleO dependencies will live in Puppetfile_extras. Change-Id: Ic66e9f872c57545327a9fb4b8ae86fbf0abbd8be
Diffstat (limited to 'Rakefile')
1 files changed, 1 insertions, 21 deletions
diff --git a/Rakefile b/Rakefile
index 7dcaeb9..168d108 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,21 +1 @@
-require 'puppetlabs_spec_helper/rake_tasks'
-require 'puppet-lint/tasks/puppet-lint'
-require 'puppet-syntax/tasks/puppet-syntax'
-PuppetSyntax.exclude_paths ||= []
-PuppetSyntax.exclude_paths << "spec/fixtures/**/*"
-PuppetSyntax.exclude_paths << "pkg/**/*"
-PuppetSyntax.exclude_paths << "vendor/**/*"
-PuppetLint::RakeTask.new :lint do |config|
- config.ignore_paths = ["spec/**/*.pp", "vendor/**/*.pp"]
- config.fail_on_warnings = true
- config.log_format = '%{path}:%{linenumber}:%{KIND}: %{message}'
- config.disable_checks = ["80chars", "class_inherits_from_params_class", "only_variable_string"]
-desc "Run acceptance tests"
-RSpec::Core::RakeTask.new(:acceptance) do |t|
- t.pattern = 'spec/acceptance'
+require 'puppet-openstack_spec_helper/rake_tasks'