Skip to content

Commit

Permalink
[6.16.z] Customer Case testing for database issues (#16576)
Browse files Browse the repository at this point in the history
  • Loading branch information
Satellite-QE authored Oct 15, 2024
1 parent a8a8dc0 commit caf97dc
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_rpms_id_type(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 caf97dc

Please sign in to comment.