diff --git a/robottelo/constants/__init__.py b/robottelo/constants/__init__.py index 179d8b5e5da..753e0541fa2 100644 --- a/robottelo/constants/__init__.py +++ b/robottelo/constants/__init__.py @@ -1153,6 +1153,19 @@ 'lock_report_templates', ], 'Role': ['view_roles', 'create_roles', 'edit_roles', 'destroy_roles'], + 'SccAccount': [ + "delete_scc_accounts", + "edit_scc_accounts", + "new_scc_accounts", + "sync_scc_accounts", + "test_connection_scc_accounts", + "use_scc_accounts", + "view_scc_accounts", + ], + 'SccProduct': [ + "subscribe_scc_products", + "view_scc_products", + ], 'Setting': ['view_settings', 'edit_settings'], 'SmartProxy': [ 'view_smart_proxies', diff --git a/tests/foreman/api/test_permission.py b/tests/foreman/api/test_permission.py index 2f9939d84bf..731ad88017e 100644 --- a/tests/foreman/api/test_permission.py +++ b/tests/foreman/api/test_permission.py @@ -68,6 +68,9 @@ def create_permissions(self, class_target_sat): cls.permissions.pop('ForemanPuppet::HostClass') cls.permissions.pop('ForemanPuppet::Puppetclass') cls.permissions.pop('ForemanPuppet::PuppetclassLookupKey') + if 'rubygem-foreman_scc_manager' not in rpm_packages: + cls.permissions.pop('SccAccount') + cls.permissions.pop('SccProduct') #: e.g. ['Architecture', 'Audit', 'AuthSourceLdap', …] cls.permission_resource_types = list(cls.permissions.keys())