mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-10 23:45:58 -06:00
Skip Kerberos login mock test if GSSAPI module failed to load.
This commit is contained in:
parent
f1e7782ca2
commit
bd3eeb7111
@ -49,6 +49,13 @@ class KerberosLoginMockTestCase(BaseTestGenerator):
|
|||||||
cls.tester.logout()
|
cls.tester.logout()
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
try:
|
||||||
|
import gssapi
|
||||||
|
except ImportError:
|
||||||
|
self.skipTest("Import Error: GSSAPI module couldn't be loaded.")
|
||||||
|
except OSError:
|
||||||
|
self.skipTest("OS Error: GSSAPI module couldn't be loaded.")
|
||||||
|
|
||||||
app_config.AUTHENTICATION_SOURCES = self.auth_source
|
app_config.AUTHENTICATION_SOURCES = self.auth_source
|
||||||
self.app.PGADMIN_EXTERNAL_AUTH_SOURCE = KERBEROS
|
self.app.PGADMIN_EXTERNAL_AUTH_SOURCE = KERBEROS
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user