Skip to content

Commit

Permalink
Disable PG test
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Nov 14, 2017
1 parent 14df327 commit 1a17b90
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
1 change: 1 addition & 0 deletions .ci/travis/linux/blacklist.txt
Expand Up @@ -33,3 +33,4 @@ PyQgsServerAccessControl
# Need a local postgres installation
PyQgsAuthManagerPKIPostgresTest
PyQgsAuthManagerPasswordPostgresTest
PyQgsAuthManagerOgrPostgresTest
6 changes: 3 additions & 3 deletions src/auth/basic/qgsauthbasicmethod.cpp
Expand Up @@ -135,7 +135,7 @@ bool QgsAuthBasicMethod::updateDataSourceUriItems( QStringList &connectionItems,
if ( uri.startsWith( QStringLiteral( "PG:" ) ) )
{
bool chopped = false;
if ( uri.endsWith('"'))
if ( uri.endsWith( '"' ) )
{
uri.chop( 1 );
chopped = true;
Expand All @@ -162,7 +162,7 @@ bool QgsAuthBasicMethod::updateDataSourceUriItems( QStringList &connectionItems,
else if ( uri.startsWith( QStringLiteral( "IDB" ) ) )
{
bool chopped = false;
if ( uri.endsWith('"'))
if ( uri.endsWith( '"' ) )
{
uri.chop( 1 );
chopped = true;
Expand Down Expand Up @@ -222,7 +222,7 @@ bool QgsAuthBasicMethod::updateDataSourceUriItems( QStringList &connectionItems,
// Handle sub-layers
if ( fullUri.contains( '|' ) )
{
uri += '|' + fullUri.right( fullUri.length() - fullUri.lastIndexOf( '|' ) - 1);
uri += '|' + fullUri.right( fullUri.length() - fullUri.lastIndexOf( '|' ) - 1 );
}
connectionItems.replace( 0, uri );
}
Expand Down
8 changes: 0 additions & 8 deletions tests/src/python/test_authmanager_ogr.py
Expand Up @@ -2,14 +2,8 @@
"""
Tests for auth manager Basic Auth OGR connection credentials injection
From build dir, run: ctest -R PyQgsAuthManagerOgrTest -V
or, if your PostgreSQL path differs from the default:
QGIS_POSTGRES_EXECUTABLE_PATH=/usr/lib/postgresql/<your_version_goes_here>/bin \
ctest -R PyQgsAuthManagerOgrTest -V
.. note:: This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
Expand All @@ -21,9 +15,7 @@
QgsApplication,
QgsAuthManager,
QgsAuthMethodConfig,
QgsVectorLayer,
QgsDataSourceUri,
QgsWkbTypes,
QgsProviderRegistry,
)

Expand Down

0 comments on commit 1a17b90

Please sign in to comment.