You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
9 years ago
..
group_vars Run vyos_command Network tests in Shippable (#24514) 9 years ago
host_vars breaks testing in non virtual envs, since env var can be used in those 10 years ago
roles Ensure exit_json returns failed = False 9 years ago
targets Platform agnostic net_system module (#24953) 9 years ago
vars Split integration tests out from Makefile. (#17976) 9 years ago
Makefile automated integration tests for cloudstack (#20552) 9 years ago
amazon.yml Adding support for Amazon ECR (#19306) 9 years ago
asa.yaml Migrate Network Tests into ansible/ansible (#18233) 9 years ago
azure.yml add azure integration tests 11 years ago
cleanup_azure.py test/: PEP8 compliancy (#24803) 9 years ago
cleanup_ec2.py test/: PEP8 compliancy (#24803) 9 years ago
cleanup_gce.py test/: PEP8 compliancy (#24803) 9 years ago
cleanup_rax.py test/: PEP8 compliancy (#24803) 9 years ago
cloud-config-aws.yml.template Add support for cloud tests to ansible-test. (#24315) 9 years ago
cloud-config-cs.ini.template Add support for cloud tests to ansible-test. (#24315) 9 years ago
cloudflare.yml Fix cosmetic problems in YAML source 9 years ago
cloudscale.yml new module cloudscale_server (#20175) 9 years ago
cnos.yaml New module: cnos_vlan and various utility files (#21107) 9 years ago
consul.yml Initial commit of Ansible support for the Consul clustering framework (http://consul.io). 11 years ago
consul_inventory.yml Initial commit of Ansible support for the Consul clustering framework (http://consul.io). 11 years ago
consul_running.py Support print() function in test/ 10 years ago
credentials.template Fixes for EC2 module integration tests. 9 years ago
dellos6.yaml Migrate Network Tests into ansible/ansible (#18233) 9 years ago
dellos9.yaml Migrate Network Tests into ansible/ansible (#18233) 9 years ago
dellos10.yaml Migrate Network Tests into ansible/ansible (#18233) 9 years ago
destructive.yml Fix locale_gen to compare native strings rather than mixing byte and text strings 9 years ago
eos.yaml Test eos_banner (#22201) 9 years ago
exoscale.yml exo_dns: new module utils and integration tests for exoscale DNS (#17230) 9 years ago
galaxy_playbook.yml Allow installation of roles from yaml roles file 12 years ago
galaxy_playbook_git.yml [hotfix] add missed playbook file 10 years ago
galaxy_roles.yml Fix cosmetic problems in YAML source 9 years ago
galaxy_rolesfile Add tests for #10620 10 years ago
gce.yml [GCP] Global Load Balancer Integration Test (#24704) 9 years ago
gce_credentials.py test/: PEP8 compliancy (#24803) 9 years ago
integration_config.yml Fix cosmetic problems in YAML source 9 years ago
inventory Facts Refresh (2.4 roadmap) (#23012) 9 years ago
inventory.network Platform agnostic net_system module (#24953) 9 years ago
inventory.networking.template Increase python version coverage for tests. (#24762) 9 years ago
inventory.remote.template Add support for OS X CI on Shippable. (#17160) 9 years ago
inventory.winrm.template Increase python version coverage for tests. (#24762) 9 years ago
ios.yaml Add ios_banner module (#22687) 9 years ago
iosxr.yaml Test system (#22420) 9 years ago
jenkins.yml jenkins_job: add integration tests (#17499) 9 years ago
junos.yaml Add junos integration test (#24404) 9 years ago
net_command.yml Add files via upload (#21062) 9 years ago
network-all.yaml Ops (#18652) 9 years ago
non_destructive.yml known_hosts: support --diff (#20349) 9 years ago
nxos.yaml Add nxos_interface integration testing (#23030) 9 years ago
ops.yaml Ops (#18652) 9 years ago
platform_agnostic.yaml Platform agnostic net_system module (#24953) 9 years ago
rackspace.yml Add tests for rax_scaling_group 11 years ago
setup_gce.py test/: PEP8 compliancy (#24803) 9 years ago
target-prefixes.network ops not openswitch (#18256) 9 years ago
test_win_group1.yml Migrate Windows CI roles to test targets. (#18005) 9 years ago
test_win_group2.yml Revert "win_service_stat: Added module" (#22184) 9 years ago
test_win_group3.yml Added win_region module (#19147) 9 years ago
vyos.yaml Migrate Network Tests into ansible/ansible (#18233) 9 years ago