"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/src/core/testqgsdatasourceuri.cpp" between
QGIS-final-3_10_11.tar.gz and QGIS-final-3_10_12.tar.gz

About: QGIS (Quantum GIS) is a Geographic Information System that supports vector, raster, and database formats. Long-term release (3.10.x series).

testqgsdatasourceuri.cpp  (QGIS-final-3_10_11):testqgsdatasourceuri.cpp  (QGIS-final-3_10_12)
skipping to change at line 240 skipping to change at line 240
uri.removeParam( QStringLiteral( "password" ) ); uri.removeParam( QStringLiteral( "password" ) );
QVERIFY( !uri.hasParam( QStringLiteral( "password" ) ) ); QVERIFY( !uri.hasParam( QStringLiteral( "password" ) ) );
QVERIFY( uri.param( QStringLiteral( "password" ) ).isEmpty() ); QVERIFY( uri.param( QStringLiteral( "password" ) ).isEmpty() );
QVERIFY( uri.password().isEmpty() ); QVERIFY( uri.password().isEmpty() );
QVERIFY( uri.hasParam( QStringLiteral( "authcfg" ) ) ); QVERIFY( uri.hasParam( QStringLiteral( "authcfg" ) ) );
uri.removeParam( QStringLiteral( "authcfg" ) ); uri.removeParam( QStringLiteral( "authcfg" ) );
QVERIFY( !uri.hasParam( QStringLiteral( "authcfg" ) ) ); QVERIFY( !uri.hasParam( QStringLiteral( "authcfg" ) ) );
QVERIFY( uri.param( QStringLiteral( "authcfg" ) ).isEmpty() ); QVERIFY( uri.param( QStringLiteral( "authcfg" ) ).isEmpty() );
QVERIFY( uri.authConfigId().isEmpty() ); QVERIFY( uri.authConfigId().isEmpty() );
// issue GH #39243
QgsDataSourceUri uri4;
uri4.setEncodedUri( QStringLiteral( "dpiMode=7&url=http://localhost:8000/ows/?
MAP%3D/home/bug.qgs&username=username&password=pa%25%25word" ) );
QCOMPARE( uri4.param( QStringLiteral( "username" ) ), QStringLiteral( "usernam
e" ) );
QCOMPARE( uri4.username(), QStringLiteral( "username" ) );
QCOMPARE( uri4.param( QStringLiteral( "password" ) ), QStringLiteral( "pa%%wor
d" ) );
QCOMPARE( uri4.password(), QStringLiteral( "pa%%word" ) );
} }
QGSTEST_MAIN( TestQgsDataSourceUri ) QGSTEST_MAIN( TestQgsDataSourceUri )
#include "testqgsdatasourceuri.moc" #include "testqgsdatasourceuri.moc"
 End of changes. 1 change blocks. 
0 lines changed or deleted 12 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)