summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Doane <jaydoane@apache.org>2020-04-25 21:57:43 -0700
committerJay Doane <jaydoane@apache.org>2020-04-25 21:57:43 -0700
commit0b154ce3b4c1563094ea3abd9c425c263121a24f (patch)
treeff505859872b1cf72b8eeaf91a2a50501cd5a842
parent4db67e81ab5a7cd5486bde8d4dcfd8c166380cdd (diff)
downloadcouchdb-session-info-auth-db.tar.gz
fixup: Rename test file & improve robustnesssession-info-auth-db
While back porting this PR to 3.0.x, I discovered that `chttp_auth_tests.erl` was already in use, so rename to avoid collision. Also, delete auth db in setup to add extra robustness.
-rw-r--r--src/chttpd/test/eunit/chttpd_session_tests.erl (renamed from src/chttpd/test/eunit/chttpd_auth_tests.erl)3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/chttpd/test/eunit/chttpd_auth_tests.erl b/src/chttpd/test/eunit/chttpd_session_tests.erl
index b6683f2e8..a802d9ec2 100644
--- a/src/chttpd/test/eunit/chttpd_auth_tests.erl
+++ b/src/chttpd/test/eunit/chttpd_session_tests.erl
@@ -10,7 +10,7 @@
% License for the specific language governing permissions and limitations under
% the License.
--module(chttpd_auth_tests).
+-module(chttpd_session_tests).
-include_lib("couch/include/couch_eunit.hrl").
-include("chttpd_test.hrl").
@@ -20,6 +20,7 @@
setup() ->
+ ok = config:delete("chttpd_auth", "authentication_db", _Persist=false),
Hashed = couch_passwords:hash_admin_password(?PASS),
ok = config:set("admins", ?USER, binary_to_list(Hashed), _Persist=false),
root_url() ++ "/_session".