Skip to content

Commit 34e782f

Browse files
authored
Authenticator sync (#496)
* Draft authenticator sync test spec. The merge_folder() function now also returns the decoded WriteEvent events on the client implementation. * Improve authenticator sync test spec. * Diff only respects is_sync_disabled() client-side. Otherwise enabling sync for an authenticator after it was disabled will result in an empty event log on the newly synced device as the server would not return the data. * Update prost/prost-build to v0.13. * Update lock file. * Create failing test case for sign in. When no folder password exists. * Update signature for find_folder_password(). * Tidy error variant. * No folder password test spec now passes. * Switch to nextest, update github action. Halves the execution time for tests. * Tweak checks workflow for PR. * Revert PR trigger for workflow. * Invert is_client to is_server. So that local folders with NO_SYNC flag will be sent to the server but wouldn't be included in the diff sent to clients. * Use LOCAL flag to indicate a folder is local first. * Update no_sync test spec for inverted condition. * Use pending directory for LOCAL folder stubs. So that other client devices can respond to AccountEvent::CreateFolder when a LOCAL folder is created on another device by creating stub files in the pending directory. When a merge is attempted on a folder we first try to promote the folder in case it is pending. This allows the NO_SYNC flag to backup folders to remote server(s) but not share the contents with other devices until the NO_SYNC flag is removed. * Update condition for is_local_folder. * Fix handling of NO_SYNC flag, update test spec. * Do not support remove_local_folder(). * Support authenticator migrate import/export zip archive. * Tidy obsolete constant in test spec. * Move commands to tools command. * Add tools authenticator command. Supports export and import of unencrypted TOTP secrets. * Update lock file. * Bump patch version. * Update lock file.
1 parent 90a64ef commit 34e782f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1169
-472
lines changed

.github/workflows/checks.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Checks
22

33
on:
44
workflow_call:
5-
#pull_request:
5+
# pull_request:
66

77
env:
88
RUST_TEST_TIME_INTEGRATION: "120000,300000"
@@ -50,10 +50,10 @@ jobs:
5050
security list-keychains -s $HOME/Library/Keychains/sos-mock.keychain-db
5151
security list-keychains
5252
53-
- name: Install cargo-make
54-
run: |
55-
cargo install cargo-make
53+
- uses: taiki-e/install-action@v2
54+
with:
55+
tool: nextest
5656

5757
- name: Run tests
5858
run: |
59-
cargo make test-lite
59+
cargo nextest run

0 commit comments

Comments
 (0)