mirror of
https://github.com/akuker/RASCSI.git
synced 2024-11-27 04:49:18 +00:00
7c5b645c48
* 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>
31 lines
1.2 KiB
Plaintext
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}
|