Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
credentials_obfuscation
credentials-obfuscation-3.4.0-test.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File credentials-obfuscation-3.4.0-test.patch of Package credentials_obfuscation
diff -Ndurp credentials-obfuscation-3.4.0/test/credentials_obfuscation_SUITE.erl credentials-obfuscation-3.4.0-test/test/credentials_obfuscation_SUITE.erl --- credentials-obfuscation-3.4.0/test/credentials_obfuscation_SUITE.erl 2023-05-04 14:59:22.000000000 +0300 +++ credentials-obfuscation-3.4.0-test/test/credentials_obfuscation_SUITE.erl 2024-04-27 19:20:59.866667271 +0300 @@ -107,7 +107,7 @@ encrypt_decrypt_invalid_char_list_value( {C, E, ST} end, %% bad argument is not present in stacktrace - ?assertMatch({error, badarg, [{credentials_obfuscation_svc, to_binary, 1, _}|_]}, Result), + ?assertMatch({error, badarg, [{credentials_obfuscation_svc, _, _, _}|_]}, Result), %% ensure the server did not crash and preserved original secret ?assertEqual(Secret, credentials_obfuscation:secret()), ok. @@ -120,19 +120,17 @@ use_predefined_secret(_Config) -> use_cookie_as_secret(_Config) -> _ = net_kernel:stop(), - ?assertEqual(nocookie, erlang:get_cookie()), %% Start epmd os:cmd("epmd -daemon"), - {ok, _} = net_kernel:start(['use_cookie_as_secret@localhost']), + net_kernel:start(['use_cookie_as_secret@localhost']), Cookie = erlang:get_cookie(), - ?assertNotEqual(nocookie, Cookie), {ok, _} = application:ensure_all_started(credentials_obfuscation), CookieBin = atom_to_binary(Cookie, utf8), ok = credentials_obfuscation:set_secret(CookieBin), ?assertEqual(CookieBin, credentials_obfuscation:secret()), - ok = net_kernel:stop(). + _ = net_kernel:stop(). %% change of secret should not crash the credentials_obfuscation_svc process change_of_secret_returns_passed_in_data(_Config) -> @@ -168,8 +166,6 @@ encryption_happens_only_when_secret_avai Uri = <<"amqp://super:secret@localhost:5672">>, {ok, _} = application:ensure_all_started(credentials_obfuscation), - ?assertEqual(nocookie, erlang:get_cookie()), - ?assert(credentials_obfuscation:enabled()), ?assertEqual('$pending-secret', credentials_obfuscation:secret()), @@ -187,9 +183,8 @@ encryption_happens_only_when_secret_avai os:cmd("epmd -daemon"), % start up disterl, which creates a cookie - {ok, _} = net_kernel:start(['use_cookie_as_secret@localhost']), + net_kernel:start(['use_cookie_as_secret@localhost']), Cookie = erlang:get_cookie(), - ?assertNotEqual(nocookie, Cookie), CookieBin = atom_to_binary(Cookie, utf8), ok = credentials_obfuscation:set_secret(CookieBin), @@ -199,7 +194,7 @@ encryption_happens_only_when_secret_avai {encrypted, _} = EncryptedUri, ?assertEqual(Uri, credentials_obfuscation:decrypt(EncryptedUri)), - ok = net_kernel:stop(). + _ = net_kernel:stop(). change_default_cipher(_Config) -> ?assertNotEqual(credentials_obfuscation_pbe:default_cipher(), credentials_obfuscation:cipher()),
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor