68 Commits

Author SHA1 Message Date
signedav
04d770d613 removed unused docs
and unused db entry
2018-09-14 15:33:57 +10:00
signedav
e972e21a09 test db stuff json 2018-09-14 15:33:57 +10:00
Nyall Dawson
26174ea9ad Copy cached min/max value to provider test suite 2018-05-15 09:23:48 +10:00
Alessandro Pasotti
f2304c1b15
Merge pull request #6764 from tudorbarascu/featureinfo_values
server tests for GetFeatureinfo different widget values
2018-05-08 15:24:40 +02:00
rldhont
280018dc5f [Oracle][Tests] Enhance Geometry creation SQL script 2018-05-05 12:24:16 +10:00
rldhont
a11db8bbe1 [Oracle][Tests] Enhance Point convertion test
Instead of using 'SDO_UTIL.FROM_WKTGEOMETRY' to generate `SDO_GEOMETRY` object
for Point, the `testdata` generate Point and MultiPoint with `SDO_POINT_TYPE`
or `SDO_ELEM_INFO_ARRAY` and `SDO_ORDINATE_ARRAY`.

With this way of creating Point and MultiPoint, we can test the way Point and
MultiPoint are converting to WKB.
2018-05-05 12:24:16 +10:00
Nyall Dawson
92a80894ac [oracle] Add read-only support for curved geometry types
Previously these geometries were silently discarded

Fixes #12675, #16809

