From 8dbd39a1e1d1f17da40d6a032f1b5d5b125fd025 2013-11-11 18:59:14 From: Thomas Kluyver Date: 2013-11-11 18:59:14 Subject: [PATCH] Use username and password for MongoDB on ShiningPanda. --- diff --git a/IPython/parallel/tests/test_mongodb.py b/IPython/parallel/tests/test_mongodb.py index 71d890b..7e78630 100644 --- a/IPython/parallel/tests/test_mongodb.py +++ b/IPython/parallel/tests/test_mongodb.py @@ -30,6 +30,10 @@ from . import test_db conn_kwargs = {} if 'DB_IP' in os.environ: conn_kwargs['host'] = os.environ['DB_IP'] +if 'DBA_MONGODB_ADMIN_URI' in os.environ: + # On ShiningPanda, we need a username and password to connect. They are + # passed in a mongodb:// URI. + conn_kwargs['host'] = os.environ['DBA_MONGODB_ADMIN_URI'] if 'DB_PORT' in os.environ: conn_kwargs['port'] = int(os.environ['DB_PORT'])