test commit
This commit is contained in:
7
lib/test
7
lib/test
@@ -24,6 +24,13 @@ Manager.new_test("hostname in /etc/hosts", :cluster => true ) {|host|
|
||||
match_regex = /127\.0\.0\.1.+#{hostname.downcase}/
|
||||
hosts.match? match_regex
|
||||
}
|
||||
|
||||
Manager.new_test("Has user tristan") do |host|
|
||||
passwd_file = host.exec("cat /etc/passwd")
|
||||
passwd_file.match? /tristan.*/
|
||||
end
|
||||
|
||||
|
||||
$Manager.add_host(host)
|
||||
$Manager.run_tests
|
||||
$Manager.report
|
||||
|
Reference in New Issue
Block a user