Yogesh Mahajan
2d58f60a53
Modifies the way to execute feature tests in parallel and it should be configured in Server Mode.
2021-05-27 11:01:25 +05:30
Yogesh Mahajan
4ee40e348c
Fixed an issue where a long time is taken to launch pgAdmin in debug mode for feature tests.
2021-04-14 11:56:38 +05:30
Akshay Joshi
e5d97e72e4
Fixed PEP8 issue.
2021-04-01 14:08:06 +05:30
Yogesh Mahajan
fe236316de
Rename the video and log file created by Selenium tests.
2021-04-01 13:07:28 +05:30
Rahul Shirsat
9d8360641f
Use schema qualification while accessing the catalog objects.
...
refs #3976
2021-03-12 11:17:25 +05:30
Khushboo Vashi
c0ef0a893d
1) Added support for Kerberos authentication, using SPNEGO to forward the Kerberos tickets through a browser. Fixes #5457
...
2) Fixed incorrect log information for AUTHENTICATION_SOURCES. Fixes #5829
2021-01-18 16:32:10 +05:30
Akshay Joshi
f0debdd513
Revert "1) Added support for Kerberos authentication, using SPNEGO to forward the Kerberos tickets through a browser. Fixes #5457 "
...
This reverts commit 6ead597b43
.
2021-01-14 14:46:59 +05:30
Khushboo Vashi
6ead597b43
1) Added support for Kerberos authentication, using SPNEGO to forward the Kerberos tickets through a browser. Fixes #5457
...
2) Fixed incorrect log information for AUTHENTICATION_SOURCES. Fixes #5829
2021-01-14 13:46:48 +05:30
Akshay Joshi
b372f08a59
Update copyright notices for 2021
2021-01-04 15:34:45 +05:30
Pradip Parkale
4da4a05611
Fixed code smell 'Remove duplicates string literals'.
2020-09-07 17:56:02 +05:30
Pradip Parkale
b562ab7681
Added shared server support for admin users. Fixes #4979
2020-09-03 12:59:28 +05:30
Cyril Jouve
5a253f9053
Change the following to replace Python 2 code with Python 3:
...
1) Replace the deprecated unit test method.
2) Wraps filter usage in a list call.
3) Converts the old metaclass syntax to new.
4) Use range instead of xrange method.
5) Change Unicode to str.
6) Several other transformations.
7) Fixed change password test cases.
8) Use simplejson instead of plain JSON.
2020-08-31 16:45:31 +05:30
Yogesh Mahajan
3984544bdb
Fixed code smell 'String literals should not be duplicated'.
2020-08-28 18:17:27 +05:30
Yogesh Mahajan
8fcf527632
Improve code coverage and API test cases for Columns and Constraints (Index, Foreign Key, Check, Exclusion). Fixes #5332
2020-08-26 12:35:22 +05:30
Aditya Toshniwal
aa679e06b2
Replace the generic exception class with a more specific one to fix SonarQube issues.
2020-08-05 12:41:28 +05:30
Aditya Toshniwal
536593bf8a
Fixed following SonarQube issues:
...
- Remove this assignment to the local variable, the value is never used.
- Rename local variables to match the regular expression
- Add logic to this except clause or eliminate it and rethrow the exception automatically.
- Rename fields to match the regular expression
- Extract this nested conditional expression into an independent statement.
- Change this default value to "None" and initialize this parameter inside the function/method.
- Update this function so that its implementation is not identical to __repr__
- Refactor this method to not always return the same value
- Reraise this exception to stop the application as the user expects
- Add missing parameters _w _PY3. This method overrides simplejson.decoder.JSONDecoder.decode.
- Remove this redundant continue.
- Remove this unused function declaration
- Remove this identity check; it will always be False.
2020-08-03 12:59:51 +05:30
Shubham Agarwal
32d904058a
Fixed SonarQube issues.
2020-08-03 11:44:27 +05:30
Aditya Toshniwal
a0893fe43b
Fixed code smell 'variable shadows a builtin' reported by SonarQube.
2020-07-28 16:20:26 +05:30
Cyril Jouve
f93cfe8c4c
Remove old Python 2 compatibility code. Fixes #5700
2020-07-27 11:03:13 +01:00
Yogesh Mahajan
dd27e08a98
Fixed code smell 'Unused local variables should be removed'.
2020-07-24 12:15:29 +05:30
Aditya Toshniwal
505a3ac960
1) Fixed cognitive complexity issues reported by SonarQube.
...
2) Fixed code smell 'Add a nested comment explaining why this method is
empty, or complete the implementation'.
2020-07-24 11:46:30 +05:30
Yogesh Mahajan
225c3e8f7e
Fixed feature tests
2020-07-20 11:59:28 +05:30
Aditya Toshniwal
d3b3d07f2e
Fixed SonarQube issues with the tag unused. All the unused variables, assignments, code comments are fixed.
2020-06-25 11:09:43 +05:30
Yogesh Mahajan
34fbe756e8
1) Fixes parallel test execution failures.
...
2) Added capability to pass browser-name via command line for parallel execution.
2020-06-22 13:05:13 +05:30
Aditya Toshniwal
3e00fe2b0f
Fixed vulnerabilities and few design suspicions where two conditional structures are having the same implementation. Reported by SonarQube
2020-06-16 11:14:57 +05:30
Yogesh Mahajan
d927a517aa
Fixed feature test failures on the selenium grid for concurrent execution.
2020-05-21 19:44:28 +05:30
Yogesh Mahajan
1294c089a8
Implement Selenium Grid to run multiple tests across different browsers, operating systems, and machines in parallel. Fixes #5255
2020-05-11 12:11:31 +05:30
Khushboo Vashi
f77aa3284f
Added LDAP authentication support. Fixes #2186
2020-04-06 15:57:05 +05:30
Pradip Parkale
e9f16a29cf
Improve code coverage and API test cases for the Event Trigger module. Fixes #5088
2020-02-14 11:19:34 +05:30
Pradip Parkale
30b4b5b349
Improve code coverage and API test cases for the LANGUAGE module. Fixes #5050 .
2020-01-20 13:16:59 +05:30
Navnath Gadakh
66f5a40cd9
Added code coverage tool for pgAdmin. Fixes #5048 .
2020-01-03 19:00:08 +05:30
Dave Page
01c7636c75
Update copyright notices for 2020.
2020-01-02 14:43:50 +00:00
Shubham Agarwal
5093e6db5e
Fixed following issues for feature test:
...
1. Modified the get_chromedriver utility for supporting python version below 3.5.
2. Handled some exceptions getting intermittently on some databases.
3. Generalized some functions with additional parameters.
4. Disabled the auto-expansion of the children nodes for maintaining the synchronization.
2019-12-03 19:35:48 +05:30
Shubham Agarwal
7b568cfce2
Fixed feature tests related to process watcher.
2019-11-13 11:19:21 +05:30
Shubham Agarwal
b48121335c
Fixed feature tests.
...
Changes included:
1. Created function for traversing the browser tree.
2. Fixed some synchronization issues.
3. Modified locators.
4. Test cases fix for the recent commits.
2019-11-11 10:49:00 +05:30
Shubham Agarwal
9f455a514e
Feature test improvement and fix intermittent failures part of #3936
2019-08-22 14:50:51 +05:30
Yosry Muhammad
7b65507533
Ensure the query tool will work with older versions of psycopg2 than we officially support, albeit without updateable resultsets. Fixes #4520
2019-08-01 13:59:53 +01:00
Aditya Toshniwal
bcb1392a1a
Ensure type names are properly encoded in the results grid. Fixes #4401
2019-08-01 13:17:00 +01:00
Dave Page
3f4d5a687b
Rename horribly named function.
2019-07-12 13:00:23 +01:00
Murtuza Zabuawala
588e3814d1
Add RE-SQL tests for Roles and Resource Groups. Fixes #4415
2019-07-03 14:38:29 +01:00
Aditya Toshniwal
6e8ebbd375
Allow editing of data where a primary key column includes a % sign in the value. Fixes #4036
...
Fix an XSS issue seen in View/Edit data mode if a column name includes HTML. Fixes #4367
2019-06-20 12:21:37 +01:00
Dave Page
6d52f2b911
Initial support for PostgreSQL 12. Fixes #4283 . Fixes #4288 . Fixes #4290 .
2019-06-10 14:24:45 +01:00
Khushboo Vashi
6f0eafb223
Fixed CSRF security vulnerability issue. per Alvin Lindstam. Fixes #4217
...
Initial patch by: Khushboo Vashi
Modified by: Ashesh Vashi and Murtuza Zabuawala
2019-05-28 10:59:51 +05:30
Usman Muzaffar
dcd163ac02
Feature test stabilisation.
2019-05-23 09:31:52 +01:00
Usman Muzaffar
5c4c09f237
Fixed feature test issues
2019-04-05 12:25:03 +05:30
Aditya Toshniwal
6fb35f2649
Overhaul the layout saving code so it includes the Query Tool and Debugger, and stores the layout when change events are detected rather than (unreliably) on exit. Fixes #4084
2019-03-26 11:08:45 -04:00
Usman Muzaffar
be26fc540c
Many fixes to the stability of the feature tests, including:
...
tree toggle issue
Query tool inteliSence issue eg. when there is only one option and drop down is not shown
Backup and restore windows locator changes
Fixes required due to resolving rm # 4041
Dependent tab not showing data sometime, so refreshed the page and handled it
Due to change of logic for auto commit, did the required changes
Due to fix of RM 4062, did the required workaround which broke the test case.
2019-03-21 12:04:37 +00:00
Aditya Toshniwal
fcfe0929d3
Ensure that browser should warn before close or refresh. Fixes #3849
2019-01-23 11:57:36 +05:30
Murtuza Zabuawala
e23d307c56
Update copyright notices for 2019
2019-01-02 15:54:12 +05:30
Murtuza Zabuawala
f4f0fa0e47
Fix utility route check for Windows.
2018-12-04 10:46:59 +00:00
Murtuza Zabuawala
9a3047c89c
Add API tests for utility check route. Fixes #3790
2018-11-30 09:56:41 +00:00
Khushboo Vashi
f17979141c
Add support for dropping multiple objects at once from the collection Properties panel. Fixes #1513
2018-10-31 10:30:37 +00:00
Akshay Joshi
6bc6bc7f60
Ensure that Utilities(Backup/Restore/Maintenence/Import-Export) should not be started
...
if binary path is wrong and also added 'Stop Process' button to cancel the process.
2018-10-22 12:35:53 +05:30
Aditya Toshniwal
6fa6939f52
Additional feature test fixes:
...
1) Changes required for working with Bootstrap 4.
2) Change to fix the timeout exception when waiting for element (tested multiple times on multiple server, did not occur to me thereafter)
3) Removed reset layout after each test case. Instead, delete the layout entry from sqlite db file and do a plain refresh. This will save some time and will also remove dependency on reset layout menu.
4) Disables tree state saving when feature test run starts. Feature tests got confused with auto expanding tree.
2018-10-17 11:50:22 +01:00
Murtuza Zabuawala
0f1651686b
Code refactoring:
...
- Move the duplicate code for closing the background process dialog into 'test_gui_helper.py',
- Simplify the logic by removing the duplicate steps to insert/update binary paths for each server type from 'test_utils.py'.
2018-10-08 11:09:30 +01:00
Akshay Joshi
4010dc80a9
Ensure auto-complete works for objects in schemas other than public and pg_catalog. Fixes #3630
2018-09-11 12:56:14 +01:00
Aditya Toshniwal
df85392bbf
Fix handling of SQL_ASCII data in the query tool. Fixes #3289 . Fixes #3250
2018-06-21 08:26:01 -04:00
Khushboo Vashi
d1902cd639
Add Python API tests for execution of external utilities such as pg_dump.
2018-06-15 11:36:07 +01:00
Joao Pedro De Almeida Pereira
876ce1799a
Skip tests where appropriate on GPDB. Fixes #3190
...
Victoria & Joao @ Pivotal.
2018-03-13 15:32:35 -04:00
Murtuza Zabuawala
7301e30ff3
Fix PEP8 issues in various modules. Fixes #3121
2018-02-19 11:12:35 +00:00
Joao Pedro De Almeida Pereira
56e922f5ab
Support Properties on Greenplum databases. Fixes #3015
2018-01-15 14:44:40 +05:30
Dave Page
89821c0d19
Update copyright notices for 2018.
2018-01-05 10:42:50 +00:00
Harshal Dhumal
88bcd3b512
Make the query tool datatype test easily configurable and extendable and add support for multi-dimensional arrays and enums.
2017-12-18 15:10:47 +00:00
Murtuza Zabuawala
2e2ca26020
Ensure role names are escaped in the membership control. Fixes #2606
2017-08-21 14:00:33 +01:00
Murtuza Zabuawala
bab3da24e6
Support SSL in the regression tests. Fixes #2170
2017-07-18 15:23:11 +01:00
Shruti B Iyer
1208206bc0
Initial re-vamp of the History tab.
2017-06-13 09:50:41 +01:00
Sarah McAlear
01bfa88309
Improvements to the Query Results grid:
...
- Improve the UI
- Allow copy/paste from sets of rows, columns or arbitrary blocks of cells
Patch by Matt, Shruti, Joao and Sarah @ Pivotal
Fixes #2476
2017-06-08 13:31:36 +01:00
Surinder Kumar
beda7ebbf2
Add feature tests for the View Data tool.
2017-06-06 12:54:20 +01:00
Joao Pedro De Almeida Pereira
3bf17d9df4
1) Splits the SQL query used to retrieve the Dependents, Dependencies, and Roles SQL file into multiple versioned files.
...
2) Add Unit Tests for each file.
3) Add ORDER BY into Copy Selection Feature test to ensure the results are retrieved always in the same order
4) Renamed the Scenario of the xss_checks_pgadmin_debugger_test and skip it for versions less than 9.1
5) Deleted unused __init__.py files.
2017-05-15 10:40:46 +05:30
Matthew Kleiman
d663d553c5
Allow column or row selection in the query tool. Fixes #2216
2017-04-18 13:28:45 +01:00
Navnath Gadakh
62716c4193
Include passed test results in the JSON output from the regression tests.
2017-04-12 13:11:53 +01:00
Murtuza Zabuawala
a2a2b8b888
Ensure the query tool displays but does not render HTML returned by the server in the results grid. Fixes #2330 .
2017-04-10 14:07:48 +01:00
Navnath Gadakh
79e81478e3
Fix a regression framework issue with Python 2.6.
2017-04-10 11:28:10 +01:00
Navnath Gadakh
dd23f71478
Write a JSON file when regression tests run, listing results.
2017-04-06 09:33:29 +01:00
Sarah McAlear
66815643a9
Fix a cleanup SQL query to enable running feature tests on CI against Greenplum.
2017-03-25 22:09:00 -04:00
Dave Page
59a6a08e8a
Add file missed from the previous commit.
2017-03-23 12:06:13 +00:00
Atira Odhner
10920404e1
Re-organised the regression directory now we have multiple test suites: move test_utils.py into python_test_utils/
2017-03-23 11:59:31 +00:00
Atira Odhner
77007996ed
Support generation of DDL for tables in Greenplum DB. Fixes #2261
2017-03-23 11:40:06 +00:00