From Fedora Project Wiki
No edit summary |
m (Roshi moved page User:Roshi/drafts/Testcase base system logging to User:Roshi/QA/Testcase base system logging: basic organization.) |
||
(One intermediate revision by the same user not shown) | |||
Line 15: | Line 15: | ||
## {{command| su -c 'journalctl -a'}} | ## {{command| su -c 'journalctl -a'}} | ||
## {{command| su -c 'tail /var/log/secure'}} | ## {{command| su -c 'tail /var/log/secure'}} | ||
{{admon/note | '''Note:''' | If testing a cloud image, use 'sudo' instead of 'su -c'}} | |||
|results= | |results= |
Latest revision as of 15:45, 15 July 2014
Description
This test case tests if system logging infrastructure is available and working as expected.
Setup
- Install Fedora using one of the following methods (configure an administrator account during installation):
- Boot ISO: QA/TestCases/InstallSourceBootIso
- DVD: QA/TestCases/InstallSourceDvd
- Live Image: QA:TestCases/Install_Source_Live_Image
- Cloud: Launch an instance in a cloud provider (the default 'fedora' user is already an admin user)
- If necessary, reboot your system after the installation.
How to test
- If you are using a graphical environment, open a terminal window.
- Check if system logging facility is working (
tail
can be replaced withless
in the following):su -c 'journalctl -a'
su -c 'tail /var/log/secure'
Expected Results
- Log files should not be empty.
- The last entries in logs should correspond to the current date and time.