summaryrefslogtreecommitdiff
path: root/tests/white-box
diff options
context:
space:
mode:
authorvarac <varac@users.noreply.github.com>2015-12-02 22:00:14 +0100
committervarac <varac@users.noreply.github.com>2015-12-02 22:00:14 +0100
commit160be9bb3eb783be7e67f79560e0a7331f73e9cc (patch)
tree56cf4cf60e9db277a8abde41c0635ffb677cde39 /tests/white-box
parent47ff7f7d7e1a991b5a7889870521033ab177e3a6 (diff)
parentf85e0ad1be2675b1429a554d83dabaa3aec0d85e (diff)
Merge pull request #90 from kalikaneko/bug/catch_401_for_user_db_created_check
[bug] catch 401 return code instead of 200 for user-db-created check
Diffstat (limited to 'tests/white-box')
-rw-r--r--tests/white-box/webapp.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/white-box/webapp.rb b/tests/white-box/webapp.rb
index e689c143..4a669db3 100644
--- a/tests/white-box/webapp.rb
+++ b/tests/white-box/webapp.rb
@@ -119,7 +119,9 @@ class Webapp < LeapTest
sleep 0.2
get(couchdb_url(url)) do |body, response, error|
last_body, last_response, last_error = body, response, error
- if response.code.to_i == 200
+ # After moving to couchdb, webapp user is not allowed to Read user dbs,
+ # but the return code for non-existent databases is 404. See #7674
+ if response.code.to_i == 401
return
end
end