Sha256: 8d5be6253485dcb9f0e602cda3a02d146990238a2475d94c6cc3e198aa20bbc4
Contents?: true
Size: 702 Bytes
Versions: 3
Compression:
Stored size: 702 Bytes
Contents
$: << File.dirname(__FILE__) + '/../../lib/' require 'kconv' require 'winrm' require 'json' # To run this test put a file called 'creds.json' in this directory with the following format: # {"user":"myuser","pass":"mypass","endpoint":"http://mysys.com/wsman"} describe "Test remote Powershell features via WinRM" do before(:all) do creds = JSON.load(File.open('spec/creds.json','r')) WinRM::WinRM.endpoint = creds['endpoint'] WinRM::WinRM.set_auth(creds['user'],creds['pass']) WinRM::WinRM.instance end it 'should run a test Powershell script' do winrm = WinRM::WinRM.instance output = winrm.powershell('spec/test.ps1') output[:exitcode].should eql(0) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
winrm-0.0.5 | test/spec/powershell_tests.spec |
winrm-0.0.4 | test/spec/powershell_tests.spec |
winrm-0.0.3 | test/spec/powershell_tests.spec |