mirror of
https://github.com/akuker/RASCSI.git
synced 2024-11-22 16:33:17 +00:00
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 Any ${output} Active: failed Active: inactive 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}
|