Skip to content

Commit

Permalink
Customer Case testing for database issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sambible committed Oct 3, 2024
1 parent 73bc6a5 commit b4b16ae
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/foreman/api/test_contentview.py
Original file line number Diff line number Diff line change
Expand Up @@ -1080,6 +1080,28 @@ def test_cv_audit_scenarios(self, module_product, target_sat):
assert not self.yumcv.read().needs_publish


@pytest.mark.tier2
def test_repository_rpm_size(target_sat):
"""Katello_repository_rpms_id_seq needs to have the type bigint to allow
repeated publishing of Content Views by customers.
:id: a506782f-1edd-4568-99bb-d289212156ba
:steps:
1. Login to the Satellite cli and access the foreman posgres shell
2. Search for katello_repository_rpms_id_seq
:expectedresults: katello_repository_rpms_id_seq should have the type bigint, and not the type integer
:CaseImportance: Medium
"""
db_out = target_sat.execute(
'sudo -u postgres psql -d foreman -c "select * from pg_sequences where sequencename=\'katello_repository_rpms_id_seq\';"'
)
assert 'bigint' in db_out.stdout
assert 'integer' not in db_out.stdout


@pytest.mark.tier2
def test_negative_readonly_user_actions(
target_sat, function_role, content_view, module_org, module_lce
Expand Down

0 comments on commit b4b16ae

Please sign in to comment.