Skip to content

Container PyTest suite for Postgresql-container#640

Open
phracek wants to merge 10 commits intosclorg:masterfrom
phracek:container_pytests
Open

Container PyTest suite for Postgresql-container#640
phracek wants to merge 10 commits intosclorg:masterfrom
phracek:container_pytests

Conversation

@phracek
Copy link
Member

@phracek phracek commented Jan 6, 2026

This pull request adds PyTest suite migrated from run_pytest scripts.

run_container_creation_tests -> test_container_configuration.py
run_general_tests -> test_container_general.py
run_change_password_test -> test_container_password.py
run_replication_test -> test_container_replication.py
run_s2i_test -> test_container_basics.py
run_test_cfg_hook -> test_container_configuration.py
run_s2i_bake_data_test -> test_container_ssl.py
run_s2i_enable_ssl_test -> test_container_ssl.py
run_pgaudit_test -> test_container_extensions.py
run_pgvector_test -> test_container_extensions.py
run_env_extension_load_test -> test_container_extensions.py
run_logging_test -> test_container_logging.py

All tests are migrated except run_migration_test and run_upgrade_test.

@github-actions
Copy link

github-actions bot commented Jan 6, 2026

Pull Request validation

Failed

🔴 Review - Missing review from a member (1 required)

Success

🟢 CI - All checks have passed

@phracek
Copy link
Member Author

phracek commented Jan 6, 2026

Let's try first round
[test-pytest]

@github-actions
Copy link

github-actions bot commented Jan 6, 2026

Testing Farm results

namecomposearchstatusstarted (UTC)timelogs
Fedora - PyTest - 16Fedora-latestx86_64❌ error23.03.2026 14:48:425min 8stest pipeline
Fedora - PyTest - 15Fedora-latestx86_64❌ error23.03.2026 14:42:175min 33stest pipeline
CentOS Stream 9 - PyTest - 13CentOS-Stream-9x86_64❌ error23.03.2026 14:42:2012min 46stest pipeline
CentOS Stream 10 - PyTest - 16CentOS-Stream-10x86_64❌ error23.03.2026 14:42:2012min 49stest pipeline
CentOS Stream 9 - PyTest - 15CentOS-Stream-9x86_64❌ error23.03.2026 14:56:5112min 42stest pipeline
CentOS Stream 9 - PyTest - 16CentOS-Stream-9x86_64✅ passed07.01.2026 13:53:5011min 40stest pipeline
RHEL10 - Unsubscribed host - PyTest - 16RHEL-10-Nightlyx86_64❌ error23.03.2026 14:42:1718min 31stest pipeline
RHEL8 - PyTest - 12RHEL-8.10.0-Nightlyx86_64❌ error23.03.2026 14:42:2016min 57stest pipeline
RHEL8 - PyTest - 16RHEL-8.10.0-Nightlyx86_64❌ error23.03.2026 14:42:1716min 40stest pipeline
RHEL9 - Unsubscribed host - PyTest - 13RHEL-9.6.0-Nightlyx86_64✅ passed23.03.2026 14:42:1720min 56stest pipeline
RHEL9 - Unsubscribed host - PyTest - 16RHEL-9.6.0-Nightlyx86_64✅ passed23.03.2026 14:42:1822min 38stest pipeline
RHEL9 - Unsubscribed host - PyTest - 15RHEL-9.6.0-Nightlyx86_64✅ passed07.01.2026 13:53:4319min 22stest pipeline
RHEL9 - PyTest - 15RHEL-9.6.0-Nightlyx86_64❌ error23.03.2026 14:42:1824min 18stest pipeline
RHEL8 - PyTest - 15RHEL-8.10.0-Nightlyx86_64❌ error23.03.2026 14:42:2016min 43stest pipeline
RHEL9 - PyTest - 13RHEL-9.6.0-Nightlyx86_64❌ error23.03.2026 15:00:4623min 28stest pipeline
RHEL9 - PyTest - 16RHEL-9.6.0-Nightlyx86_64❌ error23.03.2026 14:55:0624min 8stest pipeline
RHEL10 - PyTest - 16RHEL-10-Nightlyx86_64❌ error23.03.2026 14:42:1918min 31stest pipeline
RHEL8 - PyTest - 13RHEL-8.10.0-Nightlyx86_64❌ error23.03.2026 14:42:1818min 8stest pipeline
Fedora - PyTest - 18Fedora-latestx86_64❌ error23.03.2026 14:42:185min 17stest pipeline
CentOS Stream 9 - PyTest - 18CentOS-Stream-9x86_64❌ error23.03.2026 14:42:1813min 5stest pipeline
RHEL9 - Unsubscribed host - PyTest - 18RHEL-9.6.0-Nightlyx86_64✅ passed23.03.2026 14:42:2022min 58stest pipeline
RHEL10 - PyTest - 18RHEL-10-Nightlyx86_64❌ error23.03.2026 14:48:4119min 14stest pipeline
RHEL10 - Unsubscribed host - PyTest - 18RHEL-10-Nightlyx86_64❌ error23.03.2026 14:56:5618min 36stest pipeline
RHEL9 - PyTest - 18RHEL-9.6.0-Nightlyx86_64❌ error23.03.2026 14:56:4124min 14stest pipeline

@phracek
Copy link
Member Author

phracek commented Jan 7, 2026

Let's try next round
[test-pytest]

Copy link
Contributor

@pkhartsk pkhartsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found some things and included proposed fixes for both

@phracek
Copy link
Member Author

phracek commented Mar 18, 2026

I will rewrite it so that each commit will represent each test suite and ocp_renaming will be a part of another PR.

phracek added 9 commits March 23, 2026 15:33
Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
run_s2i_test -> test_container_basics.py

Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
run_container_creation_tests -> test_container_configuration.py
run_test_cfg_hook -> test_container_configuration.py

Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
run_pgaudit_test -> test_container_extensions.py
run_pgvector_test -> test_container_extensions.py
run_env_extension_load_test -> test_container_extensions.py

Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
run_general_tests -> test_container_general.py

Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
run_logging_test -> test_container_logging.py

Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
run_change_password_test -> test_container_password

Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
run_replication_test -> test_container_replication.py

Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
run_s2i_bake_data_test -> test_container_ssl.py
run_s2i_enable_ssl_test -> test_container_ssl.py

Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
@phracek phracek force-pushed the container_pytests branch from 8f8b048 to 7eedd72 Compare March 23, 2026 14:40
@phracek
Copy link
Member Author

phracek commented Mar 23, 2026

[test-pytest]

Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
@phracek phracek requested a review from frenzymadness March 23, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants