Skip to content
This repository has been archived by the owner on Mar 19, 2022. It is now read-only.

Add windows testing #203

Open
matschaffer opened this issue Feb 14, 2013 · 1 comment
Open

Add windows testing #203

matschaffer opened this issue Feb 14, 2013 · 1 comment

Comments

@matschaffer
Copy link
Owner

To avoid regression we'll need to set up a way to run knife-solo on a windows workstation and also agains a windows node.

See info from this comment and information from bill's kitchen

@tknerr and @dkinzer may have input on this issue.

@tknerr
Copy link

tknerr commented Feb 15, 2013

One simple unit test would probably be to mock windows_client? and ensure that the path is adjusted with /cygdrive/... if so.

This is what failed in 0.3.0.pre1:

Starting 'W:/tools/ruby/ruby-1.9.3-p385-i386-mingw32/lib/ruby/gems/1.9.1/gems/knife-solo-0.3.0.pre1/lib/chef/knife/patches/parser.rb'
rsync -rl --chmod=ugo=rwX --rsh="ssh vagrant@33.33.99.11 -i W:/home/.vagrant.d/insecure_private_key"  --exclude revision-deploys --exclude tmp --exclude '.*'  W:/tools/ruby/ruby-1.9.3-p385-i386-mingw32/lib/ruby/gems/1.9.1/gems/knife-solo-0.3.0.pre1/lib/chef/knife/patches/parser.rb :./chef-solo/cookbooks/chef_solo_patches/libraries
bash: W: command not found
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: error in rsync protocol data stream (code 12) at /home/lapo/package/rsync-3.0.9-1/src/rsync-3.0.9/io.c(605) [Receiver=3.0.9]
ERROR: RuntimeError: Failed to launch command rsync -rl --chmod=ugo=rwX --rsh="ssh vagrant@33.33.99.11 -i W:/home/.vagrant.d/insecure_private_key"  --exclude revision-deploys --exclude tmp --exclude '.*'  W:/tools/ruby/ruby-1.9.3-p385-i386-mingw32/lib/ruby/gems/1.9.1/gems/knife-solo-0.3.0.pre1/lib/chef/knife/patches/parser.rb :./chef-solo/cookbooks/chef_solo_patches/libraries
rake aborted!

This is what worked previously in 0.2.0 and then again after #201 had been merged:

Starting 'W:/tools/ruby/ruby-1.9.3-p385-i386-mingw32/lib/ruby/gems/1.9.1/gems/knife-solo-0.3.0.pre2/lib/chef/knife/patches/parser.rb'
rsync -rl --chmod=ugo=rwX --rsh="ssh vagrant@33.33.99.11 -i W:/home/.vagrant.d/insecure_private_key"  --exclude revision-deploys --exclude tmp --exclude '.*'  /cygdrive/W/tools/ruby/ruby-1.9.3-p385-i386-mingw32/lib/ruby/gems/1.9.1/gems/knife-solo-0.3.0.pre2/lib/chef/knife/patches/parser.rb :./chef-solo/cookbooks/chef_solo_patches/libraries
W:/tools/ruby/ruby-1.9.3-p385-i386-mingw32/lib/ruby/gems/1.9.1/gems/knife-solo-0.3.0.pre2/lib/chef/knife/patches/parser.rb finished in 0.905615 seconds

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants