Skip to content

Commit 1a17b90

Browse files
committed
Disable PG test
1 parent 14df327 commit 1a17b90

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

.ci/travis/linux/blacklist.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@ PyQgsServerAccessControl
3333
# Need a local postgres installation
3434
PyQgsAuthManagerPKIPostgresTest
3535
PyQgsAuthManagerPasswordPostgresTest
36+
PyQgsAuthManagerOgrPostgresTest

src/auth/basic/qgsauthbasicmethod.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ bool QgsAuthBasicMethod::updateDataSourceUriItems( QStringList &connectionItems,
135135
if ( uri.startsWith( QStringLiteral( "PG:" ) ) )
136136
{
137137
bool chopped = false;
138-
if ( uri.endsWith('"'))
138+
if ( uri.endsWith( '"' ) )
139139
{
140140
uri.chop( 1 );
141141
chopped = true;
@@ -162,7 +162,7 @@ bool QgsAuthBasicMethod::updateDataSourceUriItems( QStringList &connectionItems,
162162
else if ( uri.startsWith( QStringLiteral( "IDB" ) ) )
163163
{
164164
bool chopped = false;
165-
if ( uri.endsWith('"'))
165+
if ( uri.endsWith( '"' ) )
166166
{
167167
uri.chop( 1 );
168168
chopped = true;
@@ -222,7 +222,7 @@ bool QgsAuthBasicMethod::updateDataSourceUriItems( QStringList &connectionItems,
222222
// Handle sub-layers
223223
if ( fullUri.contains( '|' ) )
224224
{
225-
uri += '|' + fullUri.right( fullUri.length() - fullUri.lastIndexOf( '|' ) - 1);
225+
uri += '|' + fullUri.right( fullUri.length() - fullUri.lastIndexOf( '|' ) - 1 );
226226
}
227227
connectionItems.replace( 0, uri );
228228
}

tests/src/python/test_authmanager_ogr.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,8 @@
22
"""
33
Tests for auth manager Basic Auth OGR connection credentials injection
44
5-
65
From build dir, run: ctest -R PyQgsAuthManagerOgrTest -V
76
8-
or, if your PostgreSQL path differs from the default:
9-
10-
QGIS_POSTGRES_EXECUTABLE_PATH=/usr/lib/postgresql/<your_version_goes_here>/bin \
11-
ctest -R PyQgsAuthManagerOgrTest -V
12-
137
.. note:: This program is free software; you can redistribute it and/or modify
148
it under the terms of the GNU General Public License as published by
159
the Free Software Foundation; either version 2 of the License, or
@@ -21,9 +15,7 @@
2115
QgsApplication,
2216
QgsAuthManager,
2317
QgsAuthMethodConfig,
24-
QgsVectorLayer,
2518
QgsDataSourceUri,
26-
QgsWkbTypes,
2719
QgsProviderRegistry,
2820
)
2921

0 commit comments

Comments
 (0)