Soledad sync script fails with latest version of soledad.
I installed the latest soledad packages from pixelated on unstable.bitmask.net, which are built from latest soledad develop branch. I successfully ran the migration script. All tests are green but not the soledad sync test:
--- git/bitmask ‹master* ⁇› » leap test = [aardwolf] PASS: Network > Can connect to internet? = [aardwolf] PASS: Network > Is stunnel running? = [aardwolf] PASS: Network > Is shorewall running? = [aardwolf] PASS: Network > Are server certificates valid? = [aardwolf] PASS: CouchDB > Are daemons running? = [aardwolf] PASS: CouchDB > Is CouchDB running? = [aardwolf] PASS: CouchDB > Do ACL users exist? = [aardwolf] PASS: CouchDB > Do required databases exist? = [aardwolf] PASS: CouchDB > Can records be created? = [aardwolf] PASS: Soledad > Is Soledad running? = [aardwolf] 12 tests: 10 passes, 0 skips, 0 warnings, 0 failures, 0 errors = [cat] PASS: Network > Can connect to internet? = [cat] PASS: Network > Is stunnel running? = [cat] PASS: Network > Is shorewall running? = [cat] PASS: Network > Are server certificates valid? = [cat] PASS: Mx > Can contact couchdb? = [cat] PASS: Mx > Can contact couchdb via haproxy? = [cat] PASS: Mx > Can query identities db? = [cat] PASS: Mx > Are MX daemons running? = [cat] PASS: Mx > Can postfix query leapmx? = [cat] PASS: Mx > Can deliver email? = [cat] 10 tests: 10 passes, 0 skips, 0 warnings, 0 failures, 0 errors = [donkey] PASS: Network > Can connect to internet? = [donkey] PASS: Network > Is stunnel running? = [donkey] PASS: Network > Is shorewall running? = [donkey] PASS: Network > Are server certificates valid? = [donkey] PASS: Pixelated > Are daemons running? = [donkey] PASS: Pixelated > can connect to useragent? = [donkey] PASS: Webapp > Can contact couchdb? = [donkey] PASS: Webapp > Can contact couchdb via haproxy? = [donkey] PASS: Webapp > Are daemons running? = [donkey] PASS: Webapp > Can access webapp? = [donkey] PASS: Webapp > Can create and authenticate and delete user via API? = [donkey] FAIL: Webapp > Can sync Soledad? [webapp.rb:59]: = [donkey] Could not find user db `user-95bf0c24bada3cd2c3afa4ae141e5dbc` for test user `tmp_user_yn1bhegc5eap8g` = [donkey] uuid=95bf0c24bada3cd2c3afa4ae141e5dbc = [donkey] HTTP 200 {"db_name":"user-95bf0c24bada3cd2c3afa4ae141e5dbc","doc_count":2,"doc_del_count":0,"update_seq":2,"purge_seq":0,"compact_running":false,"disk_size":8294,"data_size":1190,"instance_start_time":"1471438450069043","disk_format_version":6,"committed_update_seq":2} = [donkey] Tests halted on failure (because of --no-continue). = bailing outing out
you can also run the single test on donkey with:
root@donkey:~# run_tests --test Webapp/Can_sync_Soledad? FAIL: Webapp > Can sync Soledad? [webapp.rb:59]: Could not find user db `user-95bf0c24bada3cd2c3afa4ae141e5c43` for test user `tmp_user_iilxggizw9gm6a` uuid=95bf0c24bada3cd2c3afa4ae141e5c43 HTTP 200 {"db_name":"user-95bf0c24bada3cd2c3afa4ae141e5c43","doc_count":2,"doc_del_count":0,"update_seq":2,"purge_seq":0,"compact_running":false,"disk_size":8294,"data_size":1188,"instance_start_time":"1471438531514118","disk_format_version":6,"committed_update_seq":2} Tests halted on failure (because of --no-continue).
It uses the /srv/leap/tests/helpers/soledad_sync.py script which can be found in the soledad repo, client/src/leap/soledad/client/examples/soledad_sync.py.
(from redmine: created on 2016-08-17, closed on 2016-08-22, relates #8386, relates #8387)