os-brick/os_brick/tests
Gorka Eguileor f821a87ef0 Fixing FC scanning
Current FC tries to limit the scanning range by detecting the target and
channel, unfortunately this code has a good number of implementation
issues:

- Matching uses local WWNN instead of target's WWPN.
- Not using a shell to run the command, so the * glob won't expand.
- Not using -l on grep command to list file names instead of contents.
- Not making the search case insensitive.

This patch fixes all these issues by using the target's WWPNs instead
-taking into account FC Zone/Access control information if present- and
supporting both possible connection information formats for the WWPNs
(single value or list of values).

Rescan tests have been modified to adhere to unit tests best practices,
where each test case only tests the specific code in the method under
test and mocks everything else.

Closes-Bug: #1664653
Closes-Bug: #1684996
Closes-Bug: #1687607
Change-Id: Ib539f6a3652bab4399c30cd90f326829e839ec02
(cherry picked from commit 4ee404466d)
2018-12-04 15:06:03 +00:00
..
encryptors Make close on cryptsetup volumes idempotent 2017-12-12 18:27:50 +00:00
initiator Fixing FC scanning 2018-12-04 15:06:03 +00:00
local_dev Using assertIsNone(x) instead of assertEqual(None, x) 2017-03-23 10:57:37 +08:00
privileged Refactor iSCSI connect 2017-06-16 16:09:35 +02:00
remotefs Move vzstorage related code out of RemoteFsClient 2017-03-30 13:53:10 +03:00
windows Refactor iSCSI disconnect 2017-05-31 15:31:20 +02:00
__init__.py renamed the project to os-brick 2015-02-05 23:58:37 +00:00
base.py Merge "Replace assertDictMatch with assertDictEqual" 2016-12-22 17:24:10 +00:00
test_brick.py Removes unnecessary utf-8 encoding 2016-12-22 10:24:40 +07:00
test_exception.py Use six.text_type instead of unicode 2015-04-03 10:22:45 +03:00
test_executor.py iSCSI multipath: improve logging on connect 2017-06-26 20:31:59 +02:00
test_utils.py Mask passwords in utils.trace for func params 2016-11-08 12:55:46 -05:00