mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
add ssh backend to runner kitchen tests
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
parent
6d7a46a589
commit
31a960e2b6
1 changed files with 9 additions and 4 deletions
|
@ -3,16 +3,21 @@ require_relative 'helper'
|
|||
require 'vulcano/backend'
|
||||
|
||||
backends = {}
|
||||
backend_conf = Vulcano::Backend.target_config({
|
||||
'target' => 'ssh://vagrant@localhost',
|
||||
'key_file' => '/root/.ssh/id_rsa',
|
||||
})
|
||||
|
||||
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)
|
||||
}
|
||||
|
||||
backends[:ssh] = proc {
|
||||
backend_class = Vulcano::Backend.registry['ssh']
|
||||
backend_class.new(backend_conf)
|
||||
}
|
||||
|
||||
tests = ARGV
|
||||
|
||||
backends.each do |type, get_backend|
|
||||
|
|
Loading…
Add table
Reference in a new issue