From Fedora Project Wiki

No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{header|qa}}
{{header|qa}}
{{QA/Test_Case
{{QA/Test_Case
|description=This testcase checks if multipathd responds with 'fail' for invalid device name. It is reported in fixed bug that multipathd responds with 'ok' for invalid device name.
|description= This testcase checks if multipathd responds with 'fail' for invalid device name. It is reported in fixed bug that multipathd responds with 'ok' for invalid device name.
|actions=
|actions=
Be as specific as required for the target audience.  
1. Ensure the device-mapper-multipath package is installed
# Ensure the device-mapper-multipath package is installed
     Execute: dnf -y install device-mapper device-mapper-multipath
     Execute: {{command|dnf -y install device-mapper device-mapper-multipath}}
     Execute: rpm -qa <nowiki>|</nowiki> grep multipath
     Execute: {{command|rpm -qa | grep multipath}}
2. Execute the following command to generate the configuration file
# Next do this ...
    Execute: mpathconf --enable
# Finally click that
3. Restart multipathd service
# Start here ...
    Execute: service multipathd restart
# Next do this ...
4. multipathd remove invalid device name 'foo'
# Finally click that
    Execute: multipathd remove map foo
5. check whether the return value is 'ok' or 'fail'
|results=
|results=
The following must be true to consider this a successful test run. Be brief ... but explicit.
# multipathd responds with 'fail' for invalid device name.
# Step #1 completes without error
# The system boots into runlevel 5
# Program completes with exit code 0
|optional=Optionally provide hints for exploratory testing.
}}
}}

Latest revision as of 10:35, 29 October 2018

QA.png


Description

This testcase checks if multipathd responds with 'fail' for invalid device name. It is reported in fixed bug that multipathd responds with 'ok' for invalid device name.


How to test

1. Ensure the device-mapper-multipath package is installed

   Execute: dnf -y install device-mapper device-mapper-multipath
   Execute: rpm -qa | grep multipath

2. Execute the following command to generate the configuration file

   Execute: mpathconf --enable

3. Restart multipathd service

   Execute: service multipathd restart

4. multipathd remove invalid device name 'foo'

   Execute: multipathd remove map foo

5. check whether the return value is 'ok' or 'fail'

Expected Results

  1. multipathd responds with 'fail' for invalid device name.