Sha256: e04ca0158373f2b577b1258eb853b2c508c6a7940ee7724d5ab1f2fb230e27e4

Contents?: true

Size: 460 Bytes

Versions: 4

Compression:

Stored size: 460 Bytes

Contents

# encoding: UTF-8
describe 'winrm client wql', integration: true do
  before(:all) do
    @winrm = winrm_connection
  end

  it 'should query Win32_OperatingSystem' do
    output = @winrm.run_wql('select * from Win32_OperatingSystem')
    expect(output).to_not be_empty
    output_caption = output[:win32_operating_system][0][:caption]
    expect(output_caption).to include('Microsoft')
    expect(output_caption).to include('Windows')
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
winrm-1.7.3 spec/wql_spec.rb
winrm-1.7.1 spec/wql_spec.rb
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/winrm-1.3.6/spec/wql_spec.rb
winrm-1.3.6 spec/wql_spec.rb