lib/puppet-check/regression_check.rb in puppet-check-1.4.1 vs lib/puppet-check/regression_check.rb in puppet-check-1.5.0
- old
+ new
@@ -1,12 +1,15 @@
+# temporarily supress warning messages for octocatalog-diff redefining puppet constants and then reactivate
+$VERBOSE = nil
require 'octocatalog-diff'
+$VERBOSE = false
# executes smoke and regression tests on catalogs
class RegressionCheck
# smoke testing
def self.smoke(interface_nodes, octoconfig)
- options = RegressionCheck.config(octoconfig)
+ options = config(octoconfig)
nodes = options.key?(:node) ? [options[:node]] : interface_nodes
nodes.each do |node|
options[:node] = node
OctocatalogDiff::API::V1.catalog(options)
end
@@ -18,8 +21,9 @@
# nodes.each { |node| stuff }
# end
# config file loading
def self.config(octoconfig)
+ private_class_method :method
OctocatalogDiff::API::V1.config(filename: octoconfig)
end
end