Add local_users test to openbmctool.py

Check that "local_users queryenabled" returns at least
one local user.

Resolves openbmc/openbmc-test-automation#1472

Change-Id: Id029507cc64fd00e025d957add82967c6a57c793
Signed-off-by: Steven Sombar <ssombar@us.ibm.com>
diff --git a/openpower/tests_openbmctool/test_openbmctool.robot b/openpower/tests_openbmctool/test_openbmctool.robot
index 5203e60..5bd0fcd 100755
--- a/openpower/tests_openbmctool/test_openbmctool.robot
+++ b/openpower/tests_openbmctool/test_openbmctool.robot
@@ -14,6 +14,7 @@
 # health check
 # service data
 # remote logging
+# local_users queryenabled
 #
 # It is the responsibility of the user to include openbmctool.py's
 # directory PATH in $PATH.
@@ -29,15 +30,6 @@
 #                       LOGGING_HOST.  The default value is '514'.
 
 
-# TODO:
-# chassis tests
-# sel tests
-# dump
-# bmc (same as mc)
-# gardclear
-# firmware commands
-
-
 Library                 String
 Library                 OperatingSystem
 Library                 ../../lib/gen_print.py
@@ -60,6 +52,7 @@
 ${LOGGING_PORT}         514
 
 
+
 *** Test Cases ***
 
 Verify Openbmctool FRU Commands
@@ -124,6 +117,21 @@
     ...  ${remote_config['Address']}  ${remote_config['Port']}
 
 
+Verify Openbmctool Local Users Queryenabled
+    [Documentation]  Verify "local_users queryenabled" function.
+    [Tags]  Verify_Openbmctool_Local_Users_Queryenabled
+
+    # Example output from "queryenabled":
+    # User: root  Enabled: 1
+    # User: freddy  Enabled: 1
+    # User: ldap4  Enabled: {'description': "The ..."
+
+    ${rc}  ${num_users}=  Openbmctool Execute Command
+    ...  local_users queryenabled | grep -c 'User.*Enabled'
+    Rprint Vars  num_users
+    Check Greater Than Minimum  ${num_users}  ${0}  local users
+
+
 *** Keywords ***