Skip to content

Commit

Permalink
Adding test for sca deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
ColeHiggins2 committed Nov 8, 2023
1 parent 034dcac commit 34e6b9f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/foreman/ui/test_organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,3 +362,24 @@ def test_positive_product_view_organization_switch(session, module_org, module_p
assert session.product.search(module_product.name)
session.organization.select(org_name="Default Organization")
assert not session.product.search(module_product.name) == module_product.name


def test_positive_prepare_for_sca_only_deprecation(target_sat):
"""Verify that Simple Content Access endpoints are depreacated and will be required
for all organizations in Satellite 6.16
:id: 08539596-1bd3-4363-9737-e45f32ee5cbb
:expectedresults: Attepting to create an Organization with sca set to False, will throw
deprecation endpoint message
"""
with target_sat.ui_session() as session:
session.organization.create(
{
'name': gen_string('alpha'),
'label': gen_string('alpha'),
'simple_content_access': False,
}
)
results = target_sat.execute('tail -100 /var/log/foreman/production.log').stdout
assert 'Simple Content Access will be required for all organizations in Katello 4.12' in results

0 comments on commit 34e6b9f

Please sign in to comment.