summaryrefslogtreecommitdiff
path: root/tests/white-box
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-12-02 16:53:20 -0400
committerKali Kaneko <kali@leap.se>2015-12-02 16:55:52 -0400
commitf85e0ad1be2675b1429a554d83dabaa3aec0d85e (patch)
tree56cf4cf60e9db277a8abde41c0635ffb677cde39 /tests/white-box
parent47ff7f7d7e1a991b5a7889870521033ab177e3a6 (diff)
[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