rabbitmq-server/deps/rabbit/apps/rabbitmq_prelaunch/test
Luke Bakken b172bca19b
Add rabbit_consult module
This will be used to fix rabbitmq/osiris#78

If a RabbitMQ `advanced.config` file contains the following:

```
{customize_hostname_check, [
    {match_fun, public_key:pkix_verify_hostname_match_fun(https)}
]}
```

...`file:consult/1` will fail because it does not evaluate terms in the
file.

The code in `rabbit_consult` was copied from this OTP module:

https://github.com/erlang/otp/blob/master/lib/ssl/src/ssl_dist_sup.erl

...and then modified for our use.

Add Bazel suite

Use the same license as Erlang/OTP, add link to source cc @dumbbell

Add test and ensure value returned matches file:consult/1

Add test data file

Ensure that Funs are converted to binaries before jsx:encode is called

Add a check that customize_hostname_check can be JSON encoded

Ensure that customize_hostname_check and match_fun are filtered out from listener data
2022-06-05 06:13:49 -07:00
..
rabbit_prelaunch_file_SUITE_data Add rabbit_consult module 2022-06-05 06:13:49 -07:00
rabbit_logger_std_h_SUITE.erl Log rotation date spec: parse $H the same way Lager does 2021-12-03 13:22:37 +03:00
rabbit_prelaunch_file_SUITE.erl Add rabbit_consult module 2022-06-05 06:13:49 -07:00