Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customer Case testing for database issues #16566

Merged
merged 3 commits into from
Oct 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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