Sha256: 90ba753f68a02c2e9ab6783cd7dbf7a059ef0e36313cdab189e881117dcdb881
Contents?: true
Size: 691 Bytes
Versions: 4
Compression:
Stored size: 691 Bytes
Contents
require 'spec_helper' describe "Test remote WQL features via WinRM" do before(:all) do @winrm = winrm_connection end it 'should run a CMD command string' do output = @winrm.run_cmd('ipconfig /all') output[:exitcode].should == 0 output[:data].should_not be_empty end it 'should run a CMD command with proper arguments' do output = @winrm.run_cmd('ipconfig', %w{/all}) output[:exitcode].should == 0 output[:data].should_not be_empty end it 'should run a CMD command with block' do outvar = '' @winrm.run_cmd('ipconfig', %w{/all}) do |stdout, stderr| outvar << stdout end outvar.should =~ /Windows IP Configuration/ end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
winrm-1.0.3 | test/spec/cmd_spec.rb |
winrm-1.0.2 | test/spec/cmd_spec.rb |
winrm-1.0.1 | test/spec/cmd_spec.rb |
winrm-1.0.0 | test/spec/cmd_spec.rb |