Sponsored by Open Spatial (http://www.openspatial.com)
2018-04-24 09:10:39 +12:00
Tudor Bărăscu
27b417004b Add GetFeature test with array layer
Also added the missing response xmls (forgot to add them
in previous commits)
2018-04-11 15:31:14 +03:00
Nyall Dawson
feb20a7a27 Add unit test for postgres layer metadata 2018-03-15 10:43:04 +11:00
Denis Rouzaud
bfe35c26ea [postgres] use pg_type rather than information_schema.domain_constraints to retrieve domain
otherwise there is no warranty to retrieve the correct constraint as its name is not unique
2018-02-11 17:29:18 -04:00
Denis Rouzaud
781b587090 add test for postgres domains 2018-02-10 15:27:06 -04:00
Blottiere Paul
aed6608095 Add test 2018-01-29 07:17:33 +00:00
Alessandro Pasotti
698befa9dd [gpkg] Add test for gpkg subsetstring don't unlock mutex twice
I wanted to add the test for gpkg subsetstring even if
it was not bugged, while testing that, I hit an assert
in Qt core that pointed me to double unlocked locks.
2018-01-25 15:16:53 +01:00
Martin Dobias
ccd98f5d6c Added test 2018-01-17 15:38:27 +01:00
Nyall Dawson
741afdca55 Add provider suite test for thread safety of provider getFeatures()
Hammers providers by iterating through features from multiple threads
2018-01-16 13:57:14 +10:00
Alessandro Pasotti
9c8533455f [bugfix][ogr] Tests for capabilities update on filter changes
Fixes #17795
2018-01-05 15:43:28 +01:00
Matthias Kuhn
83f9e81e95 [travis] Less noise for DB initialisation 2017-10-07 14:21:13 +02:00
Matthias Kuhn
ae9f263e96
Create test postgres database with UTF-8 2017-09-28 13:22:37 +02:00
Denis Rouzaud
4600ce5891
some fixes 2017-09-28 13:18:27 +02:00
Denis Rouzaud
531dadf682
fix psql 2017-09-28 13:18:26 +02:00
Blottiere Paul
4a084bf961 Add tests 2017-09-06 14:46:37 +01:00
Sandro Santilli
7af47c2afa Add a raster table to the test postgis setup, use it from dbmanager test 2017-06-06 09:51:30 +02:00
Matthias Kuhn
e7e73bafcf Add test for postgres boolean 2017-04-10 22:47:41 +02:00
Matthias Kuhn
56b4976225 Make test database setup more quiet 2017-03-04 16:02:57 +01:00
Matthias Kuhn
dbbf062e5d Fix bindings and tests 2016-12-20 01:20:08 +01:00
Matthias Kuhn
930ce545a8 Fix failing tests 2016-12-20 01:20:08 +01:00
Nyall Dawson
d1fd588499 Add method to fetch constraints from a vector data provider
Implemented for unique and not null constraints for postgres
provider
2016-11-02 11:07:07 +10:00
Patrick Valsecchi
abc55f4c42 Add support for arrays in PostgresQL
Fix parsing of PostgresQL hstore. Had problems when the key or values were
containing comas.
2016-09-12 10:33:00 +02:00
Patrick Valsecchi
3d6e7c8bdb Add hstore support to the postgres provider 2016-09-08 09:51:46 +02:00
Patrick Valsecchi
7169079f91 Smarter default edit widgets with plugins to pick them
Now the widgets factories can give a score on how good they could handle
a widget.

Additionaly, plugins can be added to choose a widget factory in function
of an external information. One of them uses a table in PostgresQL to
allow specification of the widget type and configuration.

I took the opportunity to remove a few deprecated method in relation to
this.
2016-09-05 14:22:17 +02:00
Matthias Kuhn
a529b448e7 Revert "Merge pull request #3338 from pvalsecc/editor_widgets_selection"
This reverts commit bbafbf48872eda48a2be8876cc89a0770552c6ad, reversing
changes made to 13ac0434e10fc7edd1eca665ea7c8b6cb5fd212d.
2016-08-29 19:22:04 +02:00
Patrick Valsecchi
24bde35ce6 Smarter default edit widgets with plugins to pick them
Now the widgets factories can give a score on how good they could handle
a widget.

Additionaly, plugins can be added to choose a widget factory in function
of an external information. One of them uses a table in PostgresQL to
allow specification of the widget type and configuration.

I took the opportunity to remove a few deprecated method in relation to
this.
2016-08-29 07:42:50 +02:00
Denis Rouzaud
ea4e5cb7c0 additional fields should be placed at the end 2016-08-15 10:48:39 +02:00
Nyall Dawson
c2a232848c Add provider test for postgres with compound key 2016-08-15 10:48:33 +02:00
Nyall Dawson
f9d839fac5 [oracle] Fix handling of date/time types
Also add test for Oracle default values

On behalf of Faunalia, sponsored by ENEL
2016-07-07 22:17:45 +10:00
Nyall Dawson
38e65c3f75 [oracle] Implement provider test suite
On behalf of Faunalia, sponsored by ENEL
2016-07-06 16:35:58 +10:00
Nyall Dawson
ccc67ef7a5 Rename attributes support for postgres provider 2016-06-02 17:09:45 +10:00
Patrick Valsecchi
e79a327ab7 WMS GetCapabilities: override parent's style if they have the same name
When there is a layer group with several sub-layers, the group has a
"default" style and the sub-layers each have a "default" layer. QGIS
was showing two "default" styles for the sub-layers, which would be
confusing to the user and could pick the wrong legend for the
sub-layer if the user picked the wrong entry (the first one).

Had to create a static lib for wmsprovider in order to unittest it.
2016-05-29 12:47:57 +02:00
Nyall Dawson
fdd68963c7 [postgres] Improved handling of DOMAIN type fields
- show correct domain type as field type name
- correctly determine length and precision of domain types
- expose bpchar field type as 'character' to users, as postgres only
uses 'bpchar' internally and refers to bpchar as character in the
front end
2016-04-22 17:37:51 +10:00
Matthias Kuhn
a6a77ee46b Remove remainders of buggy pg test 2016-04-07 22:51:43 +02:00
Matthias Kuhn
5cd2319c3f Also retrieve generated values for pktInt 2016-04-07 21:26:43 +02:00
Matthias Kuhn
eecd77a324 Fix postgres unit test 2016-04-07 21:24:01 +02:00
Matthias Kuhn
e98e16f1b2 Unit test for 4ec97c33 2016-04-07 15:59:22 +02:00
David Adler
5fe19c5f15 merged DB2 updates
[FEATURE] New vector data provider for DB2 sources
2016-04-04 07:55:50 +10:00
Nyall Dawson
527fe9d234 Fix mssql provider test data 2016-03-03 10:31:59 +11:00
Sandro Santilli
034b5c0be5 Make PG initialization scripts work with PostgreSQL 9.1
- Remove lock_timeout setting
   See https://travis-ci.org/qgis/QGIS/jobs/109844438#L942

 - Remove CREATE SCHEMA IF NOT EXISTS
   See https://travis-ci.org/qgis/QGIS/jobs/109891682#L1016
2016-02-17 18:13:45 +01:00
Sandro Santilli
cdf05acac8 Add script to create and initialize postgis test database 2016-02-17 11:08:18 +01:00
Nyall Dawson
0a64c16e98 Add polygon test for mssql provider 2016-02-03 08:38:00 +11:00
Nyall Dawson
96d8986b9f Add polygon layers to provider tests, so we can test ExactIntersect
feature requests
2016-01-31 20:42:11 +11:00
Nyall Dawson
49e45675ee Correct handling of date and time values in mssql provider 2016-01-30 08:33:09 +11:00