ansible/test/integration
Ricardo Carrillo Cruz 64add28657 Platform agnostic net_system module (#24953)
* Platform agnostic net_system module

Also refactor the action network plugins for better code re-use

Still more refactoring to do once the connection plugin work is complete

* Replace importlib for imp

importlib is not available on 2.6, so we need to stick to imp

* Load action plugin via module metadata

* Better error message if no implementation is found

Now the plugin will show the module name and the network OS in the
error message

* Fix typo on documentation author line

* Fix pep8 issues

* Add missing options key on doc string and stringify version

* Return None in case module has no metadata

* Read module metadata only if it's a python module

Check for module suffix, if it's .py then read metadata.
Otherwise this fails on non-python modules, like Windows PS for example.

* Read metadata variable only if it's a python module

Fix referencing a variable before assignment

* Add action_handler to validate_modules metadata schema

* Pull metadata with plugin_docs get_docstring

Using load_source from PluginLoader is troublesome, it is not guaranteed
a module may be importable at the controller, e.g. if a module depends
on module_utils functions it won't work, because module_utils is not
in the sys path.
Rather than putting that module dependencies introspection, just
use plain parsing like plugin_docs get_docstring does as we only care
about reading ANSIBLE_METADATA.

* Add platform agnostic group of groups for integration tests

This will be the target for platform agnostic integration tests.

* Add integration tests for net_system

* Switch to action plugin inheritance from metadata driven action handler

As the metadata action driven action handler work is being worked on
on its standalone proposal+PR, let's just go back to have one
action handler per platform agnostic module.
Those action plugins will inherit from net_base.

* Add blank line to fix pep8

* Add aliases file to net_system integration test

This will avoid CI failure

* Fix integration tests for net_system

* Give more precedence to task network_os over inventory network_os
2017-06-02 14:06:38 +02:00
..
group_vars Run vyos_command Network tests in Shippable (#24514) 2017-05-12 12:49:12 +01:00
host_vars
roles Ensure exit_json returns failed = False 2017-05-30 14:56:31 -07:00
targets Platform agnostic net_system module (#24953) 2017-06-02 14:06:38 +02:00
vars
amazon.yml
asa.yaml
azure.yml
cleanup_azure.py test/: PEP8 compliancy (#24803) 2017-05-30 18:05:19 +01:00
cleanup_ec2.py test/: PEP8 compliancy (#24803) 2017-05-30 18:05:19 +01:00
cleanup_gce.py test/: PEP8 compliancy (#24803) 2017-05-30 18:05:19 +01:00
cleanup_rax.py test/: PEP8 compliancy (#24803) 2017-05-30 18:05:19 +01:00
cloud-config-aws.yml.template Add support for cloud tests to ansible-test. (#24315) 2017-05-05 16:23:00 +08:00
cloud-config-cs.ini.template Add support for cloud tests to ansible-test. (#24315) 2017-05-05 16:23:00 +08:00
cloudflare.yml
cloudscale.yml
cnos.yaml
consul.yml
consul_inventory.yml
consul_running.py
credentials.template Fixes for EC2 module integration tests. 2017-05-03 22:40:08 +08:00
dellos6.yaml
dellos9.yaml
dellos10.yaml
destructive.yml
eos.yaml Test eos_banner (#22201) 2017-03-10 15:20:09 +00:00
exoscale.yml
galaxy_playbook.yml
galaxy_playbook_git.yml
galaxy_roles.yml
galaxy_rolesfile
gce.yml [GCP] Global Load Balancer Integration Test (#24704) 2017-05-18 14:00:51 -04:00
gce_credentials.py test/: PEP8 compliancy (#24803) 2017-05-30 18:05:19 +01:00
integration_config.yml
inventory Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
inventory.network Platform agnostic net_system module (#24953) 2017-06-02 14:06:38 +02:00
inventory.networking.template Increase python version coverage for tests. (#24762) 2017-05-19 01:37:53 +08:00
inventory.remote.template
inventory.winrm.template Increase python version coverage for tests. (#24762) 2017-05-19 01:37:53 +08:00
ios.yaml Add ios_banner module (#22687) 2017-03-16 16:35:44 +01:00
iosxr.yaml Test system (#22420) 2017-03-08 12:21:45 -07:00
jenkins.yml
junos.yaml Add junos integration test (#24404) 2017-05-09 18:41:48 +05:30
Makefile automated integration tests for cloudstack (#20552) 2017-05-09 11:32:11 +08:00
net_command.yml
network-all.yaml
non_destructive.yml
nxos.yaml Add nxos_interface integration testing (#23030) 2017-03-29 11:01:38 +02:00
ops.yaml
platform_agnostic.yaml Platform agnostic net_system module (#24953) 2017-06-02 14:06:38 +02:00
rackspace.yml
setup_gce.py test/: PEP8 compliancy (#24803) 2017-05-30 18:05:19 +01:00
target-prefixes.network
test_win_group1.yml
test_win_group2.yml Revert "win_service_stat: Added module" (#22184) 2017-03-02 01:34:11 -08:00
test_win_group3.yml
vyos.yaml