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
patchback[bot] c4e93b0b5f
filesystem: fix 355 state absent (#1149) (#1184)
* add support for filesystem removal (fix #355)

- Add 'state' option, defaults to 'present'.
- When state=absent, ignore other options (even 'dev' if the device
  doesn't exist)

* test filesystem state=absent (+ check_mode + idempotency)

* fix doc-required-mismatch

* add changelog fragment

* fix blkid return code

* ext4dev may be deprecated

* base checks on UUID instead

* Update changelogs/fragments/1149-filesystem-fix-355-state-absent.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update plugins/modules/system/filesystem.py (version_added)

Co-authored-by: Felix Fontein <felix@fontein.de>

* use array for new run_command() calls; do not wipefs if no fs found

* use dd as a fallback

* do not use bare 'except' (pep8)

* force string type

* use dd anyway (wipefs not supported everywhere, possibly buggy with vfat, etc.)

* do not truncate regular files; update changelog fragment

* doc: update state description and an example; notice check_mode support

* do not wipe mounted fs, fail instead

* back to wipefs implementation

* update test's main conditions

* update changelog fragment

* explicit types

* fail state=absent on freebsd

* remove doc-missing-type exceptions (2.9, 2.10, 2.11)

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit a5ca990857)

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