3
# http://projects.puppetlabs.com/issues/4289
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.
8
test_name "#4289: facter should recognize OEL operatingsystemrelease"
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
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"