@@ -5,6 +5,8 @@ Suite Setup Connect to the node
55
66*** Variables ***
77${SSH_KEYFILE } %{HOME } /.ssh/id_ecdsa
8+ ${ADMIN_USER } admin
9+ ${ADMIN_PASSWORD } Nethesis,12345
810
911*** Keywords ***
1012Connect to the node
@@ -13,27 +15,37 @@ Connect to the node
1315 ${output } = Execute Command systemctl is-system-running --wait
1416 Should Be True '${output } ' == 'running' or '${output } ' == 'degraded'
1517
18+ Login to cluster-admin
19+ New Page https://${NODE_ADDR } /cluster-admin/
20+ Fill Text text="Username" ${ADMIN_USER }
21+ Click button >> text="Continue"
22+ Fill Text text="Password" ${ADMIN_PASSWORD }
23+ Click button >> text="Log in"
24+ Wait For Elements State css=#main-content visible timeout=10s
25+
1626*** Test Cases ***
17- Install nethsecurity-controller module
27+ Install module
1828 ${output } ${rc } = Execute Command add-module ${IMAGE_URL } 1
1929 ... return_rc=True
2030 Should Be Equal As Integers ${rc } 0
2131 &{output } = Evaluate ${output }
2232 Set Suite Variable ${module_id } ${output.module_id }
2333
24- Take screenshot of Status page
25- New Browser chromium headless=True
26- New Page https://${NODE_ADDR } /cluster-admin/#/apps/${module_id }
27- Take Screenshot filename=${OUTPUT DIR } /nethsecurity-controller-status.png
28- Close Browser
29-
30- Take screenshot of Settings page
34+ Take screenshots
3135 New Browser chromium headless=True
32- New Page https://${NODE_ADDR } /cluster-admin/#/apps/${module_id } ?page=settings
33- Take Screenshot filename=${OUTPUT DIR } /nethsecurity-controller-settings.png
36+ New Context ignoreHTTPSErrors=True
37+ Login to cluster-admin
38+ Go To https://${NODE_ADDR } /cluster-admin/#/apps/${module_id }
39+ Wait For Elements State iframe >>> h2 >> text="Status" visible timeout=10s
40+ Sleep 5s
41+ Take Screenshot filename=${OUTPUT DIR } /browser/screenshot/status.png
42+ Go To https://${NODE_ADDR } /cluster-admin/#/apps/${module_id } ?page=settings
43+ Wait For Elements State iframe >>> h2 >> text="Settings" visible timeout=10s
44+ Sleep 5s
45+ Take Screenshot filename=${OUTPUT DIR } /browser/screenshot/settings.png
3446 Close Browser
3547
36- Remove nethsecurity-controller module
48+ Remove module
3749 ${rc } = Execute Command remove-module --no-preserve ${module_id }
3850 ... return_rc=True return_stdout=False
3951 Should Be Equal As Integers ${rc } 0
0 commit comments