summaryrefslogtreecommitdiff
path: root/nova/tests/functional/regressions
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2021-08-20 15:25:07 +0000
committerGerrit Code Review <review@openstack.org>2021-08-20 15:25:07 +0000
commitfa7f717125c62ca8e34ea000fa8835ff744c54ff (patch)
treedcb94b4c8ba6ddb8dc377929ca1459fc68d7152a /nova/tests/functional/regressions
parent06b148d5a888b64858119891828693b2fa65f02b (diff)
parentce128798f54d1c0ee7ab09b8189eda93830cd69b (diff)
downloadnova-fa7f717125c62ca8e34ea000fa8835ff744c54ff.tar.gz
Merge "fup: Mock all unix connectors in os-brick fixture"
Diffstat (limited to 'nova/tests/functional/regressions')
-rw-r--r--nova/tests/functional/regressions/test_bug_1939545.py14
1 files changed, 1 insertions, 13 deletions
diff --git a/nova/tests/functional/regressions/test_bug_1939545.py b/nova/tests/functional/regressions/test_bug_1939545.py
index 6719713819..28fa0f47d2 100644
--- a/nova/tests/functional/regressions/test_bug_1939545.py
+++ b/nova/tests/functional/regressions/test_bug_1939545.py
@@ -13,7 +13,6 @@
# under the License.
import fixtures
-import mock
from oslo_serialization import jsonutils
@@ -69,21 +68,10 @@ class TestLiveMigrateUpdateDevicePath(
dom = conn.lookupByUUIDString(self.server['id'])
dom.complete_job()
- # TODO(lyarwood): Move this into the os-brick fixture and repeat for all
- # provided connectors at runtime.
- @mock.patch(
- 'os_brick.initiator.connectors.iscsi.ISCSIConnector.connect_volume')
- @mock.patch(
- 'os_brick.initiator.connectors.iscsi.ISCSIConnector.disconnect_volume')
- def test_live_migrate_update_device_path(
- self, mock_disconnect_volume, mock_connect_volume
- ):
+ def test_live_migrate_update_device_path(self):
self.server = self._create_server(host='src', networks='none')
volume_id = self.cinder.ISCSI_BACKED_VOL
- # TODO(lyarwood): As above, move this into the os-brick fixture.
- mock_connect_volume.return_value = {'path': '/dev/sda'}
-
self.api.post_server_volume(
self.server['id'], {'volumeAttachment': {'volumeId': volume_id}})