Skip to content

Fix auth injection in test helper#2985

Merged
iilyak merged 1 commit intoapache:prototype/fdb-layerfrom
cloudant:fix-session-test-helper
Jul 13, 2020
Merged

Fix auth injection in test helper#2985
iilyak merged 1 commit intoapache:prototype/fdb-layerfrom
cloudant:fix-session-test-helper

Conversation

@iilyak
Copy link
Contributor

@iilyak iilyak commented Jul 6, 2020

Overview

Previously the auth was injected unconidtionally. There were two problems:

  1. no way to specify basic_auth credentials
  2. no way to disable injection

Due to #2 it was impossible to use other user than hardcoded adm in Couch.login/3.

Testing recommendations

The following should be sufficient to test for regressions

make exunit tests=src/chttpd/test/exunit/pagination_test.exs

Related Issues or Pull Requests

Checklist

  • Code is written and works correctly
  • Changes are covered by tests
  • Any new configurable parameters are documented in rel/overlay/etc/default.ini
  • A PR for documentation changes has been made in https://github.com/apache/couchdb-documentation

Previously the auth was injected unconidtionally. There were two problems:

1. no way to specify `basic_auth` credentials
2. no way to disable injection

Due to #2 it was impossible to use other user than hardcoded `adm` ()
in `Couch.login/3`.
Copy link
Contributor

@jaydoane jaydoane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM & tests pass

make exunit tests=src/chttpd/test/exunit/pagination_test.exs

Finished in 24.2 seconds
133 tests, 0 failures

@iilyak iilyak merged commit 733c357 into apache:prototype/fdb-layer Jul 13, 2020
@iilyak iilyak deleted the fix-session-test-helper branch July 13, 2020 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants