test_connect_volume fails
Bug #1514611 reported by
Walt Boring
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-brick |
Fix Released
|
Low
|
Walt Boring |
Bug Description
When the unit tests are run on a system that has a live /dev/disk/by-path some of the tests fail.
They currently are decorated with a @testtools.
which causes them to not run on most systems.
The expected_commands that are tested in _test_connect_
The fix is simply to remove the 2 rescan commands that only happen when the brick connector is configured with multipath=True
Changed in os-brick: | |
status: | New → In Progress |
Changed in os-brick: | |
importance: | Undecided → Low |
Changed in os-brick: | |
milestone: | none → 0.6.0 |
Changed in os-brick: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/243338 /git.openstack. org/cgit/ openstack/ os-brick/ commit/ ?id=62b01e9b813 7419e2c80ec808a f9a36ce8840277
Committed: https:/
Submitter: Jenkins
Branch: master
commit 62b01e9b8137419 e2c80ec808af9a3 6ce8840277
Author: Walter A. Boring IV <email address hidden>
Date: Mon Nov 9 13:53:53 2015 -0800
Fix test_connect_volume when skip is bypassed
If you run the unit tests with a live /dev/disk/by-path volume had assumed the multipath set of
on the system, the tests fall through the skipUnless
decorators. This exposed some failures in the expected
commands, which were incorrect. The expected commands
in _test_connect_
commands which included a rescan.
This patch removes the rescan expected tests, as those
are only run for multipath related attaches.
Closes-Bug: #1514611 df2f190f77b6ba4 cea0bc31b31
Change-Id: If2e77af2a63c33