Skip to content

Commit

Permalink
Verify wpa_supplicant status
Browse files Browse the repository at this point in the history
Signed-off-by: Mariia Azbeleva <[email protected]>
  • Loading branch information
azbeleva committed Sep 19, 2023
1 parent b4bed8e commit bb42956
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Robot-Framework/resources/ssh_keywords.resource
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,11 @@ Kill process

Verify service status
[Documentation] Check if service is running with given loop ${range}
[Arguments] ${range}=1 ${service}=${EMPTY} ${expected_status}=active ${expected_state}=running
[Arguments] ${range}=1 ${service}=${EMPTY} ${expected_status}=active ${expected_state}=running ${expected_rc}=0
FOR ${i} IN RANGE ${range}
${output}= Execute Command systemctl status ${service}
Log ${output}
${output} ${stderr} ${rc}= Execute Command systemctl status ${service} return_stderr=True return_rc=True
Log stdout: ${output}\nstderr: ${stderr}
Should Not Be Equal As Integers ${rc} 4 Stderr: "${stderr}", Return code
${result}= Get Service Status ${output}
${status} ${state} Get Service Status ${output}
END
Expand Down
12 changes: 11 additions & 1 deletion Robot-Framework/test-suites/bat-tests/netvm.robot
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ Verify NetVM is started
Wifi passthrought into NetVM
[Documentation] Verify that wifi works inside netvm
[Tags] bat SP-T50 nuc orin-agx orin-nx
... test:retry(1)
[Setup] Run Keywords
... Connect to ghaf host AND Connect to netvm via tunnel
... Connect to ghaf host AND Connect to netvm via tunnel AND
... Verify service status service=wpa_supplicant.service
Configure wifi ${netvm} ${SSID} ${wifi_pswd}
Check Network Availability ${netwotk_ip} expected_result=True
Log To Console Switch connection to Ghaf Host
Expand Down Expand Up @@ -64,6 +66,14 @@ NetVM is wiped after restarting
Check file doesn't exist /etc/test.txt
[Teardown] Run Keywords Close tunnel ${ghaf_host} AND Close All Connections

Verify wpa_supplicant.service is running
[Documentation] Verify that wpa_supplicant.service exists and is running
[Tags] bat SP-T82 nuc orin-agx orin-nx
[Setup] Run Keywords
... Connect to ghaf host AND Connect to netvm via tunnel
Switch Connection ${netvm}
Verify service status service=wpa_supplicant.service


*** Keywords ***

Expand Down
1 change: 1 addition & 0 deletions requirements
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ robotframework-advancedlogging==2.0.0
robotframework==5.0.1
PyP100==0.1.2
python-kasa~=0.5.1
robotframework-retryfailed==0.2.0

0 comments on commit bb42956

Please sign in to comment.