mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
Integration tests for Infoblox 2.5 modules (#40344)
* Update nios.py * Update nios.py * Update nios.py * nios lookup errors out when there are no results #37970 Open Indentation failure issue resolved * Returning empty list instead of None In case of no results, res will be returned as an empty list instead of None (implementing ganeshrn comment) * infoblox ipv6 support changes * infoblox ipv6 support changes * for fixing pep8 errors * moving ipaddr check to utils * adding ipv6addr check * increasing space to resolve pep8 error * modified the playbook examples to valid ones * Update nios_network.py * integration tests for nios 2.5 modules * modification done in existing integration nios testcases * dns_view nios module tc * host_record nios module tc * network nios module tc * network_view nios module tc * zone nios module tc * changes to fix shippabe errors for PR 40344 * PR40344 shippable fix * PR40344 shippable fix * PR40344 shippable fix * PR40344 shippable fix * PR40344 shippable fix * PR40344 shippable fix * PR40344 shippable fix * PR40344 shippable fix * PR40344 shippable error fix * 40344 shippable fix * 40344 shippable fix * 40344 shippable fix * 40344 shippable fix * 40344 shippable fix * 40344 shippable fix * PR40344 shippable error fix for block comment should start with '# '
This commit is contained in:
parent
89732a1e5f
commit
fc8663edc0
40 changed files with 905 additions and 4 deletions
|
@ -25,8 +25,9 @@
|
|||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
import os
|
||||
|
||||
|
||||
import os
|
||||
from functools import partial
|
||||
|
||||
from ansible.module_utils.six import iteritems
|
||||
|
@ -39,7 +40,6 @@ try:
|
|||
except ImportError:
|
||||
HAS_INFOBLOX_CLIENT = False
|
||||
|
||||
|
||||
nios_provider_spec = {
|
||||
'host': dict(),
|
||||
'username': dict(),
|
||||
|
@ -167,7 +167,6 @@ class WapiModule(WapiBase):
|
|||
def __init__(self, module):
|
||||
self.module = module
|
||||
provider = module.params['provider']
|
||||
|
||||
try:
|
||||
super(WapiModule, self).__init__(provider)
|
||||
except Exception as exc:
|
||||
|
@ -197,6 +196,7 @@ class WapiModule(WapiBase):
|
|||
|
||||
:returns: a results dict
|
||||
'''
|
||||
|
||||
state = self.module.params['state']
|
||||
if state not in ('present', 'absent'):
|
||||
self.module.fail_json(msg='state must be one of `present`, `absent`, got `%s`' % state)
|
||||
|
@ -300,7 +300,6 @@ class WapiModule(WapiBase):
|
|||
return True
|
||||
|
||||
def compare_objects(self, current_object, proposed_object):
|
||||
|
||||
for key, proposed_item in iteritems(proposed_object):
|
||||
current_item = current_object.get(key)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue