1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-05-09 11:21:36 +00:00
community.general/tests/unit/plugins/modules
Alexei Znamensky 8ef77d8664
unit test helper: big revamp (#8894)
* initial commit

* multiple changes:

- TestCaseContext fixture no longer need to autouse=True
- Helper.from_module() allows extra param to specify yaml file
- test_django_check: adjusted .py and .yaml

* set fixtures per testcase

* set fixtures per testcase

* rollback to original state

* patch_ansible_module fixture

- now it works not only in parametrized functions but also directly with args

* tests/unit/plugins/modules/helper.py

- improved encapsulation, class Helper no longer knows details about test cases
- test functions no longer parametrized, that allows using test case fixtures per test function
- renamed 'context' to 'mock'

* enable Helper.from_list(), better param name 'ansible_module'

* adjusted test fiels to new helper

* remove unnecessary .license file

* fix bracket

* fix reference name

* Update tests/unit/plugins/modules/helper.py

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

* revert to parametrized test func instead of multiple funcs

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
2024-09-28 08:17:36 +03:00
..
interfaces_file
conftest.py unit test helper: big revamp (#8894) 2024-09-28 08:17:36 +03:00
FakeAnsibleModule.py
FakeXenAPI.py
gitlab.py
helper.py unit test helper: big revamp (#8894) 2024-09-28 08:17:36 +03:00
hpe_test_utils.py
linode_conftest.py
oneview_conftest.py
oneview_module_loader.py
rhn_conftest.py
test_alerta_customer.py
test_apache2_module.py
test_apk.py
test_archive.py
test_bitbucket_access_key.py
test_bitbucket_pipeline_key_pair.py
test_bitbucket_pipeline_known_host.py
test_bitbucket_pipeline_variable.py
test_bootc_manage.py Introduce bootc functionality (#8606) 2024-07-27 09:37:14 +02:00
test_campfire.py
test_circonus_annotation.py
test_cpanm.py unit test helper: big revamp (#8894) 2024-09-28 08:17:36 +03:00
test_cpanm.yaml unit test helper: big revamp (#8894) 2024-09-28 08:17:36 +03:00
test_datadog_downtime.py Fix and enable test for datadog_downtime (#8815) 2024-09-01 20:22:46 +02:00
test_dconf.py
test_discord.py
test_django_check.py unit test helper: big revamp (#8894) 2024-09-28 08:17:36 +03:00
test_django_check.yaml unit test helper: big revamp (#8894) 2024-09-28 08:17:36 +03:00
test_django_command.py unit test helper: big revamp (#8894) 2024-09-28 08:17:36 +03:00
test_django_command.yaml unit test helper: big revamp (#8894) 2024-09-28 08:17:36 +03:00
test_django_createcachetable.py unit test helper: big revamp (#8894) 2024-09-28 08:17:36 +03:00
test_django_createcachetable.yaml unit test helper: big revamp (#8894) 2024-09-28 08:17:36 +03:00
test_dnf_config_manager.py
test_dnsimple.py
test_dnsimple_info.py
test_facter_facts.py unit test helper: big revamp (#8894) 2024-09-28 08:17:36 +03:00
test_facter_facts.yaml unit test helper: big revamp (#8894) 2024-09-28 08:17:36 +03:00
test_gconftool2.py unit test helper: big revamp (#8894) 2024-09-28 08:17:36 +03:00
test_gconftool2.yaml unit test helper: big revamp (#8894) 2024-09-28 08:17:36 +03:00
test_gconftool2_info.py unit test helper: big revamp (#8894) 2024-09-28 08:17:36 +03:00
test_gconftool2_info.yaml unit test helper: big revamp (#8894) 2024-09-28 08:17:36 +03:00
test_gem.py
test_gio_mime.py unit test helper: big revamp (#8894) 2024-09-28 08:17:36 +03:00
test_gio_mime.yaml unit test helper: big revamp (#8894) 2024-09-28 08:17:36 +03:00
test_github_repo.py
test_gitlab_deploy_key.py
test_gitlab_group.py
test_gitlab_group_access_token.py
test_gitlab_hook.py
test_gitlab_project.py
test_gitlab_project_access_token.py
test_gitlab_protected_branch.py
test_gitlab_runner.py
test_gitlab_user.py
test_homebrew.py homebrew: Move repeated logic from homebrew modules into module_utils (#8324) 2024-05-11 16:52:43 +02:00
test_homebrew_cask.py
test_icinga2_feature.py
test_ini_file.py
test_ipa_otpconfig.py
test_ipa_otptoken.py
test_ipa_pwpolicy.py
test_ipbase.py
test_java_keystore.py
test_jenkins_build.py
test_jenkins_build_info.py
test_jenkins_plugin.py
test_keycloak_authentication.py
test_keycloak_authentication_required_actions.py
test_keycloak_client.py
test_keycloak_client_rolemapping.py
test_keycloak_clientscope.py
test_keycloak_identity_provider.py keycloak_identity_provider: get cleartext clientsecret (#8735) 2024-08-12 07:32:34 +02:00
test_keycloak_realm.py
test_keycloak_realm_info.py
test_keycloak_realm_keys.py bugfix(keycloak): fix parameters for realm key creation (#8823) 2024-09-08 14:25:33 +02:00
test_keycloak_realm_keys_metadata_info.py Add a keycloak module to query keys metadata (#8605) 2024-08-01 17:10:11 +02:00
test_keycloak_role.py
test_keycloak_user.py
test_keycloak_user_federation.py keycloak_user_federation: add mapper removal (#8695) 2024-08-12 07:55:17 +02:00
test_keycloak_userprofile.py keycloak_userprofile: new module (#8651) 2024-09-09 13:51:07 +02:00
test_linode.py
test_linode_v4.py
test_lvg_rename.py
test_lxca_cmms.py
test_lxca_nodes.py
test_macports.py
test_maven_artifact.py
test_modprobe.py
test_monit.py
test_nmcli.py
test_nomad_token.py
test_npm.py
test_ocapi_command.py
test_ocapi_info.py
test_one_vm.py
test_oneview_datacenter_info.py
test_oneview_enclosure_info.py
test_oneview_ethernet_network.py
test_oneview_ethernet_network_info.py
test_oneview_fc_network.py
test_oneview_fc_network_info.py
test_oneview_fcoe_network.py
test_oneview_fcoe_network_info.py
test_oneview_logical_interconnect_group.py
test_oneview_logical_interconnect_group_info.py
test_oneview_network_set.py
test_oneview_network_set_info.py
test_oneview_san_manager.py
test_oneview_san_manager_info.py
test_opkg.py unit test helper: big revamp (#8894) 2024-09-28 08:17:36 +03:00
test_opkg.yaml unit test helper: big revamp (#8894) 2024-09-28 08:17:36 +03:00
test_pacman.py
test_pacman_key.py
test_pagerduty.py
test_pagerduty_alert.py
test_pagerduty_change.py
test_pamd.py
test_parted.py
test_pkgin.py
test_pmem.py
test_pritunl_org.py
test_pritunl_org_info.py
test_pritunl_user.py
test_pritunl_user_info.py
test_proxmox_kvm.py
test_proxmox_snap.py
test_proxmox_storage_contents_info.py
test_proxmox_tasks_info.py
test_proxmox_template.py
test_proxmox_vm_info.py
test_puppet.py unit test helper: big revamp (#8894) 2024-09-28 08:17:36 +03:00
test_puppet.yaml unit test helper: big revamp (#8894) 2024-09-28 08:17:36 +03:00
test_redhat_subscription.py 10.0.0: remove deprecated features (#8918) 2024-09-28 08:11:21 +03:00
test_redis_data.py
test_redis_data_incr.py
test_redis_data_info.py
test_redis_info.py Add TLS certs params to redis (#8654) 2024-07-23 18:01:37 +02:00
test_rhn_channel.py
test_rhn_register.py
test_rhsm_release.py
test_rhsm_repository.py 10.0.0: remove deprecated features (#8918) 2024-09-28 08:11:21 +03:00
test_rpm_ostree_pkg.py
test_scaleway_compute_private_network.py
test_scaleway_private_network.py
test_simpleinit_msb.py
test_slack.py
test_snap.py unit test helper: big revamp (#8894) 2024-09-28 08:17:36 +03:00
test_solaris_zone.py
test_ss_3par_cpg.py
test_statsd.py
test_sysupgrade.py
test_terraform.py
test_ufw.py
test_usb_facts.py Implement usb_facts module (#8076) 2024-03-18 21:35:36 +01:00
test_wdc_redfish_command.py Fix to handle Redfish Gen2 Firmware upgrade (#8444) 2024-07-08 09:45:09 +02:00
test_wdc_redfish_info.py
test_xcc_redfish_command.py
test_xenserver_guest_info.py
test_xenserver_guest_powerstate.py
test_xfconf.py unit test helper: big revamp (#8894) 2024-09-28 08:17:36 +03:00
test_xfconf.yaml unit test helper: big revamp (#8894) 2024-09-28 08:17:36 +03:00
test_xfconf_info.py unit test helper: big revamp (#8894) 2024-09-28 08:17:36 +03:00
test_xfconf_info.yaml unit test helper: big revamp (#8894) 2024-09-28 08:17:36 +03:00
utils.py
xenserver_common.py
xenserver_conftest.py