From Fedora Project Wiki

(Created page with "{{QA/Test_Case |description=The test is to make sure that Journal gets written to disk. |setup=This to test in Atomic Image and Base Image. |actions= Be as specific as require...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 6: Line 6:
# ssh into an instance.
# ssh into an instance.
# Next we will reboot the image.
# Next we will reboot the image.
# Now we will find that PID of systemd-journald.
 
# Finally we will check whether journal gets written to disk or not.
<pre>
   $ sudo reboot
   $ sudo reboot
3. Now we will find that PID of systemd-journald.
   $ systemctl show systemd-journald.service -p MainPID
   $ systemctl show systemd-journald.service -p MainPID
4. Finally we will check whether journal gets written to disk or not.
<pre>
   $ sudo ls -l /proc/<MainPID>/fd/ | grep journal
   $ sudo ls -l /proc/<MainPID>/fd/ | grep journal
</pre>
</pre>
Line 19: Line 23:
# Step #2 will reboot the instance.
# Step #2 will reboot the instance.
# Step #3 will return MainPID of journald like this:
# Step #3 will return MainPID of journald like this:
 
}}
   $ systemctl show systemd-journald.service -p MainPID
   $ systemctl show systemd-journald.service -p MainPID
   MainPID=511
   MainPID=511
Line 29: Line 33:
   lrwx------. 1 root root 64 May  5 15:18 14 -> /var/log/journal/91ae08310c634d7b94c8dadfc3a4cd3d/system.journal
   lrwx------. 1 root root 64 May  5 15:18 14 -> /var/log/journal/91ae08310c634d7b94c8dadfc3a4cd3d/system.journal
   lrwx------. 1 root root 64 May  5 15:18 73 -> /var/log/journal/91ae08310c634d7b94c8dadfc3a4cd3d/user-1000.journal
   lrwx------. 1 root root 64 May  5 15:18 73 -> /var/log/journal/91ae08310c634d7b94c8dadfc3a4cd3d/user-1000.journal
</pre>
</pre>
|optional=Optionally provide hints for exploratory testing.
}}

Latest revision as of 10:42, 5 May 2016

Description

The test is to make sure that Journal gets written to disk.

Setup

This to test in Atomic Image and Base Image.

How to test

Be as specific as required for the target audience.

  1. ssh into an instance.
  2. Next we will reboot the image.
 $ sudo reboot

3. Now we will find that PID of systemd-journald.

 $ systemctl show systemd-journald.service -p MainPID

4. Finally we will check whether journal gets written to disk or not.

  $ sudo ls -l /proc/<MainPID>/fd/ | grep journal

Expected Results

The following must be true to consider this a successful test run.

  1. Step #1 You should be able to login to an instance.
  2. Step #2 will reboot the instance.
  3. Step #3 will return MainPID of journald like this:



  $ systemctl show systemd-journald.service -p MainPID
  MainPID=511

4. Step #4 will return the details like this:

   $ sudo ls -l /proc/511/fd/ | grep journal
   lrwx------. 1 root root 64 May  5 15:18 14 -> /var/log/journal/91ae08310c634d7b94c8dadfc3a4cd3d/system.journal
   lrwx------. 1 root root 64 May  5 15:18 73 -> /var/log/journal/91ae08310c634d7b94c8dadfc3a4cd3d/user-1000.journal