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
quidame a5ca990857
filesystem: fix 355 state absent (#1149)
* 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>
2020-10-26 19:43:01 +01: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 filesystem: fix 355 state absent (#1149) 2020-10-26 19:43:01 +01: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 Don't run postgresql tests (#1167) 2020-10-23 19:56:15 +01:00
postgresql_db Don't run postgresql tests (#1167) 2020-10-23 19:56:15 +01:00
postgresql_ext Don't run postgresql tests (#1167) 2020-10-23 19:56:15 +01:00
postgresql_idx Don't run postgresql tests (#1167) 2020-10-23 19:56:15 +01:00
postgresql_info Don't run postgresql tests (#1167) 2020-10-23 19:56:15 +01:00
postgresql_lang Don't run postgresql tests (#1167) 2020-10-23 19:56:15 +01:00
postgresql_membership Don't run postgresql tests (#1167) 2020-10-23 19:56:15 +01:00
postgresql_owner Don't run postgresql tests (#1167) 2020-10-23 19:56:15 +01:00
postgresql_pg_hba Don't run postgresql tests (#1167) 2020-10-23 19:56:15 +01:00
postgresql_ping Don't run postgresql tests (#1167) 2020-10-23 19:56:15 +01:00
postgresql_privs Don't run postgresql tests (#1167) 2020-10-23 19:56:15 +01:00
postgresql_publication Don't run postgresql tests (#1167) 2020-10-23 19:56:15 +01:00
postgresql_query Don't run postgresql tests (#1167) 2020-10-23 19:56:15 +01:00
postgresql_schema Don't run postgresql tests (#1167) 2020-10-23 19:56:15 +01:00
postgresql_sequence Don't run postgresql tests (#1167) 2020-10-23 19:56:15 +01:00
postgresql_set Don't run postgresql tests (#1167) 2020-10-23 19:56:15 +01:00
postgresql_slot Don't run postgresql tests (#1167) 2020-10-23 19:56:15 +01:00
postgresql_subscription Don't run postgresql tests (#1167) 2020-10-23 19:56:15 +01:00
postgresql_table Don't run postgresql tests (#1167) 2020-10-23 19:56:15 +01:00
postgresql_tablespace Don't run postgresql tests (#1167) 2020-10-23 19:56:15 +01:00
postgresql_user Don't run postgresql tests (#1167) 2020-10-23 19:56:15 +01:00
postgresql_user_obj_stat_info Don't run postgresql tests (#1167) 2020-10-23 19:56:15 +01: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 Improve docker test setups (#1161) 2020-10-26 08:33:04 +01:00
setup_docker_registry Improve docker test setups (#1161) 2020-10-26 08:33:04 +01: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