Skip to content

Commit

Permalink
bypass assertion for rhel7 version
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaysawant committed Jun 27, 2024
1 parent 5358fb7 commit 2b2c5d7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/foreman/cli/test_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -2741,7 +2741,8 @@ def test_positive_host_registration_with_capsule(

# Check output for "HTTP error code 422: Validation failed: Content view environment content facets is invalid"
assert 'Validation failed' in result.stderr, f'Error is: {result.stderr}'
assert 'HTTP error code 422' in result.stderr, f'Error is: {result.stderr}'
if '7' not in rhel_contenthost.deploy_rhel_version:
assert 'HTTP error code 422' in result.stderr, f'Error is: {result.stderr}'

# Re-register client with settings "validate_host_lce_content_source_coherence" is set to No
target_sat.cli.Settings.set(
Expand All @@ -2758,4 +2759,5 @@ def test_positive_host_registration_with_capsule(

# Check output there should not any error like "Validation failed" or "HTTP error code 422"
assert 'Validation failed' not in result.stderr, f'Error is: {result.stderr}'
assert 'HTTP error code 422' not in result.stderr, f'Error is: {result.stderr}'
if '7' not in rhel_contenthost.deploy_rhel_version:
assert 'HTTP error code 422' not in result.stderr, f'Error is: {result.stderr}'

0 comments on commit 2b2c5d7

Please sign in to comment.