Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 17, 2024
1 parent bafedd7 commit e9349f7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/foreman/cli/test_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@
:Team: Rocket
"""
import pytest
import re

from fauxfactory import gen_string
import pytest

from robottelo.config import settings
from robottelo.constants import CLIENT_PORT
from robottelo.exceptions import CLIReturnCodeError
Expand Down Expand Up @@ -169,7 +170,6 @@ def test_negative_register_twice(module_ak_with_cv, module_org, rhel_contenthost
assert 'This system is already registered' in str(result.stderr)



@pytest.mark.rhel_ver_match('[^6]')
@pytest.mark.tier3
def test_positive_force_register_twice(module_ak_with_cv, module_org, rhel_contenthost, target_sat):
Expand Down Expand Up @@ -209,6 +209,7 @@ def test_positive_force_register_twice(module_ak_with_cv, module_org, rhel_conte
== reg_id_new
)


@pytest.mark.tier1
def test_negative_global_registration_without_ak(module_target_sat):
"""Attempt to register a host without ActivationKey
Expand All @@ -222,4 +223,4 @@ def test_negative_global_registration_without_ak(module_target_sat):
assert (
'Failed to generate registration command:\n Missing activation key!'
in context.value.message
)
)

0 comments on commit e9349f7

Please sign in to comment.