From f85e0ad1be2675b1429a554d83dabaa3aec0d85e Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Wed, 2 Dec 2015 16:53:20 -0400 Subject: [bug] catch 401 return code instead of 200 for user-db-created check --- tests/white-box/webapp.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') 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 -- cgit v1.2.3