|
|
|
@ -9,7 +9,7 @@ import pytest
|
|
|
|
|
import sys
|
|
|
|
|
|
|
|
|
|
from units.compat import unittest
|
|
|
|
|
from units.compat.mock import patch
|
|
|
|
|
from units.compat.mock import patch, Mock
|
|
|
|
|
from ansible.module_utils import basic
|
|
|
|
|
from ansible.module_utils._text import to_bytes
|
|
|
|
|
import ansible.module_utils.netapp as netapp_utils
|
|
|
|
@ -64,7 +64,6 @@ class MockONTAPConnection(object):
|
|
|
|
|
def invoke_successfully(self, xml, enable_tunneling): # pylint: disable=unused-argument
|
|
|
|
|
''' mock invoke_successfully returning xml data '''
|
|
|
|
|
self.xml_in = xml
|
|
|
|
|
print(xml.to_string())
|
|
|
|
|
if self.type == 'vserver':
|
|
|
|
|
xml = self.build_vserver_info()
|
|
|
|
|
elif self.type == 'net_port':
|
|
|
|
|