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
Simon Kelly 8de1c0c205
monit: fix module detection of monitored process state (#1107)
* refactor and test

* require version >= 5.21.0

Prior to this version the status output was different

* python version compatability

* use exception classes from utils

* modify monit to use 'status' output instead of 'summary' output

The summary output is a fixed width table which truncates the
contents and prevents us from parsing the actual status of the
program.

* add integration tests + fixes

* remove unused handlers in monit integration test

* fix lint

* add '__metaclass__ = type' to integration python files

* raise AttributeError

* simplify status

* lint: add type to parameter docs

* remove lint ignore

* move monit process config into main file

* specify path to monit PID file

* set config location based on os_family

* create required directories

* update aliases to set group and skips

* add changelog

* add author

* add types to docs

* add EPEL repo

* custom vars for centos-6

* uninstall EPEL

* support older versions

* wait for status to change before exiting

* use 'validate' to force status updates

* handle 'execution failed'

* better status output for errors

* add more context to failure + standardize

* don't check rc for validate

* legacy string format support

* add integration test for 'reloaded' and 'present'

* don't wait after reload

* lint

* Revert "uninstall EPEL"

This reverts commit 4d548718d0.

* make 'present' more robust

* Apply suggestions from code review

Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>

* add license header

* drop daemon.py and use python-daemon instead

* skip python2.6 which is not supported by python-daemon

* refactor test tasks for reuse

* cleanup files after test

* lint

* start process before enabling monit

This shouldn't be necessary but I'm adding it in the hopes
it will make tests more robust.

* retry task

* attempt to rescue the task on failure

* fix indentation

* ignore check if rescue ran

* restart monit instead of reload

Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-10-23 12:26:23 +02:00
..
aix_devices Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
aix_filesystem Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
alternatives Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
apache2_module Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
archive Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
callback_diy Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
callback_log_plays Shippable: community/general (#12) 2020-03-17 08:59:17 +00:00
cloud_init_data_facts Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
connection Test of using FQCN for some builtin plugins (#660) 2020-07-16 12:24:04 +03:00
connection_chroot Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02: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 Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
cronvar Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
deploy_helper Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
docker_config Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
docker_container Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
docker_container_info Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
docker_host_info Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
docker_image Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
docker_image_info Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
docker_login docker_login: fix internal config file storage to handle credentials for more than one registry (#1118) 2020-10-21 08:18:05 +02:00
docker_network Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
docker_network_info Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
docker_node Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
docker_node_info Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
docker_prune Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
docker_secret Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
docker_stack Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
docker_stack_info Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
docker_stack_task_info Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
docker_swarm Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
docker_swarm_info Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
docker_swarm_service Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
docker_swarm_service_info Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
docker_volume Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
docker_volume_info Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
dpkg_divert Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
etcd3 Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
filesystem Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
filter_jc Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
filter_json_query Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
filter_random_mac Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
filter_time Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
flatpak Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
flatpak_remote Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
gem Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
git_config Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
github_issue Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
gitlab_deploy_key Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
gitlab_group Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
gitlab_group_members Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
gitlab_group_variable Gitlab variables pagination (#968) 2020-10-09 14:59:00 +02:00
gitlab_hook Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
gitlab_project Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
gitlab_project_variable Gitlab variables pagination (#968) 2020-10-09 14:59:00 +02:00
gitlab_runner Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
gitlab_user Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hg Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
homebrew Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_ecs_instance Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_evs_disk Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_network_vpc Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_smn_topic Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_vpc_eip Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_vpc_peering_connect Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_vpc_port Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_vpc_private_ip Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_vpc_route Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_vpc_security_group Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_vpc_security_group_rule Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_vpc_subnet Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
influxdb_user Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
ini_file Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
inventory_docker_machine Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
inventory_docker_swarm Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
inventory_kubevirt Fix failing FreeBSD CI (#1010) 2020-09-30 10:08:31 +02:00
ipify_facts Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
iptables_state Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
ipwcli_dns Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
iso_create Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
iso_extract Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
java_cert Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
jboss Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
launchd Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
ldap_search Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
listen_ports_facts Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
locale_gen Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
lookup_cartesian Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
lookup_etcd3 Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
lookup_flattened Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
lookup_hashi_vault Respect VAULT_SKIP_VERIFY envionment variable setting in hashi_vault lookup plugin (#1024) 2020-10-09 14:23:04 +02:00
lookup_lmdb_kv Fix lmdb lookup tests (#842) 2020-08-29 10:47:28 +02:00
lookup_passwordstore Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
lvg Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
mail Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
mas Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
memset_dns_reload Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
memset_memstore_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
memset_server_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
memset_zone Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
memset_zone_domain Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
memset_zone_record Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
monit monit: fix module detection of monitored process state (#1107) 2020-10-23 12:26:23 +02:00
mqtt Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
nios_a_record Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_aaaa_record Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_cname_record Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_dns_view Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_host_record Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_mx_record Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_naptr_record Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_network Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_network_view Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_ptr_record Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_srv_record Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_txt_record Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_zone Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nomad new module nomad_job & nomad_job_info (#867) 2020-10-19 13:40:07 +02:00
npm Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
odbc Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
one_host Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
osx_defaults Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
pids Try to make pids test more stable. (#1160) 2020-10-23 09:53:02 +01:00
pkgutil pkgutil: add update all, check-mode, squashing and examples (#799) 2020-09-30 06:19:36 +02:00
postgresql_copy Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
postgresql_db Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
postgresql_ext postgresql_ext: fix module's failing when available ext versions contain a pure string (#1099) 2020-10-16 11:56:15 +03:00
postgresql_idx Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
postgresql_info postgresql_info: add in_recovery return value to show if a service in recovery mode or not (#1091) 2020-10-14 14:30:19 +03:00
postgresql_lang Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
postgresql_membership Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
postgresql_owner Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
postgresql_pg_hba Update postgresql_pg_hba.py (#1124) 2020-10-21 20:20:21 +03:00
postgresql_ping Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
postgresql_privs postgresql_privs: fix module fails when passing roles containing hyphens (#1059) 2020-10-11 12:57:19 +03:00
postgresql_publication Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
postgresql_query postgresql_query: add query_all_results ret value (#886) 2020-10-20 09:08:16 +03:00
postgresql_schema Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
postgresql_sequence Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
postgresql_set Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
postgresql_slot Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
postgresql_subscription Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
postgresql_table Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
postgresql_tablespace Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
postgresql_user Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
postgresql_user_obj_stat_info Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
prepare_nios_tests/tasks Initial commit 2020-03-09 09:11:07 +00:00
prepare_nuage_tests/tasks Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
prepare_tests/tasks Initial commit 2020-03-09 09:11:07 +00:00
python_requirements_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
read_csv Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
redis_info Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
scaleway_compute Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_database_backup Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_image_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_ip Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_ip_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_lb Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_organization_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_security_group Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_security_group_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_security_group_rule Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_server_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_snapshot_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_sshkey Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_user_data Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_volume Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_volume_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
script_inventory_foreman Fix more tests (#66) 2020-03-30 11:06:48 +02:00
sefcontext Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
sensu_client Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
sensu_handler Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_cron Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_docker Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_docker_registry docker_login: fix internal config file storage to handle credentials for more than one registry (#1118) 2020-10-21 08:18:05 +02:00
setup_epel/tasks Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_etcd3 Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_flatpak_remote Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_gnutar Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
setup_influxdb/tasks Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_mosquitto Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_openldap Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_opennebula/vars Initial commit 2020-03-09 09:11:07 +00:00
setup_openssl Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_pkg_mgr/tasks Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_postgresql_db Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_postgresql_replication Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_redis_replication Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_remote_constraints Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_remote_tmp_dir Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_tls Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_wildfly_server Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
shutdown Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
supervisorctl Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
synchronize-buildah Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
timezone Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
ufw Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
wakeonlan Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
xattr Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
xfs_quota Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
xml Fix xml reports changed when node is not deleted (#1007) 2020-09-30 14:11:28 +03:00
yarn Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
zypper Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
zypper_repository Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
__init__.py Initial commit 2020-03-09 09:11:07 +00:00