Skip to content
This repository was archived by the owner on May 25, 2021. It is now read-only.

correct inverted test function name#82

Closed
alanning wants to merge 2 commits intoapache:masterfrom
alanning:patch-1
Closed

correct inverted test function name#82
alanning wants to merge 2 commits intoapache:masterfrom
alanning:patch-1

Conversation

@alanning
Copy link

@alanning alanning commented Aug 1, 2015

Based on this article, the function is ensuring that a username is returned. This change just removes the "not" from the test function name.

Based on this [article](http://robert-kowalski.de/blog/lets-learn-erlang-and-fix-a-bug-on-a-couchdb-cluster/), the function is ensuring that a username is returned.  Just removed the "not" from the test function name.
alanning referenced this pull request in robertkowalski/couchdb-couch Aug 1, 2015
When logging in with admin credentials and no user doc is
present, the name was `null`. Example:

`{"ok":true,"name":null,"roles":["_admin"]}`

closes COUCHDB-1356
@robertkowalski
Copy link
Member

thanks for the patch! :)

did the testsuite work for you? I think https://github.com/alanning/couchdb-couch/blob/ca9af59663fdc42f53d0850e4b1bc1e4c4e6dff5/test/couchdb_auth_tests.erl#L37 also needs a change (list of tests that are going to run)

@kxepal
Copy link
Member

kxepal commented Aug 1, 2015

Agree with @robertkowalski - test suite will fail because of unknown test function.

@alanning
Copy link
Author

alanning commented Aug 4, 2015

Ah, thanks! I made the change purely through github's interface and didn't realize there was a separate list of tests. Travis CI was showing "pending..." when I created the PR; I should have let it run to completion.

@alanning
Copy link
Author

alanning commented Aug 4, 2015

Hmm, TravisCI tests still failing but it seems unrelated. "No Rakefile found".

@kxepal
Copy link
Member

kxepal commented Aug 4, 2015

Ignore travis by now. LGFM.

@asfgit asfgit closed this in 6ae90be Mar 14, 2016
brkolla pushed a commit to cloudant/couchdb-couch that referenced this pull request Apr 25, 2016
Thanks @alanning for the patch.

This closes apache#82
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants