mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-06-01 13:56:55 +00:00
rhn_register fixes for username and password when unregistering
- Require username and password for unregistering and avoid "cannot marshal None unless allow_none is enabled" error when using an activation key and no channels specified. - Update test fixtures and add changelog Co-authored-by: WhyIsThisOpen <WhyIsThisOpen@users.noreply.github.com>
This commit is contained in:
parent
d8a690952e
commit
7bdca72713
3 changed files with 21 additions and 3 deletions
|
|
@ -110,7 +110,7 @@ def test_without_required_parameters(capfd, patch_rhn):
|
|||
TESTED_MODULE = rhn_register.__name__
|
||||
TEST_CASES = [
|
||||
[
|
||||
# Registering an unregistered host and subscribing to one channel
|
||||
# Registering an unregistered host with channels
|
||||
{
|
||||
'channels': 'rhel-x86_64-server-6',
|
||||
'username': 'user',
|
||||
|
|
@ -137,9 +137,11 @@ TEST_CASES = [
|
|||
}
|
||||
],
|
||||
[
|
||||
# Registering an unregistered host with only an activationkey and without subscribing any channels
|
||||
# Registering an unregistered host without channels
|
||||
{
|
||||
'activationkey': 'key',
|
||||
'username': 'user',
|
||||
'password': 'pass',
|
||||
},
|
||||
{
|
||||
'calls': [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue