RASCSI/test/robot/Resources/linux_services.resource
akuker 7c5b645c48
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>
2020-09-10 13:06:36 -05:00

31 lines
1.2 KiB
Plaintext

*** 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}