new feature (#57320)

This commit is contained in:
Chris Archibald
2019-06-04 10:57:55 -07:00
committed by Jake Jackson
parent 3fadf4a1cb
commit 57b3160f13
2 changed files with 10 additions and 6 deletions

View File

@@ -102,6 +102,7 @@ class TestMyModule(unittest.TestCase):
name = 'test'
type = 'mixed'
vserver = 'ansible_test'
ports = ['a1', 'a2']
else:
hostname = 'hostname'
username = 'username'
@@ -109,13 +110,15 @@ class TestMyModule(unittest.TestCase):
name = 'name'
type = 'mixed'
vserver = 'vserver'
ports = ['a1', 'a2']
return dict({
'hostname': hostname,
'username': username,
'password': password,
'name': name,
'type': type,
'vserver': vserver
'vserver': vserver,
'ports': ports
})
def test_module_fail_when_required_args_missing(self):