xref: /openbmc/openbmc-test-automation/gui/test/access_control/test_obmc_gui_certificate.robot (revision feb79d60e26d78a6e91521ee41b1af5b8ba71f4c)
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
12Test Tags       OBMC_GUI_Certificate
13
14*** Variables ***
15
16${xpath_select_certificate_management}  //a[@href='#/access-control/ssl-certificates']
17${xpath_select_access_control}          //*[@id="nav__top-level"]/li[5]/button
18${xpath_add_certificate_button}         //*[contains(text(), "Add new certificate")]
19
20*** Test Cases ***
21
22Verify Existence Of All Sections In Certificate Page
23    [Documentation]  Verify existence of all sections in certificate page.
24    [Tags]  Verify_Existence_Of_All_Sections_In_Certificate_Page
25
26    Page should contain  Certificate
27    Page should contain  Valid from
28    Page should contain  Valid until
29
30
31Verify Existence Of Add Certificate Button
32    [Documentation]  Verify existence of add certificate button.
33    [Tags]  Verify_Existence_Of_Add_Certificate_Button
34
35    Page Should Contain Element  ${xpath_add_certificate_button}
36
37
38*** Keywords ***
39
40Test Setup Execution
41   [Documentation]  Do test case setup tasks.
42
43    Wait Until Page Does Not Contain Element  ${xpath_refresh_circle}
44    Click Element  ${xpath_select_access_control}
45    Wait Until Page Does Not Contain Element  ${xpath_refresh_circle}
46    Click Element  ${xpath_select_certificate_management}
47    Wait Until Page Contains  SSL certificates
48