1####################################################### 2# 3# Test 'getuserinfo' function 4# 5####################################################### 6 7body common control 8{ 9 inputs => { "../../default.cf.sub" }; 10 bundlesequence => { default("$(this.promise_filename)") }; 11 version => "1.0"; 12} 13 14bundle agent test 15{ 16 vars: 17 # this is pretty much all we can test across platforms 18 "info_root" string => nth(getuserinfo("root"), "username"); 19 "info_0" string => nth(getuserinfo(0), "uid"); 20} 21 22bundle agent check 23{ 24 methods: 25 "check" usebundle => dcs_check_state(test, 26 "$(this.promise_filename).expected.json", 27 $(this.promise_filename)); 28} 29