pgAdmin 4 commit: Test suite improvements:

From: Dave Page <dpage(at)pgadmin(dot)org>
To: pgadmin-hackers(at)postgresql(dot)org
Subject: pgAdmin 4 commit: Test suite improvements:
Date: 2016-07-27 14:33:40
Message-ID: E1bSPu0-0007IT-3D@gothos.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Test suite improvements:

- Test framework support API testing with multiple server for this we need to modify test_config.json(for user it’s test_config.json.in) and test_advanced_config.json(for user it’s test_advanced_config.json.in). Server details of PG and PPAS are included in both .in files.

- Removed the logic of logging in the test client on each test scenario(As per Khushboo's comment in previous email). We need this logic in test cases under ‘browser/tests/’ as for test scenarios like change password and invalid login test cases as test client should be logged out first. So, as per this the code is slightly modified in ‘browser/tests/’.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=5c3c543d2ef9acb120cc7c6891eab58a9969b82e
Author: Navnath Gadakh <navnath(dot)gadakh(at)enterprisedb(dot)com>

Modified Files
--------------
.../servers/databases/tests/test_db_add.py | 17 +--
.../servers/databases/tests/test_db_delete.py | 26 ++--
.../servers/databases/tests/test_db_get.py | 29 ++---
.../servers/databases/tests/test_db_put.py | 43 +++----
.../server_groups/servers/tests/__init__.py | 2 +-
.../server_groups/servers/tests/test_server_add.py | 14 +--
.../servers/tests/test_server_delete.py | 8 +-
.../server_groups/servers/tests/test_server_get.py | 10 +-
.../server_groups/servers/tests/test_server_put.py | 13 +-
.../browser/server_groups/tests/__init__.py | 2 +-
.../browser/server_groups/tests/test_sg_get.py | 14 ---
web/pgadmin/browser/tests/__init__.py | 2 +-
web/pgadmin/browser/tests/test_change_password.py | 21 +---
web/pgadmin/browser/tests/test_login.py | 22 ++--
web/pgadmin/browser/tests/test_logout.py | 14 ++-
web/pgadmin/browser/tests/test_reset_password.py | 20 +--
web/pgadmin/utils/route.py | 24 +++-
web/regression/runtests.py | 15 ++-
web/regression/test_advanced_config.json.in | 96 ++++++++++++++-
web/regression/test_config.json.in | 12 +-
web/regression/test_utils.py | 134 ++++++++++++---------
21 files changed, 306 insertions(+), 232 deletions(-)

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2016-07-27 14:35:14 pgAdmin 4 commit: Minor readme tweak.
Previous Message Dave Page 2016-07-27 14:11:24 Re: patch for issue RM1260 [pgAdmin4]