Files
mongo/buildscripts/resmokelib/extensions/constants.py
Santiago Roche b3153880f9 SERVER-115286 Pass --extensionsSignaturePublicKeyPath on resmoke startup (#47368)
GitOrigin-RevId: eda7cc59447fec53a5e61b0946f87725300a1bcf
2026-02-01 02:18:46 +00:00

37 lines
952 B
Python

"""Constants for testing extensions locally and in Evergreen."""
import os
import tempfile
temp_dir = tempfile.gettempdir()
cwd = os.getcwd()
# Directory for generated extension .conf files.
CONF_OUT_DIR = os.path.join(temp_dir, "mongo", "extensions")
# Path to the source YAML with extension options.
CONF_IN_PATH = os.path.join(
cwd, "src", "mongo", "db", "extension", "test_examples", "configurations.yml"
)
# Directories to search for .so files in Evergreen and locally.
EVERGREEN_SEARCH_DIRS = [os.path.join(cwd, "dist-test", "lib")]
LOCAL_SEARCH_DIRS = [
os.path.join(cwd, "bazel-bin", "install-dist-test", "lib"),
os.path.join(cwd, "bazel-bin", "install-extensions", "lib"),
]
# Path to test extensions signing public key.
TEST_PUBLIC_KEY_PATH = os.path.join(
cwd,
"src",
"mongo",
"db",
"extension",
"test_examples",
"test_extensions_signing_keys",
"test_extensions_signing_public_key.asc",
)