mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-10-24 01:53:20 +00:00
Add independent ID key configuration and recovery
This commit is contained in:
1 parent
126d6eadb8
commit
bf7822f20b
51 files changed
+2572
-168
No files matched your search
@@ -31,6 +31,17 @@ describe("active Replicator configuration identity", () => {
|
||||
});
|
||||
}
|
||||
|
||||
it("replaces a connection when the independent ID key changes", () => {
|
||||
const first = configuredSettings({ idDerivationVersion: 1, idDerivationKey: "a".repeat(64) });
|
||||
const second = { ...first, idDerivationKey: "b".repeat(64) };
|
||||
expect(getCouchDBReplicatorConfigurationIdentity(second)).not.toBe(
|
||||
getCouchDBReplicatorConfigurationIdentity(first)
|
||||
);
|
||||
expect(getObjectStorageReplicatorConfigurationIdentity(second)).not.toBe(
|
||||
getObjectStorageReplicatorConfigurationIdentity(first)
|
||||
);
|
||||
});
|
||||
|
||||
it.each([
|
||||
["couchDB_URI", "https://other.example.test/base"],
|
||||
["couchDB_DBNAME", "other-vault"],
|
||||
|
||||
Reference in new issue
Block a user