From ac973d1fe4f4b92016bee017bd54095cb11d7ef6 Mon Sep 17 00:00:00 2001 From: Jeffrey Clark Date: Sun, 18 Feb 2024 02:22:47 -0600 Subject: [PATCH] (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). --- lib/puppet_litmus/spec_helper_acceptance.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet_litmus/spec_helper_acceptance.rb b/lib/puppet_litmus/spec_helper_acceptance.rb index ff49ca21..ecb9e252 100644 --- a/lib/puppet_litmus/spec_helper_acceptance.rb +++ b/lib/puppet_litmus/spec_helper_acceptance.rb @@ -26,7 +26,7 @@ def self.configure! if target_in_group(inventory_hash, ENV.fetch('TARGET_HOST', nil), 'docker_nodes') host = ENV.fetch('TARGET_HOST', nil) - set :backend, :docker + set :backend, :dockercli set :docker_container, host elsif target_in_group(inventory_hash, ENV.fetch('TARGET_HOST', nil), 'ssh_nodes') set :backend, :ssh