| *** Settings *** |
| |
| Documentation Test OpenBMC GUI "LDAP" sub-menu of "Access control". |
| |
| Resource ../../lib/resource.robot |
| |
| Suite Setup Launch Browser And Login GUI |
| Suite Teardown Close Browser |
| Test Setup Test Setup Execution |
| |
| |
| *** Variables *** |
| |
| ${xpath_enable_ldap_checkbox} //*[@id='enable-ldap-auth'] |
| ${xpath_secure_ldap_checkbox} //*[@id='enable-secure-ldap'] |
| ${xpath_service_radio_button} //*[@data-test-id="ldap-radio-activeDirectoryEnabled"] |
| ${xpath_add_role_group_button} //button[contains(text(),'Add role group')] |
| |
| *** Test Cases *** |
| |
| Verify Existence Of All Sections In LDAP Page |
| [Documentation] Verify existence of all sections in LDAP page. |
| [Tags] Verify_Existence_Of_All_Sections_In_LDAP_Page |
| |
| Page Should Contain Settings |
| Page Should Contain Role groups |
| |
| |
| Verify Existence Of All Buttons In LDAP Page |
| [Documentation] Verify existence of all buttons in LDAP page. |
| [Tags] Verify_Existence_Of_All_Buttons_In_LDAP_Page |
| |
| # Buttons under settings section. |
| Page Should Contain Element ${xpath_service_radio_button} |
| Page Should Contain Element ${xpath_save_settings_button} |
| |
| # Buttons under role groups section. |
| Page Should Contain Element ${xpath_add_role_group_button} |
| |
| |
| Verify Existence Of All Checkboxes In LDAP Page |
| [Documentation] Verify existence of all checkboxes in LDAP page. |
| [Tags] Verify_Existence_Of_All_Checkboxes_In_LDAP_Page |
| |
| # Checkboxes under settings section. |
| Page Should Contain Element ${xpath_enable_ldap_checkbox} |
| Page Should Contain Element ${xpath_secure_ldap_checkbox} |
| |
| |
| *** Keywords *** |
| |
| Test Setup Execution |
| [Documentation] Do test case setup tasks. |
| |
| # Navigate to https://xx.xx.xx.xx/#/access-control/ldap LDAP page. |
| |
| Click Element ${xpath_access_control_menu} |
| Click Element ${xpath_ldap_sub_menu} |
| Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain ldap |