-
Notifications
You must be signed in to change notification settings - Fork 1.1k
PYTHON-5213 Convert AWS Lambda and Search Index tests to use new test scripts #2205
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
Changes from 10 commits
8025271
2a1affe
c6bceb3
7770cac
705d9c2
a09d0d4
e54f8c6
40211c7
08b2caf
217882a
1df7d48
71e7230
12ecd07
8c593f9
5455368
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -175,6 +175,28 @@ def handle_test_env() -> None: | |
if not config: | ||
AUTH = "noauth" | ||
|
||
if test_name in ["aws_lambda", "index_management"]: | ||
env = os.environ.copy() | ||
env["MONGODB_VERSION"] = "7.0" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Earlier we set the MONGODB_VERSION to 6.0 for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed |
||
env["LAMBDA_STACK_NAME"] = "dbx-python-lambda" | ||
write_env("LAMBDA_STACK_NAME", env["LAMBDA_STACK_NAME"]) | ||
run_command( | ||
f"bash {DRIVERS_TOOLS}/.evergreen/atlas/setup-atlas-cluster.sh", | ||
env=env, | ||
cwd=DRIVERS_TOOLS, | ||
) | ||
|
||
if test_name == "index_management": | ||
AUTH = "auth" | ||
|
||
if test_name == "aws_lambda": | ||
UV_ARGS.append("--with pip") | ||
# Store AWS creds if they were given. | ||
if "AWS_ACCESS_KEY_ID" in os.environ: | ||
for key in ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN"]: | ||
if key in os.environ: | ||
write_env(key, os.environ[key]) | ||
|
||
if test_name == "data_lake": | ||
# Stop any running mongo-orchestration which might be using the port. | ||
run_command(f"bash {DRIVERS_TOOLS}/.evergreen/stop-orchestration.sh") | ||
|
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.
What do you think about making the name more verbose?
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.
Updated to
search_index
in all dev-facing places.