community.general/tests/unit/plugins
patchback[bot] 56a906e42b
[PR #9578/bcc92e8a backport][stable-9] redhat_subscription: stop manual unsubscribing on unregistration (#9589)
redhat_subscription: stop manual unsubscribing on unregistration (#9578)

Unregistering a system also drops all the resources for it
automatically, so there is no need to manually unsubscribing (which
actually means removing all the subscriptions).

In addition to that, newer versions of subscription-manager drop all the
support for entitlements, so the "remove" subcommand (used by
unsubscribe()) does not exist anymore, and thus the unregistration fails
with those versions.

This fixes the registration on EL 10 systems, and Fedora 41 and greater.

(cherry picked from commit bcc92e8aac)

Co-authored-by: Pino Toscano <ptoscano@redhat.com>
2025-01-20 19:47:17 +01:00
..
become add systemd run0 as a become method (#8306) 2024-05-11 16:53:44 +02:00
cache Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
callback Avoid deprecated utcnow() (#8222) 2024-04-20 09:26:08 +02:00
connection Handle remote_addr change in lxc connection plugin (#7373) 2023-10-18 20:54:24 +02:00
filter Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
inventory [PR #8532/24b74cc4 backport][stable-9] opennebula inventory: add VM ID and VM host to data (#9003) 2024-10-07 23:10:38 +02:00
lookup [PR #9028/1180843e backport][stable-9] bitwarden_secrets_manager lookup plugin: support more current versions of BWS CLI (#9036) 2024-10-19 14:05:56 +02:00
module_utils [PR #8833/26df6c76 backport][stable-9] use dict comprehension in plugins, part 3 (#8835) 2024-09-08 14:46:13 +02:00
modules [PR #9578/bcc92e8a backport][stable-9] redhat_subscription: stop manual unsubscribing on unregistration (#9589) 2025-01-20 19:47:17 +01:00
plugin_utils Add test for unsafe plugin util (#8345) 2024-05-12 00:36:12 +02:00