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/unit/plugins/modules
Jonathan Kamens 627371e2d8
dconf: Check for changes properly despite style of quotes used by user ()
dconf: parse GVariant values to check for equality whenever possible

Direct string comparisons are an inaccurate way to compare two
GVariant representations. For example, 'foo' and "foo" (including the
quote marks, which are part of the representation) are equal GVariants
but if you just do a string compare (remember, including the quotes)
they'll be interpreted.

We therefore want to use the `gi.repository` Python library to parse
GVariant representations before comparing them whenever possible.

However, we don't want to assume that this library will always be
available or require it for Ansible to function, so we use a straight
string comparison as a fallback when the library isn't available. This
may result in some false positives, i.e., Ansible thinking a value is
changing when it actually isn't, but will not result in incorrect
values being written into `dconf`.

Co-authored-by: Jonathan Kamens <jik@jik5.kamens.us>
2023-03-04 20:51:50 +01:00
..
interfaces_file Unflatmap community.general () 2022-11-02 20:42:29 +00:00
conftest.py
FakeAnsibleModule.py
FakeXenAPI.py
gitlab.py
hpe_test_utils.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
linode_conftest.py
oneview_conftest.py
oneview_module_loader.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
rhn_conftest.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_alerta_customer.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
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 Unflatmap community.general () 2022-11-02 20:42:29 +00:00
test_campfire.py
test_circonus_annotation.py
test_cpanm.py
test_datadog_downtime.py.disabled
test_dconf.py dconf: Check for changes properly despite style of quotes used by user () 2023-03-04 20:51:50 +01:00
test_discord.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_dnsimple.py
test_dnsimple_info.py
test_gconftool2.py gconftool2: refactored to use ModuleHelper + CmdRunner () 2022-11-15 21:02:45 +01:00
test_gconftool2_info.py
test_gem.py
test_github_repo.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_gitlab_deploy_key.py
test_gitlab_group.py
test_gitlab_hook.py
test_gitlab_project.py
test_gitlab_protected_branch.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_gitlab_runner.py
test_gitlab_user.py
test_homebrew.py
test_homebrew_cask.py
test_icinga2_feature.py
test_ipa_otpconfig.py
test_ipa_otptoken.py
test_ipa_pwpolicy.py
test_java_keystore.py
test_jenkins_build.py Fix a logical flaw when deleting a build in the jenkins_build module () 2022-11-10 21:18:01 +01:00
test_jenkins_plugin.py
test_keycloak_authentication.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_keycloak_client.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_keycloak_client_rolemapping.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_keycloak_clientscope.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_keycloak_identity_provider.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_keycloak_realm.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_keycloak_realm_info.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_keycloak_role.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_keycloak_user_federation.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_linode.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_linode_v4.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_lxca_cmms.py
test_lxca_nodes.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_macports.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_maven_artifact.py
test_modprobe.py add persistent option for modprobe () 2023-02-26 14:58:58 +01:00
test_monit.py
test_nmcli.py nmcli: fixed inability to change mtu on vlan connection () 2023-03-04 10:01:52 +01:00
test_npm.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_ocapi_command.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_ocapi_info.py Remote management modules for OCAPI-based devices. () 2023-01-22 17:10:36 +01:00
test_one_vm.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_oneview_datacenter_info.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_oneview_enclosure_info.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_oneview_ethernet_network.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_oneview_ethernet_network_info.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_oneview_fc_network.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_oneview_fc_network_info.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_oneview_fcoe_network.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_oneview_fcoe_network_info.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_oneview_logical_interconnect_group.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_oneview_logical_interconnect_group_info.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_oneview_network_set.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_oneview_network_set_info.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_oneview_san_manager.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_oneview_san_manager_info.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_opkg.py opkg: fix bug when update_cache=true () 2023-03-02 07:01:15 +01:00
test_pacman.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
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_tasks_info.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_puppet.py puppet: refactored to use CmdRunner () 2022-12-14 21:30:03 +01:00
test_redhat_subscription.py redhat_subscription: Add support for Red Hat API token () 2023-01-05 21:36:07 +01:00
test_redis_data.py
test_redis_data_incr.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_redis_data_info.py
test_redis_info.py
test_rhn_channel.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_rhn_register.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_rhsm_release.py
test_rpm_ostree_pkg.py
test_scaleway_compute_private_network.py
test_scaleway_private_network.py
test_slack.py Replace missing default favicon with docs.ansible.com favicon () 2023-02-03 11:02:14 +01:00
test_solaris_zone.py
test_ss_3par_cpg.py
test_statsd.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_sysupgrade.py
test_terraform.py
test_ufw.py
test_wdc_redfish_command.py
test_wdc_redfish_info.py
test_xcc_redfish_command.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_xenserver_guest_info.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_xenserver_guest_powerstate.py Remove unnecessary test imports () 2023-02-12 21:05:08 +01:00
test_xfconf.py
test_xfconf_info.py
utils.py
xenserver_common.py
xenserver_conftest.py