Skip to content

PYTHON-2986 Update serverless testing for load balancer fronting single proxy #997

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 2 commits into from
Jul 6, 2022

Conversation

blink1073
Copy link
Member

No description provided.

export SERVERLESS_ATLAS_USER="${SERVERLESS_ATLAS_USER}"
export SERVERLESS_ATLAS_PASSWORD="${SERVERLESS_ATLAS_PASSWORD}"
export SINGLE_MONGOS_LB_URI="${SINGLE_ATLASPROXY_SERVERLESS_URI}"
export MULTI_MONGOS_LB_URI="${MULTI_ATLASPROXY_SERVERLESS_URI}"
export MONGODB_URI="mongodb+srv://${SERVERLESS_ATLAS_USER}:${SERVERLESS_ATLAS_PASSWORD}@${SERVERLESS_URI:14}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to add the credentials to the MONGODB_URI since the user/pass are already configured:

elif [ ! -z "$TEST_SERVERLESS" ]; then
export DB_USER=$SERVERLESS_ATLAS_USER
export DB_PASSWORD=$SERVERLESS_ATLAS_PASSWORD

It will be more robust if we do export MONGODB_URI="${SERVERLESS_URI}" since SERVERLESS_URI:14 will break if the uri format changes.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

@blink1073 blink1073 requested a review from ShaneHarvey July 6, 2022 19:34
@blink1073
Copy link
Member Author

Remaining errors are CSOT-related

@blink1073 blink1073 merged commit ff1efd1 into mongodb:master Jul 6, 2022
@blink1073 blink1073 deleted the PYTHON-2986 branch July 6, 2022 22:03
blink1073 added a commit to blink1073/mongo-python-driver that referenced this pull request Oct 21, 2022
blink1073 added a commit that referenced this pull request Oct 21, 2022
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