1*** Settings ***
2
3Documentation  Test OpenBMC GUI "Certificate management" sub-menu of
4...            "Server configuration".
5
6Resource        ../../lib/resource.robot
7
8Suite Setup     Launch Browser And Login OpenBMC GUI
9Suite Teardown  Close Browser
10Test Setup      Test Setup Execution
11
12
13*** Variables ***
14
15${xpath_select_certificate_management}  //a[@href='#/access-control/ssl-certificates']
16${xpath_select_access_control}          //*[@id="nav__top-level"]/li[5]/button
17${xpath_add_certificate_button}         //*[contains(text(), "Add new certificate")]
18
19*** Test Cases ***
20
21Verify Existence Of All Sections In Certificate Page
22    [Documentation]  Verify existence of all sections in certificate page.
23    [Tags]  Verify_Existence_Of_All_Sections_In_Certificate_Page
24
25    Page should contain  Certificate
26    Page should contain  Valid from
27    Page should contain  Valid until
28
29
30Verify Existence Of Add Certificate Button
31    [Documentation]  Verify existence of add certificate button.
32    [Tags]  Verify_Existence_Of_Add_Certificate_Button
33
34    Page Should Contain Element  ${xpath_add_certificate_button}
35
36
37*** Keywords ***
38
39Test Setup Execution
40   [Documentation]  Do test case setup tasks.
41
42    Wait Until Page Does Not Contain Element  ${xpath_refresh_circle}
43    Click Element  ${xpath_select_access_control}
44    Wait Until Page Does Not Contain Element  ${xpath_refresh_circle}
45    Click Element  ${xpath_select_certificate_management}
46    Wait Until Page Contains  SSL certificates
47