mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
10.0.0: remove deprecated features (#8918)
* Remove pool option from redhat_subscription. * Remove proxmox_default_behavior option from proxmox_kvm. * Remove the logging option from ejabberd_user. * Remove the ack_params_state_absent option from consul. * irc: change defaults of use_tls and validate_certs to true. * rhsm_repository: remove states present and absent. * Re-add 'using'. * Fix typo.
This commit is contained in:
parent
84e0190eee
commit
fe18b05f08
10 changed files with 29 additions and 368 deletions
|
@ -585,7 +585,6 @@
|
|||
api_token_id: "{{ api_token_id | default(omit) }}"
|
||||
api_token_secret: "{{ api_token_secret | default(omit) }}"
|
||||
validate_certs: "{{ validate_certs }}"
|
||||
proxmox_default_behavior: "no_defaults"
|
||||
node: "{{ node }}"
|
||||
vmid: "{{ vmid }}"
|
||||
state: absent
|
||||
|
|
|
@ -432,73 +432,6 @@ TEST_CASES = [
|
|||
'msg': "System successfully registered to 'None'."
|
||||
}
|
||||
],
|
||||
# Test of registration using username and password and attach to pool
|
||||
[
|
||||
{
|
||||
'state': 'present',
|
||||
'username': 'admin',
|
||||
'password': 'admin',
|
||||
'org_id': 'admin',
|
||||
'pool': 'ff8080816b8e967f016b8e99632804a6'
|
||||
},
|
||||
{
|
||||
'id': 'test_registeration_username_password_pool',
|
||||
'run_command.calls': [
|
||||
(
|
||||
['/testbin/subscription-manager', 'identity'],
|
||||
{'check_rc': False},
|
||||
(1, 'This system is not yet registered.', '')
|
||||
),
|
||||
(
|
||||
[
|
||||
'/testbin/subscription-manager',
|
||||
'register',
|
||||
'--org', 'admin',
|
||||
'--username', 'admin',
|
||||
'--password', 'admin'
|
||||
],
|
||||
{'check_rc': True, 'expand_user_and_vars': False},
|
||||
(0, '', '')
|
||||
),
|
||||
(
|
||||
[
|
||||
'subscription-manager list --available',
|
||||
{'check_rc': True, 'environ_update': {'LANG': 'C', 'LC_ALL': 'C', 'LC_MESSAGES': 'C'}},
|
||||
(0,
|
||||
'''
|
||||
+-------------------------------------------+
|
||||
Available Subscriptions
|
||||
+-------------------------------------------+
|
||||
Subscription Name: SP Server Premium (S: Premium, U: Production, R: SP Server)
|
||||
Provides: SP Server Bits
|
||||
SKU: sp-server-prem-prod
|
||||
Contract: 0
|
||||
Pool ID: ff8080816b8e967f016b8e99632804a6
|
||||
Provides Management: Yes
|
||||
Available: 5
|
||||
Suggested: 1
|
||||
Service Type: L1-L3
|
||||
Roles: SP Server
|
||||
Service Level: Premium
|
||||
Usage: Production
|
||||
Add-ons:
|
||||
Subscription Type: Standard
|
||||
Starts: 06/25/19
|
||||
Ends: 06/24/20
|
||||
Entitlement Type: Physical
|
||||
''', ''),
|
||||
]
|
||||
),
|
||||
(
|
||||
'subscription-manager attach --pool ff8080816b8e967f016b8e99632804a6',
|
||||
{'check_rc': True},
|
||||
(0, '', '')
|
||||
)
|
||||
],
|
||||
'changed': True,
|
||||
'msg': "System successfully registered to 'None'."
|
||||
}
|
||||
],
|
||||
# Test of registration using username and password and attach to pool ID and quantities
|
||||
[
|
||||
{
|
||||
|
|
|
@ -648,39 +648,6 @@ TEST_CASES = [
|
|||
'repositories': REPOS.copy().disable('awesomeos-99000'),
|
||||
}
|
||||
],
|
||||
# disable an enabled repository (using state=absent)
|
||||
[
|
||||
{
|
||||
'name': 'awesomeos-99000',
|
||||
'state': 'absent',
|
||||
},
|
||||
{
|
||||
'id': 'test_disable_single_using_absent',
|
||||
'run_command.calls': [
|
||||
(
|
||||
[
|
||||
'/testbin/subscription-manager',
|
||||
'repos',
|
||||
'--list',
|
||||
],
|
||||
SUBMAN_KWARGS,
|
||||
(0, REPOS_LIST_OUTPUT, '')
|
||||
),
|
||||
(
|
||||
[
|
||||
'/testbin/subscription-manager',
|
||||
'repos',
|
||||
'--disable',
|
||||
'awesomeos-99000',
|
||||
],
|
||||
SUBMAN_KWARGS,
|
||||
(0, '', '')
|
||||
),
|
||||
],
|
||||
'changed': True,
|
||||
'repositories': REPOS.copy().disable('awesomeos-99000'),
|
||||
}
|
||||
],
|
||||
# disable an already disabled repository
|
||||
[
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue