require File.join File.dirname(__FILE__), '../test_common.rb'

class HealthPostTest < Test::Unit::TestCase
  def ubuntu?
    TestCommon::Facts.operatingsystem == 'Ubuntu'
  end

  def test_sysinfo_resource_started
    return unless ubuntu?
    assert TestCommon::Pacemaker.primitive_present?('sysinfo'), 'sysinfo is not created!'
  end
end


require File.join File.dirname(__FILE__), '../test_common.rb'

class HealthPostTest < Test::Unit::TestCase
  def ubuntu?
    TestCommon::Facts.operatingsystem == 'Ubuntu'
  end

  def test_sysinfo_resource_started
    return unless ubuntu?
    fqdn = TestCommon::Settings.fqdn
    assert TestCommon::Pacemaker.primitive_present?("sysinfo_#{fqdn}"), 'sysinfo is not created!'
  end
end


Add node name to tested primitive
Add node name to tested primitive

As primitive name changed, test changed accordingly.

Change-Id: I5aad18f91f2e4da9d3f6bdc9dcf6aa1d247a660b
Closes-Bug: #1523956
