summaryrefslogtreecommitdiff
path: root/tests/helpers
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-03-18 09:40:41 -0700
committerelijah <elijah@riseup.net>2016-03-18 09:40:41 -0700
commit966120293ec289636874edda6089b99dc49cb9ae (patch)
treeb1683e6d43e926abab92b590e5df081dce822c98 /tests/helpers
parent7699762d6f94764b1183856c66a2640261fb46dc (diff)
tests: fix mx test, ensure password is redacted.
Diffstat (limited to 'tests/helpers')
-rw-r--r--tests/helpers/couchdb_helper.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/helpers/couchdb_helper.rb b/tests/helpers/couchdb_helper.rb
index 312e38ac..27dabfcb 100644
--- a/tests/helpers/couchdb_helper.rb
+++ b/tests/helpers/couchdb_helper.rb
@@ -15,6 +15,7 @@ class LeapTest
# connect_port: 15984
#
def couchdb_urls_via_stunnel(path="", options=nil)
+ path = path.gsub('"', '%22')
if options && options[:username] && options[:password]
userpart = "%{username}:%{password}@" % options
else
@@ -46,6 +47,7 @@ class LeapTest
# writable: true
#
def couchdb_url_via_haproxy(path="", options=nil)
+ path = path.gsub('"', '%22')
if options && options[:username] && options[:password]
userpart = "%{username}:%{password}@" % options
else