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 16:40:0610min 16stest pipeline
Fedora - PyTest - 15Fedora-latestx86_64❌ error23.03.2026 16:40:0410min 22stest pipeline
CentOS Stream 9 - PyTest - 13CentOS-Stream-9x86_64❌ error23.03.2026 16:40:0312min 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❌ error23.03.2026 16:40:0413min 57stest pipeline
RHEL10 - Unsubscribed host - PyTest - 16RHEL-10-Nightlyx86_64❌ error23.03.2026 16:40:0418min 52stest pipeline
RHEL8 - PyTest - 12RHEL-8.10.0-Nightlyx86_64❌ error23.03.2026 16:54:2616min 37stest pipeline
RHEL8 - PyTest - 16RHEL-8.10.0-Nightlyx86_64❌ error23.03.2026 16:40:0516min 46stest pipeline
RHEL9 - Unsubscribed host - PyTest - 13RHEL-9.6.0-Nightlyx86_64✅ passed23.03.2026 16:40:0420min 48stest pipeline
RHEL9 - Unsubscribed host - PyTest - 16RHEL-9.6.0-Nightlyx86_64✅ passed23.03.2026 16:40:0522min 29stest pipeline
RHEL9 - Unsubscribed host - PyTest - 15RHEL-9.6.0-Nightlyx86_64✅ passed23.03.2026 16:40:0521min 56stest pipeline
RHEL9 - PyTest - 15RHEL-9.6.0-Nightlyx86_64❌ error23.03.2026 16:40:0324min 1stest pipeline
RHEL8 - PyTest - 15RHEL-8.10.0-Nightlyx86_64❌ error23.03.2026 16:40:0516min 59stest pipeline
RHEL9 - PyTest - 13RHEL-9.6.0-Nightlyx86_64❌ error23.03.2026 16:40:0523min 50stest pipeline
RHEL9 - PyTest - 16RHEL-9.6.0-Nightlyx86_64❌ error23.03.2026 16:52:3024min 33stest pipeline
RHEL10 - PyTest - 16RHEL-10-Nightlyx86_64❌ error23.03.2026 16:40:0318min 42stest pipeline
RHEL8 - PyTest - 13RHEL-8.10.0-Nightlyx86_64❌ error23.03.2026 16:40:0417min 2stest pipeline
Fedora - PyTest - 18Fedora-latestx86_64❌ error23.03.2026 16:54:2911min 22stest pipeline
CentOS Stream 9 - PyTest - 18CentOS-Stream-9x86_64❌ error23.03.2026 16:52:3212min 55stest 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 16:54:2319min 29stest pipeline
RHEL10 - Unsubscribed host - PyTest - 18RHEL-10-Nightlyx86_64❌ error23.03.2026 16:40:0419min 8stest pipeline
RHEL9 - PyTest - 18RHEL-9.6.0-Nightlyx86_64❌ error23.03.2026 16:40:0524min 11stest pipeline
CentOS Stream 10 - PyTest - 18CentOS-Stream-10x86_64❌ error23.03.2026 16:40:0313min 48stest 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
@phracek
Copy link
Member Author

phracek commented Mar 23, 2026

[test-pytest]

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