diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2021-11-05 14:04:01 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-11-09 22:42:08 +0000 |
commit | 4b58621740fb0252eede192d0d7472da3fdcf811 (patch) | |
tree | 35c06618e75ed085aec565916a078780475177db /jstests/ssl | |
parent | be11dc126adc61121e8d8bb5da1e7e3874da7d41 (diff) | |
download | mongo-4b58621740fb0252eede192d0d7472da3fdcf811.tar.gz |
SERVER-61286 Disable ssl_fips.js and fips_scram_sha1.js on SUSE 15 SP1
Diffstat (limited to 'jstests/ssl')
-rw-r--r-- | jstests/ssl/libs/ssl_helpers.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/jstests/ssl/libs/ssl_helpers.js b/jstests/ssl/libs/ssl_helpers.js index 457927907dc..3401e86dd9e 100644 --- a/jstests/ssl/libs/ssl_helpers.js +++ b/jstests/ssl/libs/ssl_helpers.js @@ -334,6 +334,22 @@ function isRHEL8() { return false; } +function isSUSE15SP1() { + if (_isWindows()) { + return false; + } + + // SUSE 15 SP1 FIPS module does not work. SP2 does work. + // The FIPS code returns FIPS_R_IN_ERROR_STATE in what is likely a race condition + // since it only happens in sharded clusters. + const grep_result = runProgram('grep', '15-SP1', '/etc/os-release'); + if (grep_result == 0) { + return true; + } + + return false; +} + function isUbuntu2004() { if (_isWindows()) { return false; |