Files
mongo/jstests/core/testing/certs_are_generated.js
Gabriel Marks 2e5c772a22 SERVER-99749 Create testing certificates during installation (#46314)
GitOrigin-RevId: 528e5772525fb141a0077c2ba41fc70ebae70026
2026-01-15 23:13:29 +00:00

23 lines
627 B
JavaScript

/**
* Tests that certificate generation is always complete when running resmoke tests.
* @tags: [
* # This test relies on the installation directory structure, and thus does not work properly on
* # SELinux.
* no_selinux,
* ]
*/
let installDir = _getEnv("INSTALL_DIR");
if (installDir === "") {
installDir = ".";
}
const pathsep = _isWindows() ? "\\" : "/";
const certDir = installDir + pathsep + "x509";
jsTest.log.info(certDir);
jsTest.log.info(ls(installDir));
jsTest.log.info(ls(certDir));
assert(fileExists(certDir + pathsep + "ca.pem"));
assert(fileExists(certDir + pathsep + "crl.pem.digest.sha1"));