fuel-plugin-lma-collector/deployment_scripts/puppet/modules/lma_collector/spec/spec_helper.rb
Simon Pasquier a0abd257af Add initial tests for the Puppet modules
This change implements the necessary bits and pieces for testing the
Puppet modules. Right now, it only run lint and syntax checker on the
modules.

The change also fixes a couple of issues with the existing code that
have been highlighted by the tests.

Change-Id: I4fd30baa23c474d75937b4f050b35c914efc4829
2015-08-17 12:08:13 +02:00

23 lines
859 B
Ruby

# Copyright 2015 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'rspec-puppet'
fixture_path = File.expand_path(File.join(__FILE__, '..', 'fixtures'))
RSpec.configure do |c|
c.module_path = File.join(fixture_path, 'modules')
c.manifest_dir = File.join(fixture_path, 'manifests')
c.environmentpath = File.join(Dir.pwd, 'spec')
end