Skip to content

Commit caddfd3

Browse files
Skip aes_ige256 in config value encryption/decryption tests
it is not supported by some libcrypto versions, including CI. See [1][2]. 1. https://github.com/rabbitmq/credentials-obfuscation/pull/10/files 2. https://bugs.erlang.org/browse/ERL-1478
1 parent e5def7f commit caddfd3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

deps/rabbit_common/test/unit_SUITE.erl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616

1717
-compile(export_all).
1818

19+
%% This cipher is listed as supported, but doesn't actually work.
20+
%% OTP bug: https://bugs.erlang.org/browse/ERL-1478
21+
-define(SKIPPED_CIPHERS, [aes_ige256]).
22+
1923
all() ->
2024
[
2125
{group, parallel_tests},
@@ -318,7 +322,7 @@ pid_decompose_compose(_Config) ->
318322
encrypt_decrypt(_Config) ->
319323
%% Take all available block ciphers.
320324
Hashes = rabbit_pbe:supported_hashes(),
321-
Ciphers = rabbit_pbe:supported_ciphers(),
325+
Ciphers = rabbit_pbe:supported_ciphers() -- ?SKIPPED_CIPHERS,
322326
%% For each cipher, try to encrypt and decrypt data sizes from 0 to 64 bytes
323327
%% with a random passphrase.
324328
_ = [begin
@@ -336,7 +340,7 @@ encrypt_decrypt(_Config) ->
336340
encrypt_decrypt_term(_Config) ->
337341
%% Take all available block ciphers.
338342
Hashes = rabbit_pbe:supported_hashes(),
339-
Ciphers = rabbit_pbe:supported_ciphers(),
343+
Ciphers = rabbit_pbe:supported_ciphers() -- ?SKIPPED_CIPHERS,
340344
%% Different Erlang terms to try encrypting.
341345
DataSet = [
342346
10000,

0 commit comments

Comments
 (0)