-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move rabbit_password to rabbit_common
This allows `rabbitmqctl hash_password` to run without having RabbitMQ up. Follow-up to: * #5957 * #7003 (cherry picked from commit d9d6e1b) (cherry picked from commit 33bf1d8)
- Loading branch information
1 parent
73fa5d9
commit 9cec4a5
Showing
8 changed files
with
57 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
%% This Source Code Form is subject to the terms of the Mozilla Public | ||
%% License, v. 2.0. If a copy of the MPL was not distributed with this | ||
%% file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
%% | ||
%% Copyright (c) 2011-2023 VMware, Inc. or its affiliates. All rights reserved. | ||
%% | ||
|
||
-module(unit_password_hashing_SUITE). | ||
|
||
-compile(export_all). | ||
|
||
all() -> [password_hashing]. | ||
|
||
%% ------------------------------------------------------------------- | ||
%% Testsuite setup/teardown | ||
%% ------------------------------------------------------------------- | ||
|
||
init_per_suite(Config) -> Config. | ||
end_per_suite(Config) -> Config. | ||
|
||
init_per_group(_Group, Config) -> Config. | ||
end_per_group(_Group, Config) -> Config. | ||
|
||
init_per_testcase(_Testcase, Config) -> Config. | ||
end_per_testcase(_Testcase, Config) -> Config. | ||
|
||
%% --------------------------------------------------------------------------- | ||
%% Test Cases | ||
%% --------------------------------------------------------------------------- | ||
|
||
password_hashing(_Config) -> | ||
rabbit_password_hashing_sha256 = rabbit_password:hashing_mod(), | ||
application:set_env(rabbit, password_hashing_module, | ||
rabbit_password_hashing_md5), | ||
rabbit_password_hashing_md5 = rabbit_password:hashing_mod(), | ||
application:set_env(rabbit, password_hashing_module, | ||
rabbit_password_hashing_sha256), | ||
rabbit_password_hashing_sha256 = rabbit_password:hashing_mod(), | ||
|
||
rabbit_password_hashing_sha256 = | ||
rabbit_password:hashing_mod(rabbit_password_hashing_sha256), | ||
rabbit_password_hashing_md5 = | ||
rabbit_password:hashing_mod(rabbit_password_hashing_md5), | ||
rabbit_password_hashing_md5 = | ||
rabbit_password:hashing_mod(undefined), | ||
|
||
passed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters