test: use fipsMode instead of common.hasFipsCrypto
Currently, test-cli-node-print-help
uses common.hasFipsCrypto
to
determine if the test should check for the existence of FIPS related
options (--enable-fips
, and --force-fips
). The FIPS options are
available when node has been compiled against an OpenSSL library with
FIPS support in which case the test would verify that these options
are available. But by using crypto.fips (which uses crypto.getFips())
this would only be checked when fips has been enabled, but these
options are available regardless if FIPS is enabled or disabled.
This commit updates the test to use fipsMode from config to determine if the FIPS options existence should be checked.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines