inspec/test/runner/test_ssh.rb
Dominik Richter 3858606fb7 make ssh tests work with vagrant ssh user
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-25 00:55:54 +02:00

22 lines
470 B
Ruby

# encoding: utf-8
require_relative 'helper'
require 'vulcano/backend'
backends = {}
backends[:specinfra_ssh] = proc {
backend_conf = Vulcano::Backend.target_config({
'target' => 'ssh://vagrant@localhost',
'key_file' => '/root/.ssh/id_rsa',
})
backend_class = Vulcano::Backend.registry['specinfra']
backend_class.new(backend_conf)
}
tests = ARGV
backends.each do |type, get_backend|
tests.each do |test|
instance_eval(File.read(test))
end
end