Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.15.z] Check Content Source on LBA host registration #13816

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions tests/foreman/destructive/test_capsule_loadbalancer.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,12 @@ def test_client_register_through_lb(
:steps:
1. Setup capsules, host and loadbalancer.
2. Generate curl command for host registration.
3. Register host through loadbalancer using global registration
3. Register host through loadbalancer using global registration.

:expectedresults: Global Registration should have option to register through
loadbalancer and host should get registered successfully.
loadbalancer and host should get registered successfully with Content Source set.

:BZ: 1963266
:BZ: 1963266, 2254612

:customerscenario: true
"""
Expand All @@ -274,6 +274,12 @@ def test_client_register_through_lb(
in rhel_contenthost.subscription_config['server']['hostname']
)
assert CLIENT_PORT == rhel_contenthost.subscription_config['server']['port']
assert loadbalancer_setup['module_target_sat'].cli.Host.info(
{'name': rhel_contenthost.hostname}, output_format='json'
)['content-information']['content-source']['name'] in [
setup_capsules['capsule_1'].hostname,
setup_capsules['capsule_2'].hostname,
], 'Unexpected Content Source is set or missing'

# Host registration by Second Capsule through Loadbalancer
result = rhel_contenthost.register(
Expand Down
Loading