Class: RegressionCheck
- Inherits:
-
Object
- Object
- RegressionCheck
- Defined in:
- lib/puppet-check/regression_check.rb
Overview
executes smoke and regression tests on catalogs
Class Method Summary collapse
-
.config(octoconfig) ⇒ Object
config file loading.
-
.smoke(interface_nodes, octoconfig) ⇒ Object
smoke testing.
Class Method Details
.config(octoconfig) ⇒ Object
config file loading
25 26 27 28 |
# File 'lib/puppet-check/regression_check.rb', line 25 def self.config(octoconfig) private_class_method :method OctocatalogDiff::API::V1.config(filename: octoconfig) end |
.smoke(interface_nodes, octoconfig) ⇒ Object
smoke testing
9 10 11 12 13 14 15 16 |
# File 'lib/puppet-check/regression_check.rb', line 9 def self.smoke(interface_nodes, octoconfig) = config(octoconfig) nodes = .key?(:node) ? [[:node]] : interface_nodes nodes.each do |node| [:node] = node OctocatalogDiff::API::V1.catalog() end end |