diff options
author | elijah <elijah@riseup.net> | 2017-12-21 21:21:21 -0800 |
---|---|---|
committer | Varac <varac@leap.se> | 2017-12-22 21:34:13 +0100 |
commit | 8f1e528db6f3cdddef8890e1ee4209a4df5490df (patch) | |
tree | 796bde923a387ad2e97d31d5c3f09db1f6476fc5 | |
parent | 0d251e2ceddd3e02ed8bba8725830689dbdd1397 (diff) |
skip soledad db test for now (closes #8899)
-rw-r--r-- | tests/server-tests/white-box/couchdb.rb | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/server-tests/white-box/couchdb.rb b/tests/server-tests/white-box/couchdb.rb index dcf71bc7..f8223bd2 100644 --- a/tests/server-tests/white-box/couchdb.rb +++ b/tests/server-tests/white-box/couchdb.rb @@ -51,20 +51,26 @@ class CouchDB < LeapTest end end + # + # TODO: test for the existance of 'soledad' user if soledad service is enabled. + # def test_04_Do_ACL_users_exist? - acl_users = ['_design/_auth', 'leap_mx', 'nickserver', 'soledad', 'webapp', 'replication'] + acl_users = ['_design/_auth', 'leap_mx', 'nickserver', 'webapp', 'replication'] url = couchdb_backend_url("/_users/_all_docs", :username => 'admin') assert_get(url) do |body| response = JSON.parse(body) - assert_equal acl_users.count, response['total_rows'] actual_users = response['rows'].map{|row| row['id'].sub(/^org.couchdb.user:/, '') } + actual_users.delete('soledad') # for now, ignore user 'soledad' assert_equal acl_users.sort, actual_users.sort end pass end + # + # TODO: test for the existance of 'shared' db if soledad service is enabled. + # def test_05_Do_required_databases_exist? - dbs_that_should_exist = ["customers","identities","keycache","shared","tickets","users", "tmp_users"] + dbs_that_should_exist = ["customers","identities","keycache","tickets","users", "tmp_users"] dbs_that_should_exist << "tokens_#{rotation_suffix}" dbs_that_should_exist << "sessions_#{rotation_suffix}" dbs_that_should_exist.each do |db_name| |