Anves Kumar rayankula | a87b1b1 | 2020-05-06 01:18:28 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Test root user expire password. |
| 3 | |
| 4 | Resource ../lib/resource.robot |
shrsuman123 | a9d9341 | 2021-07-13 04:06:05 -0500 | [diff] [blame] | 5 | Resource ../gui/lib/gui_resource.robot |
Anves Kumar rayankula | a87b1b1 | 2020-05-06 01:18:28 -0500 | [diff] [blame] | 6 | Resource ../lib/ipmi_client.robot |
shrsuman123 | a9d9341 | 2021-07-13 04:06:05 -0500 | [diff] [blame] | 7 | Resource ../lib/bmc_redfish_utils.robot |
Anves Kumar rayankula | a87b1b1 | 2020-05-06 01:18:28 -0500 | [diff] [blame] | 8 | Library ../lib/bmc_ssh_utils.py |
| 9 | Library SSHLibrary |
| 10 | |
George Keishing | 4d4ef99 | 2021-01-28 09:56:53 -0600 | [diff] [blame] | 11 | Test Setup Set Account Lockout Threshold |
Anves Kumar rayankula | e6c745a | 2020-09-24 04:14:09 -0500 | [diff] [blame] | 12 | |
Megha G N | e18cdb5 | 2023-10-11 04:45:32 -0500 | [diff] [blame] | 13 | Force Tags BMC_Expire_Password |
| 14 | |
| 15 | |
Anves Kumar rayankula | 68f985b | 2020-07-24 04:39:46 -0500 | [diff] [blame] | 16 | *** Variables *** |
Anvesh Kumar | 9f42121 | 2020-04-27 01:42:50 -0500 | [diff] [blame] | 17 | |
Anves Kumar rayankula | 68f985b | 2020-07-24 04:39:46 -0500 | [diff] [blame] | 18 | # If user re-tries more than 5 time incorrectly, the user gets locked for 5 minutes. |
| 19 | ${default_lockout_duration} ${300} |
Megha G N | e18cdb5 | 2023-10-11 04:45:32 -0500 | [diff] [blame] | 20 | ${admin_user} admin_user |
| 21 | ${default_adminuser_passwd} AdminUser1 |
| 22 | ${admin_password} AdminUser2 |
Anves Kumar rayankula | 68f985b | 2020-07-24 04:39:46 -0500 | [diff] [blame] | 23 | |
Anves Kumar rayankula | a87b1b1 | 2020-05-06 01:18:28 -0500 | [diff] [blame] | 24 | |
| 25 | *** Test Cases *** |
| 26 | |
| 27 | Expire Root Password And Check IPMI Access Fails |
| 28 | [Documentation] Expire root user password and expect an error while access via IPMI. |
| 29 | [Tags] Expire_Root_Password_And_Check_IPMI_Access_Fails |
Anves Kumar rayankula | 68f985b | 2020-07-24 04:39:46 -0500 | [diff] [blame] | 30 | [Teardown] Test Teardown Execution |
Anves Kumar rayankula | a87b1b1 | 2020-05-06 01:18:28 -0500 | [diff] [blame] | 31 | |
Megha G N | e18cdb5 | 2023-10-11 04:45:32 -0500 | [diff] [blame] | 32 | Expire Password ${OPENBMC_USERNAME} |
Anves Kumar rayankula | a87b1b1 | 2020-05-06 01:18:28 -0500 | [diff] [blame] | 33 | |
| 34 | ${status}= Run Keyword And Return Status Run External IPMI Standard Command lan print -v |
| 35 | Should Be Equal ${status} ${False} |
| 36 | |
Anves Kumar rayankula | 5df05f7 | 2020-06-22 23:58:25 -0500 | [diff] [blame] | 37 | |
| 38 | Expire Root Password And Check SSH Access Fails |
| 39 | [Documentation] Expire root user password and expect an error while access via SSH. |
| 40 | [Tags] Expire_Root_Password_And_Check_SSH_Access_Fails |
Anves Kumar rayankula | 68f985b | 2020-07-24 04:39:46 -0500 | [diff] [blame] | 41 | [Teardown] Test Teardown Execution |
Anves Kumar rayankula | 5df05f7 | 2020-06-22 23:58:25 -0500 | [diff] [blame] | 42 | |
Megha G N | e18cdb5 | 2023-10-11 04:45:32 -0500 | [diff] [blame] | 43 | Expire Password ${OPENBMC_USERNAME} |
Anves Kumar rayankula | 5df05f7 | 2020-06-22 23:58:25 -0500 | [diff] [blame] | 44 | |
| 45 | ${status}= Run Keyword And Return Status |
| 46 | ... Open Connection And Log In ${OPENBMC_USERNAME} ${OPENBMC_PASSWORD} |
| 47 | Should Be Equal ${status} ${False} |
| 48 | |
| 49 | |
Anves Kumar rayankula | 6792114 | 2020-05-14 04:03:24 -0500 | [diff] [blame] | 50 | Expire And Change Root User Password And Access Via SSH |
| 51 | [Documentation] Expire and change root user password and access via SSH. |
George Keishing | b98036a | 2022-01-31 12:39:47 -0600 | [diff] [blame] | 52 | [Tags] Expire_And_Change_Root_User_Password_And_Access_Via_SSH |
Anves Kumar rayankula | 6792114 | 2020-05-14 04:03:24 -0500 | [diff] [blame] | 53 | [Teardown] Run Keywords Wait Until Keyword Succeeds 1 min 10 sec |
| 54 | ... Restore Default Password For Root User AND FFDC On Test Case Fail |
| 55 | |
Megha G N | e18cdb5 | 2023-10-11 04:45:32 -0500 | [diff] [blame] | 56 | Expire Password ${OPENBMC_USERNAME} |
Anves Kumar rayankula | 6792114 | 2020-05-14 04:03:24 -0500 | [diff] [blame] | 57 | |
Anvesh Kumar | 9f42121 | 2020-04-27 01:42:50 -0500 | [diff] [blame] | 58 | Redfish.Login |
Anves Kumar rayankula | 6792114 | 2020-05-14 04:03:24 -0500 | [diff] [blame] | 59 | # Change to a valid password. |
| 60 | ${resp}= Redfish.Patch /redfish/v1/AccountService/Accounts/${OPENBMC_USERNAME} |
| 61 | ... body={'Password': '0penBmc123'} valid_status_codes=[${HTTP_OK}] |
| 62 | |
| 63 | # Verify login with the new password through SSH. |
| 64 | Open Connection And Log In ${OPENBMC_USERNAME} 0penBmc123 |
| 65 | |
| 66 | |
| 67 | Expire Root Password And Update Bad Password Length Via Redfish |
| 68 | [Documentation] Expire root password and update bad password via Redfish and expect an error. |
| 69 | [Tags] Expire_Root_Password_And_Update_Bad_Password_Length_Via_Redfish |
| 70 | [Teardown] Run Keywords Wait Until Keyword Succeeds 1 min 10 sec |
Anves Kumar rayankula | 322e3aa | 2020-06-01 00:28:48 -0500 | [diff] [blame] | 71 | ... Restore Default Password For Root User AND FFDC On Test Case Fail |
Anves Kumar rayankula | 6792114 | 2020-05-14 04:03:24 -0500 | [diff] [blame] | 72 | |
Megha G N | e18cdb5 | 2023-10-11 04:45:32 -0500 | [diff] [blame] | 73 | Expire Password ${OPENBMC_USERNAME} |
Anves Kumar rayankula | 6792114 | 2020-05-14 04:03:24 -0500 | [diff] [blame] | 74 | |
Anvesh Kumar | 9f42121 | 2020-04-27 01:42:50 -0500 | [diff] [blame] | 75 | Redfish.Login |
Anves Kumar rayankula | 6792114 | 2020-05-14 04:03:24 -0500 | [diff] [blame] | 76 | ${status}= Run Keyword And Return Status |
| 77 | ... Redfish.Patch /redfish/v1/AccountService/Accounts/${OPENBMC_USERNAME} |
| 78 | ... body={'Password': '0penBmc0penBmc0penBmc'} |
| 79 | Should Be Equal ${status} ${False} |
Anves Kumar rayankula | a87b1b1 | 2020-05-06 01:18:28 -0500 | [diff] [blame] | 80 | |
Anvesh Kumar | 9f42121 | 2020-04-27 01:42:50 -0500 | [diff] [blame] | 81 | |
| 82 | Expire And Change Root User Password Via Redfish And Verify |
| 83 | [Documentation] Expire and change root user password via Redfish and verify. |
| 84 | [Tags] Expire_And_Change_Root_User_Password_Via_Redfish_And_Verify |
| 85 | [Teardown] Run Keywords FFDC On Test Case Fail AND |
| 86 | ... Wait Until Keyword Succeeds 1 min 10 sec |
| 87 | ... Restore Default Password For Root User |
| 88 | |
Megha G N | e18cdb5 | 2023-10-11 04:45:32 -0500 | [diff] [blame] | 89 | Expire Password ${OPENBMC_USERNAME} |
Anvesh Kumar | 9f42121 | 2020-04-27 01:42:50 -0500 | [diff] [blame] | 90 | |
shrsuman123 | a9d9341 | 2021-07-13 04:06:05 -0500 | [diff] [blame] | 91 | Verify User Password Expired Using Redfish ${OPENBMC_USERNAME} ${OPENBMC_PASSWORD} |
Anvesh Kumar | 9f42121 | 2020-04-27 01:42:50 -0500 | [diff] [blame] | 92 | # Change to a valid password. |
| 93 | Redfish.Patch /redfish/v1/AccountService/Accounts/${OPENBMC_USERNAME} |
| 94 | ... body={'Password': '0penBmc123'} |
| 95 | Redfish.Logout |
| 96 | |
| 97 | # Verify login with the new password. |
| 98 | Redfish.Login ${OPENBMC_USERNAME} 0penBmc123 |
| 99 | |
| 100 | |
Anves Kumar rayankula | 322e3aa | 2020-06-01 00:28:48 -0500 | [diff] [blame] | 101 | Verify Error While Creating User With Expired Password |
| 102 | [Documentation] Expire root password and expect an error while creating new user. |
| 103 | [Tags] Verify_Error_While_Creating_User_With_Expired_Password |
| 104 | [Teardown] Run Keywords Wait Until Keyword Succeeds 1 min 10 sec |
| 105 | ... Restore Default Password For Root User AND FFDC On Test Case Fail |
| 106 | |
Megha G N | e18cdb5 | 2023-10-11 04:45:32 -0500 | [diff] [blame] | 107 | Expire Password ${OPENBMC_USERNAME} |
Anves Kumar rayankula | 322e3aa | 2020-06-01 00:28:48 -0500 | [diff] [blame] | 108 | |
shrsuman123 | a9d9341 | 2021-07-13 04:06:05 -0500 | [diff] [blame] | 109 | Verify User Password Expired Using Redfish ${OPENBMC_USERNAME} ${OPENBMC_PASSWORD} |
Anves Kumar rayankula | 322e3aa | 2020-06-01 00:28:48 -0500 | [diff] [blame] | 110 | Redfish.Login |
| 111 | ${payload}= Create Dictionary |
| 112 | ... UserName=admin_user Password=TestPwd123 RoleId=Administrator Enabled=${True} |
| 113 | Redfish.Post /redfish/v1/AccountService/Accounts/ body=&{payload} |
| 114 | ... valid_status_codes=[${HTTP_FORBIDDEN}] |
| 115 | |
| 116 | |
Anves Kumar rayankula | 9233ce1 | 2020-06-17 00:14:41 -0500 | [diff] [blame] | 117 | Expire And Change Root Password Via GUI |
| 118 | [Documentation] Expire and change root password via GUI. |
| 119 | [Tags] Expire_And_Change_Root_Password_Via_GUI |
shrsuman123 | a9d9341 | 2021-07-13 04:06:05 -0500 | [diff] [blame] | 120 | [Setup] Launch Browser And Login GUI |
| 121 | [Teardown] Run Keywords Logout GUI AND Close Browser |
Anves Kumar rayankula | 9233ce1 | 2020-06-17 00:14:41 -0500 | [diff] [blame] | 122 | ... AND Restore Default Password For Root User AND FFDC On Test Case Fail |
| 123 | |
Megha G N | e18cdb5 | 2023-10-11 04:45:32 -0500 | [diff] [blame] | 124 | Expire Password ${OPENBMC_USERNAME} |
Anves Kumar rayankula | 9233ce1 | 2020-06-17 00:14:41 -0500 | [diff] [blame] | 125 | |
shrsuman123 | a9d9341 | 2021-07-13 04:06:05 -0500 | [diff] [blame] | 126 | Wait Until Page Contains Element ${xpath_root_button_menu} |
| 127 | Click Element ${xpath_root_button_menu} |
| 128 | Click Element ${xpath_profile_settings} |
| 129 | Wait Until Page Contains Change password |
| 130 | |
Anves Kumar rayankula | 9233ce1 | 2020-06-17 00:14:41 -0500 | [diff] [blame] | 131 | # Change valid password. |
| 132 | Input Text ${xpath_input_password} 0penBmc123 |
| 133 | Input Text ${xpath_input_confirm_password} 0penBmc123 |
shrsuman123 | a9d9341 | 2021-07-13 04:06:05 -0500 | [diff] [blame] | 134 | Click Button ${xpath_profile_save_button} |
| 135 | Wait Until Page Contains Successfully saved account settings. |
| 136 | Wait Until Page Does Not Contain Successfully saved account settings. timeout=20 |
| 137 | Logout GUI |
Anves Kumar rayankula | 9233ce1 | 2020-06-17 00:14:41 -0500 | [diff] [blame] | 138 | |
| 139 | # Verify valid password. |
shrsuman123 | a9d9341 | 2021-07-13 04:06:05 -0500 | [diff] [blame] | 140 | Login GUI ${OPENBMC_USERNAME} 0penBmc123 |
Anves Kumar rayankula | 9233ce1 | 2020-06-17 00:14:41 -0500 | [diff] [blame] | 141 | Redfish.Login ${OPENBMC_USERNAME} 0penBmc123 |
| 142 | |
| 143 | |
Anves Kumar rayankula | 68f985b | 2020-07-24 04:39:46 -0500 | [diff] [blame] | 144 | Verify Maximum Failed Attempts And Check Root User Account Locked |
| 145 | [Documentation] Verify maximum failed attempts and locks out root user account. |
| 146 | [Tags] Verify_Maximum_Failed_Attempts_And_Check_Root_User_Account_Locked |
George Keishing | 4d4ef99 | 2021-01-28 09:56:53 -0600 | [diff] [blame] | 147 | [Setup] Set Account Lockout Threshold account_lockout_threshold=${5} |
Anves Kumar rayankula | 68f985b | 2020-07-24 04:39:46 -0500 | [diff] [blame] | 148 | |
| 149 | # Make maximum failed login attempts. |
| 150 | Repeat Keyword ${5} times |
| 151 | ... Run Keyword And Expect Error InvalidCredentialsError* Redfish.Login root 0penBmc123 |
| 152 | |
| 153 | # Verify that legitimate login fails due to lockout. |
| 154 | Run Keyword And Expect Error InvalidCredentialsError* |
| 155 | ... Redfish.Login ${OPENBMC_USERNAME} ${OPENBMC_PASSWORD} |
| 156 | |
| 157 | # Wait for lockout duration to expire and then verify that login works. |
| 158 | Sleep ${default_lockout_duration}s |
| 159 | Redfish.Login |
| 160 | Redfish.Logout |
| 161 | |
Anves Kumar rayankula | c46a896 | 2020-08-07 10:00:44 -0500 | [diff] [blame] | 162 | Verify New Password Persistency After BMC Reboot |
| 163 | [Documentation] Verify new password persistency after BMC reboot. |
| 164 | [Tags] Verify_New_Password_Persistency_After_BMC_Reboot |
Anves Kumar rayankula | e6c745a | 2020-09-24 04:14:09 -0500 | [diff] [blame] | 165 | [Teardown] Test Teardown Execution |
Anves Kumar rayankula | c46a896 | 2020-08-07 10:00:44 -0500 | [diff] [blame] | 166 | |
| 167 | Redfish.Login |
Anves Kumar rayankula | e6c745a | 2020-09-24 04:14:09 -0500 | [diff] [blame] | 168 | |
| 169 | # Make sure the user account in question does not already exist. |
| 170 | Redfish.Delete /redfish/v1/AccountService/Accounts/admin_user |
| 171 | ... valid_status_codes=[${HTTP_OK}, ${HTTP_NOT_FOUND}] |
| 172 | |
| 173 | # Create specified user. |
| 174 | ${payload}= Create Dictionary |
| 175 | ... UserName=admin_user Password=TestPwd123 RoleId=Administrator Enabled=${True} |
| 176 | Redfish.Post /redfish/v1/AccountService/Accounts/ body=&{payload} |
| 177 | ... valid_status_codes=[${HTTP_CREATED}] |
| 178 | Redfish.Logout |
| 179 | |
| 180 | Redfish.Login admin_user TestPwd123 |
| 181 | |
Anves Kumar rayankula | c46a896 | 2020-08-07 10:00:44 -0500 | [diff] [blame] | 182 | # Change to a valid password. |
Anves Kumar rayankula | e6c745a | 2020-09-24 04:14:09 -0500 | [diff] [blame] | 183 | Redfish.Patch /redfish/v1/AccountService/Accounts/admin_user |
Anves Kumar rayankula | c46a896 | 2020-08-07 10:00:44 -0500 | [diff] [blame] | 184 | ... body={'Password': '0penBmc123'} |
| 185 | |
| 186 | # Reboot BMC and verify persistency. |
Anves Kumar rayankula | e6c745a | 2020-09-24 04:14:09 -0500 | [diff] [blame] | 187 | Redfish OBMC Reboot (off) |
Anves Kumar rayankula | c46a896 | 2020-08-07 10:00:44 -0500 | [diff] [blame] | 188 | |
| 189 | # verify new password |
Anves Kumar rayankula | e6c745a | 2020-09-24 04:14:09 -0500 | [diff] [blame] | 190 | Redfish.Login admin_user 0penBmc123 |
Anves Kumar rayankula | c46a896 | 2020-08-07 10:00:44 -0500 | [diff] [blame] | 191 | |
Anves Kumar rayankula | 68f985b | 2020-07-24 04:39:46 -0500 | [diff] [blame] | 192 | |
Megha G N | e18cdb5 | 2023-10-11 04:45:32 -0500 | [diff] [blame] | 193 | Verify Expire And Change Admin User Password Via GUI |
| 194 | [Documentation] Force expire admin password and update admin password via GUI. |
| 195 | [Tags] Verify_Expire_And_Change_Admin_User_Password_Via_GUI |
| 196 | [Setup] Run Keywords Launch Browser And Login GUI AND |
| 197 | ... Redfish Create User ${admin_user} ${default_adminuser_passwd} Administrator ${True} |
| 198 | [Teardown] Run Keywords Logout GUI AND Close Browser |
| 199 | |
| 200 | Expire Password ${admin_user} |
| 201 | |
| 202 | Logout GUI |
| 203 | |
| 204 | # Verify that admin user should not be able to login with expired password. |
| 205 | Login GUI ${admin_user} ${default_adminuser_passwd} |
| 206 | |
| 207 | # Verify error message to update the password. |
| 208 | Wait Until Page Contains The password is expired and must be changed. timeout=10 |
| 209 | |
| 210 | # Update a valid acceptable password. |
| 211 | Input Text ${xpath_input_password} ${admin_password} |
| 212 | Input Text ${xpath_input_confirm_password} ${admin_password} |
| 213 | Click Button ${xpath_confirm_password_button} |
| 214 | Wait Until Page Contains Overview timeout=20 |
| 215 | |
| 216 | # Verify valid password. |
| 217 | Redfish.Login ${admin_user} ${admin_password} |
| 218 | |
| 219 | |
Megha G N | 2f76ae4 | 2023-10-13 05:05:46 -0500 | [diff] [blame^] | 220 | Expire Admin Password And Check IPMI Access Fails |
| 221 | [Documentation] Expire admin user password and expect an error while access via IPMI. |
| 222 | [Tags] Expire_Admin_Password_And_Check_IPMI_Access_Fails |
| 223 | [Setup] Redfish Create User ${admin_user} ${default_adminuser_passwd} Administrator ${True} |
| 224 | |
| 225 | Expire Password ${admin_user} |
| 226 | |
| 227 | ${status}= Run Keyword And Return Status Run External IPMI Standard Command lan print -v |
| 228 | Should Be Equal ${status} ${False} |
| 229 | |
| 230 | |
Anves Kumar rayankula | a87b1b1 | 2020-05-06 01:18:28 -0500 | [diff] [blame] | 231 | *** Keywords *** |
| 232 | |
George Keishing | 4d4ef99 | 2021-01-28 09:56:53 -0600 | [diff] [blame] | 233 | Set Account Lockout Threshold |
Anves Kumar rayankula | e6c745a | 2020-09-24 04:14:09 -0500 | [diff] [blame] | 234 | [Documentation] Set user account lockout threshold. |
shrsuman123 | a9d9341 | 2021-07-13 04:06:05 -0500 | [diff] [blame] | 235 | [Arguments] ${account_lockout_threshold}=${0} ${account_lockout_duration}=${50} |
Anves Kumar rayankula | e6c745a | 2020-09-24 04:14:09 -0500 | [diff] [blame] | 236 | |
| 237 | # Description of argument(s): |
| 238 | # account_lockout_threshold Set lockout threshold value. |
shrsuman123 | a9d9341 | 2021-07-13 04:06:05 -0500 | [diff] [blame] | 239 | # account_lockout_duration Set lockout duration value. |
Anves Kumar rayankula | a87b1b1 | 2020-05-06 01:18:28 -0500 | [diff] [blame] | 240 | |
| 241 | Redfish.login |
shrsuman123 | a9d9341 | 2021-07-13 04:06:05 -0500 | [diff] [blame] | 242 | ${payload}= Create Dictionary AccountLockoutThreshold=${account_lockout_threshold} |
| 243 | ... AccountLockoutDuration=${account_lockout_duration} |
| 244 | Redfish.Patch /redfish/v1/AccountService/ body=&{payload} |
Anves Kumar rayankula | e6c745a | 2020-09-24 04:14:09 -0500 | [diff] [blame] | 245 | gen_robot_valid.Valid Length OPENBMC_PASSWORD min_length=8 |
Anvesh Kumar | 9f42121 | 2020-04-27 01:42:50 -0500 | [diff] [blame] | 246 | Redfish.Logout |
| 247 | |
Anves Kumar rayankula | a87b1b1 | 2020-05-06 01:18:28 -0500 | [diff] [blame] | 248 | Restore Default Password For Root User |
| 249 | [Documentation] Restore default password for root user (i.e. 0penBmc). |
| 250 | |
| 251 | # Set default password for root user. |
Anves Kumar rayankula | 6792114 | 2020-05-14 04:03:24 -0500 | [diff] [blame] | 252 | Redfish.Patch /redfish/v1/AccountService/Accounts/${OPENBMC_USERNAME} |
| 253 | ... body={'Password': '${OPENBMC_PASSWORD}'} valid_status_codes=[${HTTP_OK}] |
Anves Kumar rayankula | a87b1b1 | 2020-05-06 01:18:28 -0500 | [diff] [blame] | 254 | # Verify that root user is able to run Redfish command using default password. |
Anvesh Kumar | 9f42121 | 2020-04-27 01:42:50 -0500 | [diff] [blame] | 255 | Redfish.Logout |
| 256 | |
| 257 | |
| 258 | Test Teardown Execution |
| 259 | [Documentation] Do test teardown task. |
| 260 | |
| 261 | Redfish.Login |
| 262 | Wait Until Keyword Succeeds 1 min 10 sec Restore Default Password For Root User |
Anvesh Kumar | 9f42121 | 2020-04-27 01:42:50 -0500 | [diff] [blame] | 263 | Redfish.Logout |
George Keishing | 4d4ef99 | 2021-01-28 09:56:53 -0600 | [diff] [blame] | 264 | Set Account Lockout Threshold account_lockout_threshold=${5} |
Anves Kumar rayankula | 68f985b | 2020-07-24 04:39:46 -0500 | [diff] [blame] | 265 | FFDC On Test Case Fail |
Megha G N | e18cdb5 | 2023-10-11 04:45:32 -0500 | [diff] [blame] | 266 | |
| 267 | |
| 268 | Expire Password |
| 269 | [Documentation] Force expire password. |
| 270 | [Arguments] ${username} |
| 271 | |
| 272 | # Description of argument(s): |
| 273 | # username User to be created and expire. |
| 274 | |
| 275 | # Expire the password. |
| 276 | Open Connection And Log In ${OPENBMC_USERNAME} ${OPENBMC_PASSWORD} |
| 277 | |
| 278 | ${output} ${stderr} ${rc}= BMC Execute Command passwd --expire ${username} |
| 279 | Should Contain Any ${output} password expiry information changed password changed |
| 280 | |
| 281 | # Example output: |
| 282 | # passwd --expire admin |
| 283 | # passwd: password changed. |
| 284 | |
| 285 | Close All Connections |