Method: Onceover::TestConfig#verify_acceptance_test

Defined in:
lib/onceover/testconfig.rb

#verify_acceptance_test(controlrepo, test) ⇒ Object



151
152
153
154
155
156
157
158
159
160
161
# File 'lib/onceover/testconfig.rb', line 151

def verify_acceptance_test(controlrepo, test)
  warn "[DEPRECATION] #{__method__} is deprecated due to the removal of Beaker"

  require 'yaml'
  nodeset = YAML.load_file(controlrepo.nodeset_file)
  test.nodes.each do |node|
    unless nodeset['HOSTS'].has_key?(node.name)
      raise "Could not find nodeset for node: #{node.name}"
    end
  end
end