Skip to content

Commit

Permalink
[6.15.z] [pre-commit.ci] pre-commit autoupdate (#17233)
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate (#17231)

updates:
- [github.com/gitleaks/gitleaks: v8.22.0 → v8.22.1](gitleaks/gitleaks@v8.22.0...v8.22.1)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
(cherry picked from commit 1f7402b)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
2 people authored and amolpati30 committed Jan 3, 2025
1 parent 6a05bd6 commit e8ddfac
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion tests/foreman/cli/test_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,14 @@ def test_host_registration_end_to_end(
:steps:
1. Register host with global registration template to Satellite and Capsule
2. Check the host is registered and verify host owner name
:expectedresults: Host registered successfully
:expectedresults: Host registered successfully with valid owner name
:verifies: SAT-14716
:BZ: 2156926, 2252768
:customerscenario: true
"""
org = module_sca_manifest_org
Expand All @@ -57,6 +60,14 @@ def test_host_registration_end_to_end(
rc = 1 if rhel_contenthost.os_version.major == 6 else 0
assert result.status == rc, f'Failed to register host: {result.stderr}'

owner_name = module_target_sat.cli.Host.info(
options={'name': rhel_contenthost.hostname, 'fields': 'Additional info/owner'}
)
# Verify host owner name set correctly
assert 'Admin User' in owner_name['additional-info']['owner']['name'], (
f'Host owner name is incorrect: ' f'{owner_name["additional-info"]["owner"]["name"]}'
)

# Verify server.hostname and server.port from subscription-manager config
assert module_target_sat.hostname == rhel_contenthost.subscription_config['server']['hostname']
assert rhel_contenthost.subscription_config['server']['port'] == CLIENT_PORT
Expand All @@ -79,6 +90,14 @@ def test_host_registration_end_to_end(
rc = 1 if rhel_contenthost.os_version.major == 6 else 0
assert result.status == rc, f'Failed to register host: {result.stderr}'

owner_name = module_target_sat.cli.Host.info(
options={'name': rhel_contenthost.hostname, 'fields': 'Additional info/owner'}
)
# Verify capsule host owner name set correctly
assert 'Admin User' in owner_name['additional-info']['owner']['name'], (
f'Host owner name is incorrect: ' f'{owner_name["additional-info"]["owner"]["name"]}'
)

# Verify server.hostname and server.port from subscription-manager config
assert (
module_capsule_configured.hostname
Expand Down

0 comments on commit e8ddfac

Please sign in to comment.