1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/tests/integration/targets
Eric Belhomme 695eed943b
add etcd3 lookup plugin (#127)
* add etcd3 lookup plugin

* retire version_added tag

Co-Authored-By: Felix Fontein <felix@fontein.de>

* typo fixes

Co-Authored-By: Felix Fontein <felix@fontein.de>

* fix YAML syntax in example

Co-Authored-By: Felix Fontein <felix@fontein.de>

* typo fixes

Co-Authored-By: Felix Fontein <felix@fontein.de>

* remove python shebang as it is useless in Ansible lookup module

Co-Authored-By: Felix Fontein <felix@fontein.de>

* Update plugins/lookup/etcd3.py typo

Co-Authored-By: Felix Fontein <felix@fontein.de>

* fixes:
- replaced LookupBase._display by ansible.utils.display.Display
- add regex to retrieve host and port from ETCDCTL_ENDPOINTS env
- add env support for user, password, timeout

* fixes:
- use short form for types
- update doc section with envs
- catch exceptions between etcd3 api calls

* etcd3 lookup pass ansible sanity checks
introduce ansible integration tests for etcd3 lookup

* extract etcd3 setup from existing etcd3 module integration test

* fix etcd3 module/lookup integration tests

* fixes:
- fix port option in docstring
- raise connecttion error
- fix display format issues
- fix ETCDCTL_ENDPOINTS regex
adds:
- basic unit tests

* fix sanity issues

* add etcd3 lookup plugin

* retire version_added tag

Co-Authored-By: Felix Fontein <felix@fontein.de>

* typo fixes

Co-Authored-By: Felix Fontein <felix@fontein.de>

* fix YAML syntax in example

Co-Authored-By: Felix Fontein <felix@fontein.de>

* typo fixes

Co-Authored-By: Felix Fontein <felix@fontein.de>

* remove python shebang as it is useless in Ansible lookup module

Co-Authored-By: Felix Fontein <felix@fontein.de>

* Update plugins/lookup/etcd3.py typo

Co-Authored-By: Felix Fontein <felix@fontein.de>

* fixes:
- replaced LookupBase._display by ansible.utils.display.Display
- add regex to retrieve host and port from ETCDCTL_ENDPOINTS env
- add env support for user, password, timeout

* fixes:
- use short form for types
- update doc section with envs
- catch exceptions between etcd3 api calls

* etcd3 lookup pass ansible sanity checks
introduce ansible integration tests for etcd3 lookup

* extract etcd3 setup from existing etcd3 module integration test

* fix etcd3 module/lookup integration tests

* fixes:
- fix port option in docstring
- raise connecttion error
- fix display format issues
- fix ETCDCTL_ENDPOINTS regex
adds:
- basic unit tests

* fix sanity issues

* changes:
- replace kwargs lookups with get_option()
- add 'entpoint' option for correct handling of ETCDCTL_ENDPOINTS env
- code simplification

* fix etcd3 lookup unit test:
replace LookupModule instanciation with lookup_loader

* fix sanity checks

* etcd3 changes:
- docstring documentation fixes/updates
- create etcd3 cnx object with a get_option() loop instead of copying 'private' class object
- set 'endpoints' option mutually exclusive with 'host' and 'port' (raises an AnsibleError exception)

* etcd3 changes:
- added ANSIBLE_METADATA,
- added default value for 'endpoints' option,
- removed defaults for options 'host' and 'port',
- fixed docstring links,
- added 'notes' and 'seealso' sections in doctring
- updated options code handling to reflect docstring's updates

* etcd3 changes:
- fix descriptions for endpoints, host, and port options
- update notes sections
- fix reference to etcd lookup plugin in seealso section
- fix return docstring
- remove useless logging
- obfuscates password in connection logging

* more pythonic lookup on dict keys

Co-Authored-By: Felix Fontein <felix@fontein.de>

* Update password obfuscation

Co-Authored-By: Felix Fontein <felix@fontein.de>

Co-authored-by: Felix Fontein <felix@fontein.de>
2020-04-25 10:58:06 +02:00
..
aix_devices Initial commit 2020-03-09 09:11:07 +00:00
aix_filesystem Initial commit 2020-03-09 09:11:07 +00:00
alternatives Initial commit 2020-03-09 09:11:07 +00:00
apache2_module Fix more tests (#66) 2020-03-30 11:06:48 +02:00
archive Fix more tests (#66) 2020-03-30 11:06:48 +02:00
callback_log_plays Shippable: community/general (#12) 2020-03-17 08:59:17 +00:00
cloud_init_data_facts Fix even more tests (#69) 2020-03-30 08:24:27 +01:00
cloudscale_common Fix more tests (#66) 2020-03-30 11:06:48 +02:00
cloudscale_floating_ip Initial commit 2020-03-09 09:11:07 +00:00
cloudscale_server Initial commit 2020-03-09 09:11:07 +00:00
cloudscale_server_group Initial commit 2020-03-09 09:11:07 +00:00
cloudscale_volume Initial commit 2020-03-09 09:11:07 +00:00
connection Initial commit 2020-03-09 09:11:07 +00:00
connection_chroot Fix even more tests (#69) 2020-03-30 08:24:27 +01:00
connection_docker Fix FQCRs. (#64) 2020-03-29 13:02:28 +02:00
connection_jail Fix FQCRs. (#64) 2020-03-29 13:02:28 +02:00
connection_lxc Fix FQCRs. (#64) 2020-03-29 13:02:28 +02:00
connection_lxd Fix FQCRs. (#64) 2020-03-29 13:02:28 +02:00
connection_posix Initial commit 2020-03-09 09:11:07 +00:00
consul Reenable consul test, fix issues with a hack (#231) 2020-04-24 08:42:44 +02:00
cronvar Initial commit 2020-03-09 09:11:07 +00:00
deploy_helper Initial commit 2020-03-09 09:11:07 +00:00
digital_ocean_floating_ip Initial commit 2020-03-09 09:11:07 +00:00
digital_ocean_sshkey Initial commit 2020-03-09 09:11:07 +00:00
digital_ocean_tag Initial commit 2020-03-09 09:11:07 +00:00
docker_config Initial commit 2020-03-09 09:11:07 +00:00
docker_container Fix more tests (#66) 2020-03-30 11:06:48 +02:00
docker_container_info Initial commit 2020-03-09 09:11:07 +00:00
docker_host_info Initial commit 2020-03-09 09:11:07 +00:00
docker_image Initial commit 2020-03-09 09:11:07 +00:00
docker_image_info Initial commit 2020-03-09 09:11:07 +00:00
docker_login Initial commit 2020-03-09 09:11:07 +00:00
docker_network Initial commit 2020-03-09 09:11:07 +00:00
docker_network_info Initial commit 2020-03-09 09:11:07 +00:00
docker_node Initial commit 2020-03-09 09:11:07 +00:00
docker_node_info Initial commit 2020-03-09 09:11:07 +00:00
docker_prune Initial commit 2020-03-09 09:11:07 +00:00
docker_secret Initial commit 2020-03-09 09:11:07 +00:00
docker_stack Initial commit 2020-03-09 09:11:07 +00:00
docker_swarm Initial commit 2020-03-09 09:11:07 +00:00
docker_swarm_info Initial commit 2020-03-09 09:11:07 +00:00
docker_swarm_service Initial commit 2020-03-09 09:11:07 +00:00
docker_swarm_service_info Initial commit 2020-03-09 09:11:07 +00:00
docker_volume Initial commit 2020-03-09 09:11:07 +00:00
docker_volume_info Initial commit 2020-03-09 09:11:07 +00:00
etcd3 Set pkg_mgr facts manually for FreeBSD and OpenSUSE (#60) 2020-03-29 21:34:10 +02:00
filesystem Set pkg_mgr facts manually for FreeBSD and OpenSUSE (#60) 2020-03-29 21:34:10 +02:00
filter_json_query Shippable: community/general (#12) 2020-03-17 08:59:17 +00:00
filter_random_mac Fix even more tests (#69) 2020-03-30 08:24:27 +01:00
firewalld Set pkg_mgr facts manually for FreeBSD and OpenSUSE (#60) 2020-03-29 21:34:10 +02:00
flatpak Initial commit 2020-03-09 09:11:07 +00:00
flatpak_remote Initial commit 2020-03-09 09:11:07 +00:00
gem Set pkg_mgr facts manually for FreeBSD and OpenSUSE (#60) 2020-03-29 21:34:10 +02:00
git_config Initial commit 2020-03-09 09:11:07 +00:00
github_issue Initial commit 2020-03-09 09:11:07 +00:00
gitlab_deploy_key Initial commit 2020-03-09 09:11:07 +00:00
gitlab_group Initial commit 2020-03-09 09:11:07 +00:00
gitlab_hook Initial commit 2020-03-09 09:11:07 +00:00
gitlab_project Initial commit 2020-03-09 09:11:07 +00:00
gitlab_project_variable Initial commit 2020-03-09 09:11:07 +00:00
gitlab_runner Initial commit 2020-03-09 09:11:07 +00:00
gitlab_user Initial commit 2020-03-09 09:11:07 +00:00
hg Fix more tests (#66) 2020-03-30 11:06:48 +02:00
homebrew homebrew: Honor update_homebrew value (#112) 2020-04-05 09:23:56 +01:00
hwc_ecs_instance Initial commit 2020-03-09 09:11:07 +00:00
hwc_evs_disk Initial commit 2020-03-09 09:11:07 +00:00
hwc_network_vpc Initial commit 2020-03-09 09:11:07 +00:00
hwc_smn_topic Initial commit 2020-03-09 09:11:07 +00:00
hwc_vpc_eip Initial commit 2020-03-09 09:11:07 +00:00
hwc_vpc_peering_connect Initial commit 2020-03-09 09:11:07 +00:00
hwc_vpc_port Initial commit 2020-03-09 09:11:07 +00:00
hwc_vpc_private_ip Initial commit 2020-03-09 09:11:07 +00:00
hwc_vpc_route Initial commit 2020-03-09 09:11:07 +00:00
hwc_vpc_security_group Initial commit 2020-03-09 09:11:07 +00:00
hwc_vpc_security_group_rule Initial commit 2020-03-09 09:11:07 +00:00
hwc_vpc_subnet Initial commit 2020-03-09 09:11:07 +00:00
influxdb_user Initial commit 2020-03-09 09:11:07 +00:00
ini_file Initial commit 2020-03-09 09:11:07 +00:00
intersight_info Initial commit 2020-03-09 09:11:07 +00:00
inventory_cloudscale Fix FQCRs. (#64) 2020-03-29 13:02:28 +02:00
inventory_docker_machine Initial commit 2020-03-09 09:11:07 +00:00
inventory_docker_swarm Fix FQCRs. (#64) 2020-03-29 13:02:28 +02:00
inventory_kubevirt Fix more tests (#66) 2020-03-30 11:06:48 +02:00
ipify_facts Initial commit 2020-03-09 09:11:07 +00:00
ipwcli_dns Initial commit 2020-03-09 09:11:07 +00:00
iso_extract Set pkg_mgr facts manually for FreeBSD and OpenSUSE (#60) 2020-03-29 21:34:10 +02:00
java_cert Initial commit 2020-03-09 09:11:07 +00:00
jboss Initial commit 2020-03-09 09:11:07 +00:00
ldap_search Added ldap_search module for searching in LDAP servers (#126) 2020-04-17 10:53:37 +02:00
listen_ports_facts Initial commit 2020-03-09 09:11:07 +00:00
locale_gen Initial commit 2020-03-09 09:11:07 +00:00
lookup_cartesian Initial commit 2020-03-09 09:11:07 +00:00
lookup_etcd3 add etcd3 lookup plugin (#127) 2020-04-25 10:58:06 +02:00
lookup_flattened Initial commit 2020-03-09 09:11:07 +00:00
lookup_hashi_vault Set pkg_mgr facts manually for FreeBSD and OpenSUSE (#60) 2020-03-29 21:34:10 +02:00
lookup_lmdb_kv Fix FQCRs. (#64) 2020-03-29 13:02:28 +02:00
lookup_passwordstore Fix more tests (#66) 2020-03-30 11:06:48 +02:00
lvg Set pkg_mgr facts manually for FreeBSD and OpenSUSE (#60) 2020-03-29 21:34:10 +02:00
mail Initial commit 2020-03-09 09:11:07 +00:00
mariadb_replication Initial commit 2020-03-09 09:11:07 +00:00
mas Initial commit 2020-03-09 09:11:07 +00:00
memset_dns_reload Initial commit 2020-03-09 09:11:07 +00:00
memset_memstore_info Initial commit 2020-03-09 09:11:07 +00:00
memset_server_info Initial commit 2020-03-09 09:11:07 +00:00
memset_zone Initial commit 2020-03-09 09:11:07 +00:00
memset_zone_domain Initial commit 2020-03-09 09:11:07 +00:00
memset_zone_record Initial commit 2020-03-09 09:11:07 +00:00
mqtt Initial commit 2020-03-09 09:11:07 +00:00
mysql_db mysql_db: add use_shell parameter to prevent Broken pipe errors (#151) 2020-04-20 18:46:54 +03:00
mysql_info mysql_info: added spaces to CI tests (#146) 2020-04-10 11:30:39 +03:00
mysql_query Initial commit 2020-03-09 09:11:07 +00:00
mysql_replication Initial commit 2020-03-09 09:11:07 +00:00
mysql_user mysql_user: add resource_limits parameter (#142) 2020-04-12 09:43:56 +05:30
mysql_variables Initial commit 2020-03-09 09:11:07 +00:00
nios_a_record Initial commit 2020-03-09 09:11:07 +00:00
nios_aaaa_record Initial commit 2020-03-09 09:11:07 +00:00
nios_cname_record Initial commit 2020-03-09 09:11:07 +00:00
nios_dns_view Initial commit 2020-03-09 09:11:07 +00:00
nios_host_record Initial commit 2020-03-09 09:11:07 +00:00
nios_mx_record Initial commit 2020-03-09 09:11:07 +00:00
nios_naptr_record Initial commit 2020-03-09 09:11:07 +00:00
nios_network Initial commit 2020-03-09 09:11:07 +00:00
nios_network_view Initial commit 2020-03-09 09:11:07 +00:00
nios_ptr_record Initial commit 2020-03-09 09:11:07 +00:00
nios_srv_record Initial commit 2020-03-09 09:11:07 +00:00
nios_txt_record Initial commit 2020-03-09 09:11:07 +00:00
nios_zone Initial commit 2020-03-09 09:11:07 +00:00
npm Set pkg_mgr facts manually for FreeBSD and OpenSUSE (#60) 2020-03-29 21:34:10 +02:00
one_host Initial commit 2020-03-09 09:11:07 +00:00
osx_defaults Initial commit 2020-03-09 09:11:07 +00:00
pids Initial commit 2020-03-09 09:11:07 +00:00
postgresql_copy Initial commit 2020-03-09 09:11:07 +00:00
postgresql_db postgresql_db: add trust_input parameter (#184) 2020-04-20 09:38:35 +03:00
postgresql_ext Set pkg_mgr facts manually for FreeBSD and OpenSUSE (#60) 2020-03-29 21:34:10 +02:00
postgresql_idx Initial commit 2020-03-09 09:11:07 +00:00
postgresql_info Initial commit 2020-03-09 09:11:07 +00:00
postgresql_lang Initial commit 2020-03-09 09:11:07 +00:00
postgresql_membership postgresql_membership: add trust_input parameter (#158) 2020-04-14 16:45:36 +03:00
postgresql_owner Initial commit 2020-03-09 09:11:07 +00:00
postgresql_pg_hba Initial commit 2020-03-09 09:11:07 +00:00
postgresql_ping Initial commit 2020-03-09 09:11:07 +00:00
postgresql_privs postgresql_privs: add trust_input parameter (#177) 2020-04-20 09:01:42 +03:00
postgresql_publication Initial commit 2020-03-09 09:11:07 +00:00
postgresql_query Initial commit 2020-03-09 09:11:07 +00:00
postgresql_schema Initial commit 2020-03-09 09:11:07 +00:00
postgresql_sequence Initial commit 2020-03-09 09:11:07 +00:00
postgresql_set Initial commit 2020-03-09 09:11:07 +00:00
postgresql_slot Initial commit 2020-03-09 09:11:07 +00:00
postgresql_subscription Initial commit 2020-03-09 09:11:07 +00:00
postgresql_table Initial commit 2020-03-09 09:11:07 +00:00
postgresql_tablespace Initial commit 2020-03-09 09:11:07 +00:00
postgresql_user postgresql_user: add scram-sha-256 password support (#100) 2020-04-22 12:45:14 +01:00
postgresql_user_obj_stat_info Initial commit 2020-03-09 09:11:07 +00:00
prepare_nios_tests/tasks Initial commit 2020-03-09 09:11:07 +00:00
prepare_nuage_tests/tasks Initial commit 2020-03-09 09:11:07 +00:00
prepare_tests/tasks Initial commit 2020-03-09 09:11:07 +00:00
python_requirements_info Initial commit 2020-03-09 09:11:07 +00:00
read_csv Initial commit 2020-03-09 09:11:07 +00:00
scaleway_compute Initial commit 2020-03-09 09:11:07 +00:00
scaleway_image_info Initial commit 2020-03-09 09:11:07 +00:00
scaleway_ip Initial commit 2020-03-09 09:11:07 +00:00
scaleway_ip_info Initial commit 2020-03-09 09:11:07 +00:00
scaleway_lb Initial commit 2020-03-09 09:11:07 +00:00
scaleway_organization_info Initial commit 2020-03-09 09:11:07 +00:00
scaleway_security_group Initial commit 2020-03-09 09:11:07 +00:00
scaleway_security_group_info Initial commit 2020-03-09 09:11:07 +00:00
scaleway_security_group_rule Initial commit 2020-03-09 09:11:07 +00:00
scaleway_server_info Initial commit 2020-03-09 09:11:07 +00:00
scaleway_snapshot_info Initial commit 2020-03-09 09:11:07 +00:00
scaleway_sshkey Initial commit 2020-03-09 09:11:07 +00:00
scaleway_user_data Initial commit 2020-03-09 09:11:07 +00:00
scaleway_volume Initial commit 2020-03-09 09:11:07 +00:00
scaleway_volume_info Initial commit 2020-03-09 09:11:07 +00:00
script_inventory_foreman Fix more tests (#66) 2020-03-30 11:06:48 +02:00
sefcontext Set pkg_mgr facts manually for FreeBSD and OpenSUSE (#60) 2020-03-29 21:34:10 +02:00
sensu_client Initial commit 2020-03-09 09:11:07 +00:00
sensu_handler Initial commit 2020-03-09 09:11:07 +00:00
setup_cron Set pkg_mgr facts manually for FreeBSD and OpenSUSE (#60) 2020-03-29 21:34:10 +02:00
setup_docker Update testing (#147) 2020-04-10 16:26:24 +01:00
setup_docker_registry Initial commit 2020-03-09 09:11:07 +00:00
setup_epel/tasks Initial commit 2020-03-09 09:11:07 +00:00
setup_etcd3 add etcd3 lookup plugin (#127) 2020-04-25 10:58:06 +02:00
setup_flatpak_remote Initial commit 2020-03-09 09:11:07 +00:00
setup_influxdb/tasks Initial commit 2020-03-09 09:11:07 +00:00
setup_mosquitto Initial commit 2020-03-09 09:11:07 +00:00
setup_mysql8 Initial commit 2020-03-09 09:11:07 +00:00
setup_mysql_db Fix tests for OpenSUSE 15.1 (#139) 2020-04-09 15:24:23 +02:00
setup_mysql_replication Initial commit 2020-03-09 09:11:07 +00:00
setup_openldap Added ldap_search module for searching in LDAP servers (#126) 2020-04-17 10:53:37 +02:00
setup_opennebula/vars Initial commit 2020-03-09 09:11:07 +00:00
setup_openssl Set pkg_mgr facts manually for FreeBSD and OpenSUSE (#60) 2020-03-29 21:34:10 +02:00
setup_pkg_mgr/tasks Set pkg_mgr facts manually for FreeBSD and OpenSUSE (#60) 2020-03-29 21:34:10 +02:00
setup_postgresql_db Set pkg_mgr facts manually for FreeBSD and OpenSUSE (#60) 2020-03-29 21:34:10 +02:00
setup_postgresql_replication Initial commit 2020-03-09 09:11:07 +00:00
setup_remote_constraints Shippable: community/general (#12) 2020-03-17 08:59:17 +00:00
setup_remote_tmp_dir [WIP] Removed windows dep and unify shippable.sh (#38) 2020-03-24 16:09:30 +00:00
setup_tls Initial commit 2020-03-09 09:11:07 +00:00
setup_wildfly_server Set pkg_mgr facts manually for FreeBSD and OpenSUSE (#60) 2020-03-29 21:34:10 +02:00
supervisorctl supervisorctl tests: shorten path to .sock file to make OSX happy. (#77) 2020-03-31 10:52:24 +02:00
synchronize-buildah Initial commit 2020-03-09 09:11:07 +00:00
timezone Initial commit 2020-03-09 09:11:07 +00:00
ufw Set pkg_mgr facts manually for FreeBSD and OpenSUSE (#60) 2020-03-29 21:34:10 +02:00
wakeonlan Initial commit 2020-03-09 09:11:07 +00:00
xattr Set pkg_mgr facts manually for FreeBSD and OpenSUSE (#60) 2020-03-29 21:34:10 +02:00
xfs_quota Shippable: community/general (#12) 2020-03-17 08:59:17 +00:00
xml Fix more tests (#66) 2020-03-30 11:06:48 +02:00
yarn Set pkg_mgr facts manually for FreeBSD and OpenSUSE (#60) 2020-03-29 21:34:10 +02:00
zypper Fix tests for OpenSUSE 15.1 (#139) 2020-04-09 15:24:23 +02:00
zypper_repository Fix tests for OpenSUSE 15.1 (#139) 2020-04-09 15:24:23 +02:00
__init__.py Initial commit 2020-03-09 09:11:07 +00:00