store in client

This commit is contained in:
yves committed 2026-11-20 22:54:13 +01:00
1 parent 64ee239d1d
commit a520ddb557
10 files changed
+575 -347

No files matched your search

+21
View File
@@ -160,6 +160,21 @@ meow alice send bob "ab2?" >/dev/null
expect "alice" "[bob] ba2?" meow alice longpoll --wait 5 --exit
expect "bob" "[alice] ab2?" meow bob longpoll --wait 5 --exit
# ── hidden contact ──
step "HIDDEN CONTACT"
expect "hide" "remote is now hidden" meow bob contact hide remote --space-password hide-me
OUT="$(meow bob contact list)"; printf '%s\n' "$OUT" | sed 's/^/ /'
if grep -q '^remote' <<<"$OUT"; then red "hidden contact listed without its password"; exit 1; fi
expect "listed with its password" "[hidden]" meow bob -u hide-me contact list
expect "a wrong space password is silent" "alice" meow bob -u not-it contact list
meow remote send bob "to the hidden side" >/dev/null
OUT="$(meow bob)"
if grep -qF "to the hidden side" <<<"$OUT"; then red "hidden contact polled without its password"; exit 1; fi
expect "received once unlocked" "[remote] to the hidden side" meow bob -u hide-me
expect "reply from the hidden side" "sent to remote" meow bob -u hide-me send remote "hidden reply"
expect "remote gets it" "[bob] hidden reply" meow remote
expect "history kept" "[remote] hello from remote" meow bob -u hide-me history remote
# ── resilience: one server down ──
step "ONE SERVER DOWN"
kill "${PIDS[1]}"; wait "${PIDS[1]}" 2>/dev/null || true; PIDS[1]=""
@@ -169,4 +184,10 @@ expect "receive with one server down" "[bob] still here" meow alice 2>/dev/null
step "HISTORY"
expect "history" "[alice] hi bob" meow bob history alice
step "PASSWORD CHANGE"
expect "change" "password changed" meow alice identity password --new-password new-pass
expect "old password refused" "cannot open identity" \
bash -c "'$MEOW_BIN' -i '$WORK/alice.mwid2' identity show 2>&1 || true"
expect "new password accepted" "nickname: alice" meow alice -p new-pass identity show
green "ALL E2E TESTS PASSED"