Sha256: 3252b3f8b6c240390c50fe905cecd4aa307ae26f264aac37c39f87500c8c19dd

Contents?: true

Size: 649 Bytes

Versions: 2

Compression:

Stored size: 649 Bytes

Contents

$: << File.dirname(__FILE__)
require 'helper'
require 'wbem'

class TestNamespaces < Test::Unit::TestCase
  #def setup
  #end
  #def teardown
  #end
  def test_namespaces_cimxml
    c = Wbem::Client.connect("https://wsman:secret@localhost:5989", :cimxml)
    assert c
    ns = c.namespaces
    assert ns
    assert ns.size > 0
    assert ns.include? "root/cimv2"
    puts ns.inspect
  end
  def test_namespaces_winrm
    c = Wbem::Client.connect("http://wsman:secret@wsman2003sp2.suse.de:5985", :wsman, :basic)
    assert c
    ns = c.namespaces
    assert ns
    assert ns.size > 0
    assert ns.include? "root/CIMV2"
    puts ns.inspect
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wbem-0.5.1 test/test_namespaces.rb
wbem-0.5.0 test/test_namespaces.rb