Skip to content

Commit d3b57c0

Browse files
committed
(bugfix) use dockercli specinfra backend for docker_nodes
This fixes running Serverspec tests against nodes created by the docker_exp provision task. Unlike the docker bolt transport, the Serverspec docker backend uses the docker API. Unfortunately it lacks support for modern docker contexts (notably ssh).
1 parent 144ba65 commit d3b57c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet_litmus/spec_helper_acceptance.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def self.configure!
2626

2727
if target_in_group(inventory_hash, ENV.fetch('TARGET_HOST', nil), 'docker_nodes')
2828
host = ENV.fetch('TARGET_HOST', nil)
29-
set :backend, :docker
29+
set :backend, :dockercli
3030
set :docker_container, host
3131
elsif target_in_group(inventory_hash, ENV.fetch('TARGET_HOST', nil), 'ssh_nodes')
3232
set :backend, :ssh

0 commit comments

Comments
 (0)