Closed chuckg closed 9 years ago
+1
It does use SFTP, it just doesn't print out detailed info because if the target doesn't exist it doesn't bother with the pseudo-rsync stuff.
Just figured that out. Add the option -l debug
to your kitchen
command, and you will be able to see the transfer mode.
A little confusing for first time user. How about change the log level to info for the 'transfer mode' and 'falling back to scp' msg? Current message makes me feel like it was falling back to scp until I looked into the source code.
kitchen-sync does not appear to be injected into the "first run" (setup or converge, not sure which) of test-kitchen, the default SCP transport method appears to be used. If I cancel the run, then immediately reissue the test kitchen command, the SFTP transport method gets used correctly.
Example:
SCP was used to transfer the first two files (
cache
,client.rb
). You can see me Control-C'ing out of the converge, since otherwise it would take the usual ~4m period to upload the cookbooks using default transport. Immediately after, I can re-issue the same command:SFTP was properly used to sync the files.