mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Nios integration and unit tests for all remaining nios new modules (#43399)
* new nios module support * new nios module support * new nios module support * new nios module support * new nios module support * new nios module support * new nios module support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * test/integration/targets/nios_naptr_record/tasks/nios_naptr_record_idempotence.yml new nios module integration test support * fix pep8 error * fix pep8 error * adding newline at end * adding newline at end * adding newline at end * adding newline at end * adding newline at end * adding newline at end * adding newline at end * adding newline at end * adding newline at end * adding newline at end * adding newline at end * adding newline at end * adding newline at end * adding newline at end
This commit is contained in:
@@ -47,6 +47,13 @@ NIOS_IPV4_NETWORK = 'network'
|
||||
NIOS_IPV6_NETWORK = 'ipv6network'
|
||||
NIOS_ZONE = 'zone_auth'
|
||||
NIOS_PTR_RECORD = 'record:ptr'
|
||||
NIOS_A_RECORD = 'record:a'
|
||||
NIOS_AAAA_RECORD = 'record:aaaa'
|
||||
NIOS_CNAME_RECORD = 'record:cname'
|
||||
NIOS_MX_RECORD = 'record:mx'
|
||||
NIOS_SRV_RECORD = 'record:srv'
|
||||
NIOS_NAPTR_RECORD = 'record:naptr'
|
||||
NIOS_TXT_RECORD = 'record:txt'
|
||||
|
||||
|
||||
NIOS_PROVIDER_SPEC = {
|
||||
|
||||
@@ -109,6 +109,7 @@ RETURN = ''' # '''
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
from ansible.module_utils.six import iteritems
|
||||
from ansible.module_utils.net_tools.nios.api import WapiModule
|
||||
from ansible.module_utils.net_tools.nios.api import NIOS_A_RECORD
|
||||
|
||||
|
||||
def main():
|
||||
@@ -139,7 +140,7 @@ def main():
|
||||
supports_check_mode=True)
|
||||
|
||||
wapi = WapiModule(module)
|
||||
result = wapi.run('record:a', ib_spec)
|
||||
result = wapi.run(NIOS_A_RECORD, ib_spec)
|
||||
|
||||
module.exit_json(**result)
|
||||
|
||||
|
||||
@@ -109,6 +109,7 @@ RETURN = ''' # '''
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
from ansible.module_utils.six import iteritems
|
||||
from ansible.module_utils.net_tools.nios.api import WapiModule
|
||||
from ansible.module_utils.net_tools.nios.api import NIOS_AAAA_RECORD
|
||||
|
||||
|
||||
def main():
|
||||
@@ -139,7 +140,7 @@ def main():
|
||||
supports_check_mode=True)
|
||||
|
||||
wapi = WapiModule(module)
|
||||
result = wapi.run('record:aaaa', ib_spec)
|
||||
result = wapi.run(NIOS_AAAA_RECORD, ib_spec)
|
||||
|
||||
module.exit_json(**result)
|
||||
|
||||
|
||||
@@ -109,6 +109,7 @@ RETURN = ''' # '''
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
from ansible.module_utils.six import iteritems
|
||||
from ansible.module_utils.net_tools.nios.api import WapiModule
|
||||
from ansible.module_utils.net_tools.nios.api import NIOS_CNAME_RECORD
|
||||
|
||||
|
||||
def main():
|
||||
@@ -139,7 +140,7 @@ def main():
|
||||
supports_check_mode=True)
|
||||
|
||||
wapi = WapiModule(module)
|
||||
result = wapi.run('record:cname', ib_spec)
|
||||
result = wapi.run(NIOS_CNAME_RECORD, ib_spec)
|
||||
|
||||
module.exit_json(**result)
|
||||
|
||||
|
||||
@@ -116,6 +116,7 @@ RETURN = ''' # '''
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
from ansible.module_utils.six import iteritems
|
||||
from ansible.module_utils.net_tools.nios.api import WapiModule
|
||||
from ansible.module_utils.net_tools.nios.api import NIOS_MX_RECORD
|
||||
|
||||
|
||||
def main():
|
||||
@@ -147,7 +148,7 @@ def main():
|
||||
supports_check_mode=True)
|
||||
|
||||
wapi = WapiModule(module)
|
||||
result = wapi.run('record:mx', ib_spec)
|
||||
result = wapi.run(NIOS_MX_RECORD, ib_spec)
|
||||
|
||||
module.exit_json(**result)
|
||||
|
||||
|
||||
@@ -128,6 +128,7 @@ RETURN = ''' # '''
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
from ansible.module_utils.six import iteritems
|
||||
from ansible.module_utils.net_tools.nios.api import WapiModule
|
||||
from ansible.module_utils.net_tools.nios.api import NIOS_SRV_RECORD
|
||||
|
||||
|
||||
def main():
|
||||
@@ -161,7 +162,7 @@ def main():
|
||||
supports_check_mode=True)
|
||||
|
||||
wapi = WapiModule(module)
|
||||
result = wapi.run('record:srv', ib_spec)
|
||||
result = wapi.run(NIOS_SRV_RECORD, ib_spec)
|
||||
|
||||
module.exit_json(**result)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user