forked from SatelliteQE/robottelo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Audit: Check for Default values on Global Registration Template (Sate…
…lliteQE#13460) * Audit: Check for Default values on Global Registration Template * mend * mend * mend * mend * mend * mend * mend * mend
- Loading branch information
1 parent
7aeb8c9
commit 76aef59
Showing
1 changed file
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
"""Tests for registration. | ||
:Requirement: Registration | ||
:CaseLevel: Acceptance | ||
:CaseComponent: Registration | ||
:CaseAutomation: Automated | ||
:CaseImportance: Critical | ||
:Team: Rocket | ||
:TestType: Functional | ||
:Upstream: No | ||
""" | ||
from robottelo.utils.datafactory import gen_string | ||
|
||
|
||
def test_positive_verify_default_values_for_global_registration( | ||
module_target_sat, | ||
default_org, | ||
): | ||
"""Check for all the Default values pre-populated in the global registration template | ||
:id: 34122bf3-ae23-47ca-ba3d-da0653d8fd33 | ||
:expectedresults: Default fields in the form should be auto-populated | ||
e.g. organization, location, rex, insights setup, etc | ||
:CaseLevel: Component | ||
:steps: | ||
1. Check for the default values in the global registration template | ||
""" | ||
module_target_sat.cli_factory.make_activation_key( | ||
{'organization-id': default_org.id, 'name': gen_string('alpha')} | ||
) | ||
with module_target_sat.ui_session() as session: | ||
cmd = session.host.get_register_command( | ||
full_read=True, | ||
) | ||
assert cmd['general']['organization'] == 'Default Organization' | ||
assert cmd['general']['location'] == 'Default Location' | ||
assert cmd['general']['capsule'] == 'Nothing to select.' | ||
assert cmd['general']['operating_system'] == '' | ||
assert cmd['general']['host_group'] == 'Nothing to select.' | ||
assert cmd['general']['insecure'] is False | ||
assert cmd['advanced']['setup_rex'] == 'Inherit from host parameter (yes)' | ||
assert cmd['advanced']['setup_insights'] == 'Inherit from host parameter (yes)' | ||
assert cmd['advanced']['token_life_time'] == '4' | ||
assert cmd['advanced']['rex_pull_mode'] == 'Inherit from host parameter (no)' | ||
assert cmd['advanced']['update_packages'] is False | ||
assert cmd['advanced']['ignore_error'] is False | ||
assert cmd['advanced']['force'] is False |