From Fedora Project Wiki

Revision as of 02:47, 8 July 2014 by Adamwill (talk | contribs) (create a service manipulation validation test case)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

This test case tests whether starting, stopping, enabling and disabling system services works as expected.

Setup

  1. 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

  1. Log in to the installed system
  2. In a console, run the following commands:
    su -c 'systemctl stop sshd.service'
    su -c 'systemctl disable sshd.service'
  3. 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'
  4. 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'
  5. Now reboot. Log in again, and run the following commands:
    su -c 'systemctl status sshd.service'
    ps aux | grep sshd

Expected Results

  1. Each time they appear, the commands su -c 'systemctl status sshd.service' and ps 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)