diff options
author | drebs <drebs@leap.se> | 2013-05-25 11:08:44 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2013-05-25 11:20:21 -0300 |
commit | 6238f80b9d9c8ea7091e196ccb69371050fd45db (patch) | |
tree | 11931448cecb041f4adaea3b8161b479e135f206 /src/leap/soledad/tests/test_sqlcipher.py | |
parent | 6be80318adc9f1323b0b83651107810ac481511e (diff) |
Add token credentials to SQLCipher tests.
Diffstat (limited to 'src/leap/soledad/tests/test_sqlcipher.py')
-rw-r--r-- | src/leap/soledad/tests/test_sqlcipher.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/leap/soledad/tests/test_sqlcipher.py b/src/leap/soledad/tests/test_sqlcipher.py index b0ec97a0..dfc5577b 100644 --- a/src/leap/soledad/tests/test_sqlcipher.py +++ b/src/leap/soledad/tests/test_sqlcipher.py @@ -439,6 +439,7 @@ def sync_via_synchronizer_and_leap(test, db_source, db_target, test.skipTest("full trace hook unsupported over http") path = test._http_at[db_target] target = LeapSyncTarget.connect(test.getURL(path), test._soledad._crypto) + target.set_token_credentials('user-uuid', 'auth-token') if trace_hook_shallow: target._set_trace_hook_shallow(trace_hook_shallow) return sync.Synchronizer(db_source, target).sync() @@ -662,6 +663,7 @@ def _make_local_db_and_leap_target(test, path='test'): test.startServer() db = test.request_state._create_database(os.path.basename(path)) st = LeapSyncTarget.connect(test.getURL(path), test._soledad._crypto) + st.set_token_credentials('user-uuid', 'auth-token') return db, st |