summaryrefslogtreecommitdiff
path: root/provider_base/services/soledad.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-03-29 13:27:01 -0700
committerelijah <elijah@riseup.net>2016-04-05 09:52:01 -0700
commiteac3056c237d523f4786593922fe8f88eb65dff7 (patch)
tree4eb33d64139f65aa1444543d72fbe07dc97314ae /provider_base/services/soledad.rb
parent90e1d3ec113d2644b659fd6ed9af7d2b94393407 (diff)
testing: adds mx delivery tests
Diffstat (limited to 'provider_base/services/soledad.rb')
-rw-r--r--provider_base/services/soledad.rb22
1 files changed, 21 insertions, 1 deletions
diff --git a/provider_base/services/soledad.rb b/provider_base/services/soledad.rb
index b55e90b6..4391dead 100644
--- a/provider_base/services/soledad.rb
+++ b/provider_base/services/soledad.rb
@@ -1,3 +1,23 @@
unless self.services.include? "couchdb"
LeapCli.log :error, "service `soledad` requires service `couchdb` on the same node (node #{self.name})."
-end \ No newline at end of file
+end
+
+#
+# currently, mx tests keep the same test user around,
+# by rely on the soledad test to destroy the email
+# test user's mail storage (so that it does not just
+# keep accumulating test emails).
+#
+# We do it this way because:
+#
+# (1) couchdb bloats if you create and destroy test users,
+# so we keep the test user around.
+#
+# (2) the mx test has access to the bonafide api, but the
+# bonafide api (webapp) does not have access to destroy
+# user storage dbs.
+#
+# If any of these conditions change, then this partial
+# will no longer be required.
+#
+apply_partial('services/_api_tester.json') \ No newline at end of file