mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Allow comment for na_ontap_svm (#52300)
* Revert "changes to clusteR" This reverts commit 33ee1b71e4bc8435fb315762a871f8c4cb6c5f80. * updates * doc changes * Revert "Revert "changes to clusteR"" This reverts commit 8e56b999e6cf6a65de339e516f7134a6b6b39cba.
This commit is contained in:
committed by
John R Barker
parent
8d7efa7d32
commit
baf255e4c1
@@ -17,7 +17,7 @@ from ansible.modules.storage.netapp.na_ontap_svm \
|
||||
import NetAppOntapSVM as svm_module # module under test
|
||||
|
||||
if not netapp_utils.has_netapp_lib():
|
||||
pytestmark = pytest.skip('skipping as missing required netapp_lib')
|
||||
pytestmark = pytest.mark.skip('skipping as missing required netapp_lib')
|
||||
|
||||
|
||||
def set_module_args(args):
|
||||
@@ -77,6 +77,7 @@ class MockONTAPConnection(object):
|
||||
'root-volume': vserver['root_volume'],
|
||||
'root-volume-aggregate': vserver['root_volume_aggregate'],
|
||||
'language': vserver['language'],
|
||||
'comment': vserver['comment'],
|
||||
'snapshot-policy': vserver['snapshot_policy'],
|
||||
'vserver-subtype': vserver['subtype'],
|
||||
'allowed-protocols': [{'protocol': 'nfs'}, {'protocol': 'cifs'}],
|
||||
@@ -103,7 +104,8 @@ class TestMyModule(unittest.TestCase):
|
||||
'ipspace': 'ansible_ipspace',
|
||||
'subtype': 'default',
|
||||
'language': 'c.utf_8',
|
||||
'snapshot_policy': 'old_snapshot_policy'
|
||||
'snapshot_policy': 'old_snapshot_policy',
|
||||
'comment': 'this is a comment'
|
||||
}
|
||||
|
||||
def mock_args(self):
|
||||
@@ -112,6 +114,7 @@ class TestMyModule(unittest.TestCase):
|
||||
'root_volume': self.mock_vserver['root_volume'],
|
||||
'root_volume_aggregate': self.mock_vserver['root_volume_aggregate'],
|
||||
'ipspace': self.mock_vserver['ipspace'],
|
||||
'comment': self.mock_vserver['comment'],
|
||||
'subtype': 'default',
|
||||
'hostname': 'test',
|
||||
'username': 'test_user',
|
||||
|
||||
Reference in New Issue
Block a user