There was an error while loading. Please reload this page.
1 parent 595c275 commit 8054e95Copy full SHA for 8054e95
test/utils.py
@@ -88,6 +88,10 @@ def server_started_with_auth(client):
88
# MongoDB >= 2.6
89
if 'security' in parsed:
90
security = parsed['security']
91
+ # >= rc3
92
+ if 'authorization' in security:
93
+ return security['authorization'] == 'enabled'
94
+ # < rc3
95
return security.get('auth', False) or bool(security.get('keyFile'))
96
return parsed.get('auth', False) or bool(parsed.get('keyFile'))
97
# Legacy
0 commit comments