Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
credentials_obfuscation
credentials-obfuscation-2.3.0-test.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File credentials-obfuscation-2.3.0-test.patch of Package credentials_obfuscation
diff -Ndurp credentials-obfuscation-2.3.0/test/credentials_obfuscation_SUITE.erl credentials-obfuscation-2.3.0-test/test/credentials_obfuscation_SUITE.erl --- credentials-obfuscation-2.3.0/test/credentials_obfuscation_SUITE.erl 2020-12-18 01:13:47.000000000 +0200 +++ credentials-obfuscation-2.3.0-test/test/credentials_obfuscation_SUITE.erl 2024-04-27 21:05:33.220020663 +0300 @@ -87,19 +87,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(), ok. encryption_happens_only_when_secret_available(_Config) -> @@ -107,8 +105,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()), @@ -120,9 +116,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), @@ -132,11 +127,10 @@ encryption_happens_only_when_secret_avai {encrypted, _} = EncryptedUri, ?assertEqual(Uri, credentials_obfuscation:decrypt(EncryptedUri)), - ok = net_kernel:stop(), + _ = net_kernel:stop(), ok. change_default_cipher(_Config) -> - ?assertNotEqual(credentials_obfuscation_pbe:default_cipher(), credentials_obfuscation:cipher()), ?assertNotEqual(credentials_obfuscation_pbe:default_hash(), credentials_obfuscation:hash()), ?assertNotEqual(credentials_obfuscation_pbe:default_iterations(), credentials_obfuscation:iterations()), Credentials = <<"guest">>,
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