From Fedora Project Wiki
(create a service manipulation validation test case) |
(associated release criterion) |
||
Line 1: | Line 1: | ||
{{Template:Associated_release_criterion|Alpha|system-service-manipulation}} | |||
{{QA/Test_Case | {{QA/Test_Case | ||
|description=This test case tests whether starting, stopping, enabling and disabling system services works as expected. | |description=This test case tests whether starting, stopping, enabling and disabling system services works as expected. |
Revision as of 00:49, 9 July 2014
Description
This test case tests whether starting, stopping, enabling and disabling system services works as expected.
Setup
- Perform an installation of the Fedora release you wish to test, making as few choices as possible and making the most obvious and simple choices where choice is required
How to test
- Log in to the installed system
- In a console, run the following commands:
su -c 'systemctl stop sshd.service'
su -c 'systemctl disable sshd.service'
- Now reboot. Log in again, and run the following commands:
su -c 'systemctl status sshd.service'
ps aux | grep sshd
su -c 'systemctl start sshd.service'
su -c 'systemctl status sshd.service'
ps aux | grep sshd
su -c 'systemctl stop sshd.service'
su -c 'systemctl status sshd.service'
ps aux | grep sshd
su -c 'systemctl enable sshd.service'
- Now reboot. Log in again, and run the following commands:
su -c 'systemctl status sshd.service'
ps aux | grep sshd
su -c 'systemctl disable sshd.service'
- Now reboot. Log in again, and run the following commands:
su -c 'systemctl status sshd.service'
ps aux | grep sshd
Expected Results
- Each time they appear, the commands
su -c 'systemctl status sshd.service'
andps aux | grep sshd
check whether the service is running. The expected results, in order, are:- Disabled and inactive (not running)
- Disabled but active (running)
- Disabled and inactive (not running)
- Enabled and active (running)
- Disabled and inactive (not running)