Container PyTest suite for Postgresql-container#640
Container PyTest suite for Postgresql-container#640phracek wants to merge 16 commits intosclorg:masterfrom
Conversation
Pull Request validationFailed🔴 Review - Missing review from a member (1 required) Success🟢 CI - All checks have passed |
|
Let's try first round |
Testing Farm results
|
d7126c2 to
a7a86fd
Compare
|
Let's try next round |
pkhartsk
left a comment
There was a problem hiding this comment.
Found some things and included proposed fixes for both
|
I will rewrite it so that each commit will represent each test suite and ocp_renaming will be a part of another PR. |
8f8b048 to
7eedd72
Compare
f6fea7d to
b24e0a8
Compare
b24e0a8 to
9a51951
Compare
9a51951 to
c4921d6
Compare
|
@fila43 Please review parts |
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>
6ae07ed to
5217d9d
Compare
|
Rebased against 'master' branch [test-pytest][test] |
frenzymadness
left a comment
There was a problem hiding this comment.
First few ideas.
Also, there are typos in commit messages: propoer instead of proper and test_container_generall.py instead of test_container_general.py
| username=username, | ||
| password=password, | ||
| container_id=VARS.IMAGE_NAME, | ||
| ) |
There was a problem hiding this comment.
This should fail as it uses the old password. If not, this part is likely worthless.
There was a problem hiding this comment.
It is really not needed. Based on the run_test script.
There was a problem hiding this comment.
This piece of code is still there.
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>
Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
Test summary for version 16 ``` =========================== short test summary info ============================ PASSED test_container_migrate.py::TestPostgreSQLMigration::test_migration_functionality[13] PASSED test_container_migrate.py::TestPostgreSQLMigration::test_migration_functionality[15] SKIPPED [1] test_container_migrate.py:55: registry.redhat.io/rhel9/postgresql-12 image not found in registry so skipping migration test.. SKIPPED [1] test_container_migrate.py:51: Migration path from 16 -> 16 is not valid so skipping. SKIPPED [1] test_container_migrate.py:51: Migration path from 18 -> 16 is not valid so skipping. ``` Test summary for version 18 ``` =========================== short test summary info ============================ PASSED test_container_migrate.py::TestPostgreSQLMigration::test_migration_functionality[13] PASSED test_container_migrate.py::TestPostgreSQLMigration::test_migration_functionality[15] PASSED test_container_migrate.py::TestPostgreSQLMigration::test_migration_functionality[16] SKIPPED [1] test_container_migrate.py:55: registry.redhat.io/rhel9/postgresql-12 image not found in registry so skipping migration test.. SKIPPED [1] test_container_migrate.py:51: Migration path from 18 -> 18 is not valid so skipping. ``` Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
Skip in case of previous version does not exist Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
Sometimes /usr/libexec/check-container does not work properly. Let's check it by accepting connections by simple command Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
Delete temporary directories at the end of each tests We do not need SSL warnings at all. Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
5217d9d to
a116509
Compare
This pull request adds PyTest suite migrated from
run_pytestscripts.All tests are migrated except
run_migration_testandrun_upgrade_test.