returning invalid security (#58595)

pull/58898/head
Chris Archibald 5 years ago committed by Jake Jackson
parent 9e67953b2e
commit 8731fc7a86

@ -177,7 +177,7 @@ class NetAppONTAPGatherFacts(object):
'kwargs': { 'kwargs': {
'call': 'security-login-get-iter', 'call': 'security-login-get-iter',
'attribute': 'security-login-account-info', 'attribute': 'security-login-account-info',
'field': ('user-name', 'application', 'authentication-method'), 'field': ('vserver', 'user-name', 'application', 'authentication-method'),
'query': {'max-records': '1024'}, 'query': {'max-records': '1024'},
}, },
'min_version': '0', 'min_version': '0',

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

Loading…
Cancel
Save