You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2021/02/16 06:06:58 UTC
[couchdb] 01/01: Include necessary dependency in jwtf keystore test
setup & teardown
This is an automated email from the ASF dual-hosted git repository.
jaydoane pushed a commit to branch jwtf-keystore-test-fix
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit bcda1f992b024217debb0d34d42cca57be790a3f
Author: Jay Doane <ja...@apache.org>
AuthorDate: Mon Feb 15 22:06:30 2021 -0800
Include necessary dependency in jwtf keystore test setup & teardown
The config application depends on couch_log, so include it when
setting up and tearing down tests.
---
src/jwtf/test/jwtf_keystore_tests.erl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/jwtf/test/jwtf_keystore_tests.erl b/src/jwtf/test/jwtf_keystore_tests.erl
index 9ec9436..c0c55fb 100644
--- a/src/jwtf/test/jwtf_keystore_tests.erl
+++ b/src/jwtf/test/jwtf_keystore_tests.erl
@@ -20,7 +20,7 @@
-define(EC_SECRET, "-----BEGIN PUBLIC KEY-----\\nMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEDsr0lz/Dg3luarb+Kua0Wcj9WrfR23os\\nwHzakglb8GhWRDn+oZT0Bt/26sX8uB4/ij9PEOLHPo+IHBtX4ELFFVr5GTzlqcJe\\nyctaTDd1OOAPXYuc67EWtGZ3pDAzztRs\\n-----END PUBLIC KEY-----\\n").
setup() ->
- test_util:start_applications([config, jwtf]),
+ test_util:start_applications([couch_log, config, jwtf]),
config:set("jwt_keys", "hmac:hmac", ?HMAC_SECRET),
config:set("jwt_keys", "rsa:hmac", ?HMAC_SECRET),
config:set("jwt_keys", "ec:hmac", ?HMAC_SECRET),
@@ -34,7 +34,7 @@ setup() ->
config:set("jwt_keys", "ec:ec", ?EC_SECRET).
teardown(_) ->
- test_util:stop_applications([config, jwtf]).
+ test_util:stop_applications([couch_log, config, jwtf]).
jwtf_keystore_test_() ->
{