add ssh connection tests

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
Dominik Richter 2015-09-24 20:51:56 +02:00
parent 519d60c9d6
commit 4e40f00cbd

22
test/runner/test_ssh.rb Normal file
View file

@ -0,0 +1,22 @@
# encoding: utf-8
require_relative 'helper'
require 'vulcano/backend'
backends = {}
backends[:specinfra_ssh] = proc {
backend_conf = Vulcano::Backend.target_config({
'target' => 'ssh://root@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