mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
* Fixes #35468: ADD max_results to the nios api * Fixes #35468: fix nios unittest * Fixes #35468: document the module docs fragments for nios
This commit is contained in:
parent
c282e4e00f
commit
287f3a609e
3 changed files with 12 additions and 2 deletions
|
@ -50,7 +50,8 @@ nios_provider_spec = {
|
||||||
'http_pool_connections': dict(type='int', default=10),
|
'http_pool_connections': dict(type='int', default=10),
|
||||||
'http_pool_maxsize': dict(type='int', default=10),
|
'http_pool_maxsize': dict(type='int', default=10),
|
||||||
'max_retries': dict(type='int', default=3),
|
'max_retries': dict(type='int', default=3),
|
||||||
'wapi_version': dict(default='1.4')
|
'wapi_version': dict(default='1.4'),
|
||||||
|
'max_results': dict(type='int', default=1000)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -76,6 +76,15 @@ options:
|
||||||
variable.
|
variable.
|
||||||
required: false
|
required: false
|
||||||
default: 1.4
|
default: 1.4
|
||||||
|
max_results:
|
||||||
|
description:
|
||||||
|
- Specifies the maximum number of objects to be returned,
|
||||||
|
if set to a negative number the appliance will return an error when the
|
||||||
|
number of returned objects would exceed the setting.
|
||||||
|
- Value can also be specified using C(INFOBLOX_MAX_RESULTS) environment
|
||||||
|
variable.
|
||||||
|
required: false
|
||||||
|
default: 1000
|
||||||
notes:
|
notes:
|
||||||
- "This module must be run locally, which can be achieved by specifying C(connection: local)."
|
- "This module must be run locally, which can be achieved by specifying C(connection: local)."
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -32,7 +32,7 @@ class TestNiosApi(unittest.TestCase):
|
||||||
def test_get_provider_spec(self):
|
def test_get_provider_spec(self):
|
||||||
provider_options = ['host', 'username', 'password', 'ssl_verify', 'silent_ssl_warnings',
|
provider_options = ['host', 'username', 'password', 'ssl_verify', 'silent_ssl_warnings',
|
||||||
'http_request_timeout', 'http_pool_connections',
|
'http_request_timeout', 'http_pool_connections',
|
||||||
'http_pool_maxsize', 'max_retries', 'wapi_version']
|
'http_pool_maxsize', 'max_retries', 'wapi_version', 'max_results']
|
||||||
res = api.WapiBase.provider_spec
|
res = api.WapiBase.provider_spec
|
||||||
self.assertIsNotNone(res)
|
self.assertIsNotNone(res)
|
||||||
self.assertIn('provider', res)
|
self.assertIn('provider', res)
|
||||||
|
|
Loading…
Reference in a new issue