feat(cli): add cmd 'sync asset download'

This commit is contained in:
rcmerci
2026-05-08 15:22:54 +08:00
parent c5775df851
commit 08a479f2c8
15 changed files with 1646 additions and 10 deletions

View File

@@ -189,6 +189,21 @@
{:random-seed "424242",
:random-page "SyncRandomOpsHome",
:rounds-per-client "40"}}
{:tags [:happy-path :asset-download :a-to-b],
:extends :sync/common,
:setup
["printf '{{asset-payload}}' > '{{tmp-dir}}/sync-asset-download.txt'"
"{{cli-home}} --root-dir {{root-dir-arg}} --config {{config-path-arg}} --output json upsert asset --graph {{graph-arg}} --path '{{tmp-dir}}/sync-asset-download.txt' --content '{{asset-title}}' --target-page Home >/dev/null"],
:cmds
["HOME='{{tmp-dir}}/home' python3 '{{repo-root}}/cli-e2e/scripts/sync_asset_download.py' --cli '{{repo-root}}/static/logseq-cli.js' --graph '{{graph}}' --asset-title '{{asset-title}}' --config-b '{{tmp-dir}}/cli-b.edn' --root-dir-b '{{tmp-dir}}/graphs-b'"],
:id "sync-asset-download-a-to-b",
:graph "sync-e2e-asset-download-a-to-b",
:vars
{:asset-title "Sync Asset Download Asset"
:asset-payload "sync-asset-download-payload"},
:covers
{:commands ["upsert asset" "query" "sync asset download"],
:options {:sync ["--id" "--uuid"]}}}
{:tags [:stress :offline :bidirectional :random :block-ops],
:extends :sync/common,
:setup

View File

@@ -9,5 +9,6 @@
:sync
{:commands ["sync upload"
"sync download"
"sync asset download"
"sync status"]
:options []}}}