File: version.rb

package info (click to toggle)
facter 4.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,276 kB
  • sloc: ruby: 64,130; sh: 48; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 537 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
# This test is intended to ensure that the --version command-line option works
# properly. This option outputs the current Facter version.
test_name "C99983: --version command-line option returns the version string" do

  agents.each do |agent|
    step "Agent #{agent}: retrieve version info using the --version option" do
      on(agent, facter('--version')) do |facter_output|
        assert_match(/\d+\.\d+\.\d+/, facter_output.stdout, "Output #{facter_output.stdout} is not a recognized version string")
      end
    end
  end
end