mirror of
https://github.com/thewesker/RASCSI.git
synced 2025-12-21 04:41:12 -05:00
Created an initial suite of tests to make sure that the RaSCSI is working properly (#33)
* First cut of very simple robot tests * Remove log files and change test to use rascsi host name instead of hard-coded IP * Added more keywords * Added tests to check the reported SCSI vendor, revision, model and type * Moved the Linux (host) utilities to a different file * Added cdrom tests * Added cdrom tests * Finished up cd-rom tests. All tests pass, except for Anex86 drive Co-authored-by: akuker <akuker@gmail.com>
This commit is contained in:
30
test/robot/Resources/linux_services.resource
Normal file
30
test/robot/Resources/linux_services.resource
Normal file
@@ -0,0 +1,30 @@
|
||||
|
||||
*** Settings ***
|
||||
Library SSHLibrary
|
||||
Library String
|
||||
|
||||
*** Variables ***
|
||||
#${Rascsi_Password} raspberry
|
||||
|
||||
*** Keywords ***
|
||||
The ${service_name} Service Should be Running
|
||||
${lc_service_name}= Convert To Lower Case ${service_name}
|
||||
${output}= Execute Command systemctl status ${lc_service_name}
|
||||
Should Contain ${output} Active: active (running) ignore_case=True
|
||||
|
||||
The ${service_name} Service Should be Stopped
|
||||
${lc_service_name}= Convert To Lower Case ${service_name}
|
||||
${output}= Execute Command systemctl status ${lc_service_name}
|
||||
Should Contain ${output} Active: failed ignore_case=True
|
||||
|
||||
The ${service_name} Service is Stopped
|
||||
${lc_service_name}= Convert To Lower Case ${service_name}
|
||||
Execute Command systemctl stop ${lc_service_name} sudo=True sudo_password=${Rascsi_Password}
|
||||
|
||||
The ${service_name} Service is Restarted
|
||||
${lc_service_name}= Convert To Lower Case ${service_name}
|
||||
Execute Command systemctl restart ${lc_service_name} sudo=True sudo_password=${Rascsi_Password}
|
||||
|
||||
The ${service_name} Service is Started
|
||||
${lc_service_name}= Convert To Lower Case ${service_name}
|
||||
Execute Command systemctl start ${lc_service_name} sudo=True sudo_password=${Rascsi_Password}
|
||||
Reference in New Issue
Block a user