Skip to content

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

Merged
merged 8 commits into from
Sep 23, 2021

Conversation

ShaneHarvey
Copy link
Member

No description provided.

client_options['username'] = db_user
client_options['password'] = db_pwd

return MongoClient(uri, port, **client_options)
Copy link
Member Author

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
Copy link
Member Author

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))
Copy link
Member Author

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.

@ShaneHarvey ShaneHarvey merged commit 968ee7b into mongodb:master Sep 23, 2021
@ShaneHarvey ShaneHarvey deleted the PYTHON-2868 branch September 23, 2021 22:58
ShaneHarvey added a commit that referenced this pull request Sep 23, 2021
juliusgeo pushed a commit to juliusgeo/mongo-python-driver that referenced this pull request Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants