Skip to content

Commit 68fcaa1

Browse files
czentgrfacebook-github-bot
authored andcommitted
misc: Add comment for failing tests in FIPS environments (facebookincubator#12188)
Summary: In FIPS enabled environments OpenSSL is restricting access to certain APIs due to them being insecure. Velox supports functions that calculate the results using these obsolete functions. The tests will fail if run. Pull Request resolved: facebookincubator#12188 Reviewed By: kgpai Differential Revision: D68746609 Pulled By: xiaoxmeng fbshipit-source-id: c428ea8cd7170436f784d9dbab96282150983f1f
1 parent 805fe4b commit 68fcaa1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

velox/functions/prestosql/tests/BinaryFunctionsTest.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ TEST_F(BinaryFunctionsTest, HmacSha512) {
257257
EXPECT_EQ(std::nullopt, hmacSha512(std::nullopt, "velox"));
258258
}
259259

260+
// Note: this test fails in a FIPS enabled environment because OpenSSL restricts
261+
// usage of MD5 for hmacs.
260262
TEST_F(BinaryFunctionsTest, HmacMd5) {
261263
const auto hmacMd5 = [&](std::optional<std::string> arg,
262264
std::optional<std::string> key) {

0 commit comments

Comments
 (0)