Skip to content

Commit 65b2909

Browse files
committed
[oauth2] Added test for resource owner password grant flow
1 parent b66a751 commit 65b2909

File tree

5 files changed

+555
-15
lines changed

5 files changed

+555
-15
lines changed

.ci/travis/linux/before_install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@
1515
###########################################################################
1616

1717
#pip3 install termcolor
18+
pip install psycopg2 numpy nose2 pyyaml mock future termcolor oauthlib

.ci/travis/macos/before_install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ pip3 install \
2828
pyyaml \
2929
mock \
3030
future \
31-
termcolor
31+
termcolor \
32+
oauthlib
3233

3334
brew install \
3435
qscintilla2 \

tests/src/python/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,10 @@ IF (WITH_SERVER)
266266
ADD_PYTHON_TEST(PyQgsOfflineEditingWFS test_offline_editing_wfs.py)
267267
ADD_PYTHON_TEST(PyQgsAuthManagerPasswordOWSTest test_authmanager_password_ows.py)
268268
ADD_PYTHON_TEST(PyQgsAuthManagerPKIOWSTest test_authmanager_pki_ows.py)
269+
ADD_PYTHON_TEST(PyQgsAuthManagerPKIPostgresTest test_authmanager_pki_postgres.py)
270+
IF(WITH_OAUTH2_PLUGIN)
271+
ADD_PYTHON_TEST(PyQgsAuthManagerOAuth2OWSTest test_authmanager_oauth2_ows.py)
272+
ENDIF()
269273
ADD_PYTHON_TEST(PyQgsServerServices test_qgsserver_services.py)
270274
ADD_PYTHON_TEST(PyQgsServerModules test_qgsserver_modules.py)
271275
ADD_PYTHON_TEST(PyQgsServerRequest test_qgsserver_request.py)

0 commit comments

Comments
 (0)