|
23 | 23 | pytestmark = [pytest.mark.run_in_one_thread] |
24 | 24 |
|
25 | 25 |
|
26 | | -@pytest.fixture(scope='module') |
27 | | -def golden_ticket_host_setup(request, module_sca_manifest_org, module_target_sat): |
28 | | - new_product = module_target_sat.cli_factory.make_product( |
29 | | - {'organization-id': module_sca_manifest_org.id} |
30 | | - ) |
31 | | - new_repo = module_target_sat.cli_factory.make_repository({'product-id': new_product['id']}) |
32 | | - module_target_sat.cli.Repository.synchronize({'id': new_repo['id']}) |
33 | | - return module_target_sat.cli_factory.make_activation_key( |
34 | | - { |
35 | | - 'lifecycle-environment': 'Library', |
36 | | - 'content-view': 'Default Organization View', |
37 | | - 'organization-id': module_sca_manifest_org.id, |
38 | | - 'auto-attach': False, |
39 | | - } |
40 | | - ) |
41 | | - |
42 | | - |
43 | 26 | def test_positive_manifest_upload(function_sca_manifest_org, module_target_sat): |
44 | 27 | """upload manifest |
45 | 28 |
|
@@ -244,36 +227,6 @@ def test_positive_candlepin_events_processed_by_STOMP(): |
244 | 227 | """ |
245 | 228 |
|
246 | 229 |
|
247 | | -def test_positive_auto_attach_disabled_golden_ticket( |
248 | | - module_org, module_location, golden_ticket_host_setup, rhel7_contenthost_class, target_sat |
249 | | -): |
250 | | - """Verify that Auto-Attach is disabled or "Not Applicable" |
251 | | - when a host organization is in Simple Content Access mode (Golden Ticket) |
252 | | -
|
253 | | - :id: 668fae4d-7364-4167-967f-6fc31ba52d26 |
254 | | -
|
255 | | - :expectedresults: auto attaching a subscription is not allowed |
256 | | - and returns an error message |
257 | | -
|
258 | | - :customerscenario: true |
259 | | -
|
260 | | - :BZ: 1718954 |
261 | | -
|
262 | | - :parametrized: yes |
263 | | -
|
264 | | - :CaseImportance: Medium |
265 | | - """ |
266 | | - rhel7_contenthost_class.register( |
267 | | - module_org, module_location, golden_ticket_host_setup['name'], target_sat |
268 | | - ) |
269 | | - assert rhel7_contenthost_class.subscribed |
270 | | - host = target_sat.cli.Host.list({'search': rhel7_contenthost_class.hostname}) |
271 | | - host_id = host[0]['id'] |
272 | | - with pytest.raises(CLIReturnCodeError) as context: |
273 | | - target_sat.cli.Host.subscription_auto_attach({'host-id': host_id}) |
274 | | - assert "This host's organization is in Simple Content Access mode" in str(context.value) |
275 | | - |
276 | | - |
277 | 230 | def test_negative_check_katello_reimport(request, target_sat, function_org): |
278 | 231 | """Verify katello:reimport trace should not fail with an TypeError |
279 | 232 |
|
|
0 commit comments