Sha256: 8d8d67f0e9825ad1eaa8555fd7fcc703d99eef535ff98e9e49c02a6692af03be

Contents?: true

Size: 880 Bytes

Versions: 2

Compression:

Stored size: 880 Bytes

Contents

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

class TestProfiles < Test::Unit::TestCase
  def show profiles
    assert profiles
    assert profiles.size > 0
    puts "test_profiles_cimxml: #{profiles.size} profiles"
    profiles.each do |profile|
      puts "ns #{profile.namespace}, class #{profile.classname}, InstanceID #{profile.InstanceID}"
    end
  end
  #def setup
  #end
  #def teardown
  #end
  def test_profiles_cimxml
    c = Wbem::Client.connect("https://wsman:secret@localhost:5989", :cimxml)
    assert c
    show c.profiles
  end
  def test_profiles_winrm
    c = Wbem::Client.connect("http://wsman:secret@wsman2003sp2.suse.de:5985", :wsman, :basic)
    assert c
    show c.profiles
  end
  def test_profiles_iamt
    c = Wbem::Client.connect("http://admin:P4ssw0rd!@10.160.64.28:16992", :wsman, :digest)
    assert c
    show c.profiles
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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