~ubuntu-branches/ubuntu/trusty/puppet/trusty

« back to all changes in this revision

Viewing changes to acceptance/tests/ticket_4289_facter_should_recognize_OEL_operatingsystemrelease.rb

  • Committer: Package Import Robot
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2011-10-22 14:08:22 UTC
  • mfrom: (1.1.25) (3.1.32 sid)
  • Revision ID: package-import@ubuntu.com-20111022140822-odxde5lohc45yhuz
Tags: 2.7.6-1
* New upstream release (CVE-2011-3872)
* Remove cherry-picked "groupadd_aix_warning" patch
* Install all new manpages

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# 2010-08-02 Nan Liu
2
 
#
3
 
# http://projects.puppetlabs.com/issues/4289
4
 
#
5
 
# NL: Facter should return OS version instead of kernel version for OEL
6
 
# test script only applicable to OEL, provided based on ticked info, not verified.
7
 
 
8
 
test_name "#4289: facter should recognize OEL operatingsystemrelease"
9
 
 
10
 
# REVISIT: We don't actually have support for this yet - we need a "not
11
 
# applicable" option, I guess, that can be based on detected stuff, which is
12
 
# cleaner than this is... --daniel 2010-12-22
13
 
agents.each do |host|
14
 
  step "determine the operating system of #{host}"
15
 
  on host, facter("operatingsystem")
16
 
  if stdout =~ /oel/i then
17
 
    step "test operatingsystemrelease fact on OEL host #{host}"
18
 
    on host, facter("operatingsystemrelease")
19
 
    stdout =~ /^\d\.\d$/ or fail_test "operatingsystemrelease not as expected"
20
 
  end
21
 
end