diff options
| author | Jean-Sébastien Pédron <jean-sebastien.pedron@dumbbell.fr> | 2015-10-16 11:10:03 +0200 |
|---|---|---|
| committer | Jean-Sébastien Pédron <jean-sebastien.pedron@dumbbell.fr> | 2015-10-20 11:10:48 +0200 |
| commit | fde92ce3eaa28102b90251198dec29f2c60136c6 (patch) | |
| tree | c2cffe73469ac9078dd35bf3764d264a7571b888 /test/src | |
| parent | fd97e3a74611518cb4bd7707ea2114b8124b1553 (diff) | |
| download | rabbitmq-server-git-fde92ce3eaa28102b90251198dec29f2c60136c6.tar.gz | |
Move password_hashing_tests.erl to rabbitmq-test
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/password_hashing_tests.erl | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/test/src/password_hashing_tests.erl b/test/src/password_hashing_tests.erl deleted file mode 100644 index 030ff89058..0000000000 --- a/test/src/password_hashing_tests.erl +++ /dev/null @@ -1,54 +0,0 @@ -%% The contents of this file are subject to the Mozilla Public License -%% Version 1.1 (the "License"); you may not use this file except in -%% compliance with the License. You may obtain a copy of the License at -%% http://www.mozilla.org/MPL/ -%% -%% Software distributed under the License is distributed on an "AS IS" -%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the -%% License for the specific language governing rights and limitations -%% under the License. -%% -%% The Original Code is RabbitMQ. -%% -%% The Initial Developer of the Original Code is GoPivotal, Inc. -%% Copyright (c) 2011-2015 Pivotal Software, Inc. All rights reserved. -%% - --module(password_hashing_tests). - --include("rabbit.hrl"). - --export([test_password_hashing/0]). - -test_password_hashing() -> - 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), - - rabbit_password_hashing_md5 = - rabbit_auth_backend_internal:hashing_module_for_user( - #internal_user{}), - rabbit_password_hashing_md5 = - rabbit_auth_backend_internal:hashing_module_for_user( - #internal_user{ - hashing_algorithm = undefined - }), - rabbit_password_hashing_md5 = - rabbit_auth_backend_internal:hashing_module_for_user( - #internal_user{ - hashing_algorithm = rabbit_password_hashing_md5 - }), - - rabbit_password_hashing_sha256 = - rabbit_auth_backend_internal:hashing_module_for_user( - #internal_user{ - hashing_algorithm = rabbit_password_hashing_sha256 - }), - - passed. |
