Open ghost opened 8 years ago
This is due to the way the checksums on the remote files was implemented:
https://github.com/coderanger/kitchen-sync/blob/master/lib/kitchen-sync/sftp.rb#L27 https://github.com/coderanger/kitchen-sync/blob/master/lib/kitchen-sync/sftp.rb#L47
I am not very familiar with puppet, but I am assuming it ships with an embedded version of ruby -- if so it should be possible to make this use the kitchen config value for ruby_bindir
We are using test-kitchen 1.4.2 to test puppet code so we have no need to install Chef, instead using a custom Ruby install for the verifier:
This means we don't have the ruby coming with chef. Since the SFTP transport is using a hardcoded path to ruby it is failing to get the checksums because that path doesn't exist. Please see: https://github.com/coderanger/kitchen-sync/blob/master/lib/kitchen/transport/sftp.rb#L78
The error message we see is:
We only see this happen on the
verify
step.converge
seems unaffected (goes through the "fast path" logic each time).