diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-09-23 18:16:02 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-09-23 18:16:02 +0200 |
| commit | 1d169141f3a5542efda2f7fdb0bb88308c06191b (patch) | |
| tree | 86162905ad819d8c9dd325ccf9629bcdacc50bbf /packages/meshbay-node/tests/test_cli_dispatch.py | |
| parent | 35a7764db3f58a93c32206cb3ce74bb2f03967e7 (diff) | |
| download | meshbay-1d169141f3a5542efda2f7fdb0bb88308c06191b.tar.gz | |
feat(node): member invite --link and member cancel in the CLI
The CLI makes both halves itself — the node's code, then the hub's
ticket bound to the address — and prints the link; a refused ticket
takes the code back, and cancel takes back both. The CLI never asks the
hub to mail.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-node/tests/test_cli_dispatch.py')
| -rw-r--r-- | packages/meshbay-node/tests/test_cli_dispatch.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/meshbay-node/tests/test_cli_dispatch.py b/packages/meshbay-node/tests/test_cli_dispatch.py index cf2fd6e..a0b2a64 100644 --- a/packages/meshbay-node/tests/test_cli_dispatch.py +++ b/packages/meshbay-node/tests/test_cli_dispatch.py @@ -38,6 +38,8 @@ VERBS = [ ["gek-init"], ["member", "list"], ["member", "invite", "bob"], + ["member", "invite", "bob@example.test", "--link"], + ["member", "cancel", "ab" * 16], ["member", "revoke", "bob"], ["member", "unpin", "bob"], # Removed, and it has to say so rather than offering a username for a verb @@ -91,6 +93,7 @@ def stub_daemon(monkeypatch, tmp_path): "groups": [], "files": [], "identities": [], "members": [], "invites": [], "users": [], "jtis": [], "count": 0, "removed": 0, "subject": "all", "code": "TEST-CODE", "expires_at": "", + "link": "https://example.invalid/#/invite?v=1", "invite_id": "ab" * 16, "user_id": "u", "authorized_members": 0, "errors": [], "name": "g", "group_id": "g", "shared_dir": str(tmp_path), "config": str(tmp_path / "node.toml"), |