File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
python/cinder-understack/cinder_understack/tests Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 4
4
5
5
from cinder .tests .unit import test
6
6
from cinder .tests .unit .volume .drivers .netapp import fakes as na_fakes
7
+ from cinder .volume .drivers .netapp .dataontap .nvme_library import NetAppNVMeStorageLibrary
7
8
8
9
from cinder_understack import dynamic_netapp_driver
9
10
@@ -24,7 +25,11 @@ def setUp(self):
24
25
25
26
def get_config_base (self ):
26
27
"""Get base configuration for testing."""
27
- return na_fakes .create_configuration ()
28
+ cfg = na_fakes .create_configuration ()
29
+ cfg .netapp_login = "fake_user"
30
+ cfg .netapp_password = "fake_pass" # noqa: S105
31
+ cfg .netapp_server_hostname = "127.0.0.1"
32
+ return cfg
28
33
29
34
def test_driver_has_correct_attributes (self ):
30
35
"""Test that driver has expected attributes."""
@@ -37,10 +42,6 @@ def test_driver_has_library_instance(self):
37
42
38
43
def test_library_inherits_from_netapp_library (self ):
39
44
"""Test that library inherits from NetApp NVMe library."""
40
- from cinder .volume .drivers .netapp .dataontap .nvme_library import (
41
- NetAppNVMeStorageLibrary ,
42
- )
43
-
44
45
self .assertIsInstance (self .library , NetAppNVMeStorageLibrary )
45
46
46
47
@mock .patch .object (dynamic_netapp_driver .NetappDynamicLibrary , "do_setup" )
You can’t perform that action at this time.
0 commit comments