-
Notifications
You must be signed in to change notification settings - Fork 1.1k
PYTHON-2868 Test Serverless behind a load balancer #742
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…LESS_URI" This reverts commit bf8a236.
client_options['username'] = db_user | ||
client_options['password'] = db_pwd | ||
|
||
return MongoClient(uri, port, **client_options) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes were required in order to support passing mongodb+srv
addresses through rs_client() and friends.
if client_context.auth_enabled: | ||
uri = "mongodb://%s:%s@%s" % (db_user, db_pwd, encoded_socket) | ||
else: | ||
uri = "mongodb://%s" % encoded_socket |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rs_or_single_client adds the username/password now.
@@ -33,7 +33,8 @@ | |||
class_name_prefix='UnifiedTestFormat', | |||
expected_failures=[ | |||
'Client side error in command starting transaction', # PYTHON-1894 | |||
])) | |||
], | |||
RUN_ON_SERVERLESS=False)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The serverless testing spec doesn't say to run the unified format spec tests.
(cherry picked from commit 968ee7b)
No description provided.