diff --git a/tests/foreman/api/test_registration.py b/tests/foreman/api/test_registration.py index 77fd856db11..7f722af8050 100644 --- a/tests/foreman/api/test_registration.py +++ b/tests/foreman/api/test_registration.py @@ -227,3 +227,14 @@ def test_negative_global_registration_without_ak(module_target_sat): with pytest.raises(HTTPError) as context: module_target_sat.api.RegistrationCommand().create() assert 'Missing activation key!' in context.value.response.text + + +def test_positive_capsule_without_registration_module(module_target_sat, module_capsule_configured): + module_target_sat.api.SmartProxy().search( + query={'search': f'name = {module_capsule_configured.hostname}'} + )[0] + res = module_capsule_configured.install( + cmd_args={}, + cmd_kwargs={'foreman-proxy-registration': 'false', 'foreman-proxy-templates': 'true'}, + ) + assert res.status == 0