Class: RegressionCheck

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet-check/regression_check.rb

Overview

executes smoke and regression tests on catalogs

Class Method Summary collapse

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)
  options = config(octoconfig)
  nodes = options.key?(:node) ? [options[:node]] : interface_nodes
  nodes.each do |node|
    options[:node] = node
    OctocatalogDiff::API::V1.catalog(options)
  end
end