- Exercise DPAPI-backed server and channel passwords from the normal Slint bookmark UI. - Run isolated password controls, cancellation and stale lookup rejection against the disposable beta14 fixture.
2.3 KiB
Protected bookmark on Windows beta14
smoke::bookmark_schema::protected_bookmark_restarts_and_rechecks_lookup_target_on_beta14 exercises the native preload:connectBookmark contract on a disposable loopback TeamSpeak Server 6.0.0-beta14 fixture. The runner bootstraps a password-protected server and a separate password-protected, non-default room, confirms both protections, and disables Query before running the exact test. The generated passwords are distinct and passed only to the test process, not placed on its command line or recorded in the receipt.
The normal Slint bookmark editor saved both passwords to Windows DPAPI. The smoke reopened the same disposable profile and activated the rendered bookmark row. It checked the selected vault identity in core connection state and the nickname and protected room in the initiator's server-fed own-client roster. Separate saved bookmarks swapping one password at a time showed that the channel password did not admit server login, and the server password did not admit the protected channel. The required legacy re-entry prompt cancelled with zero bookmark Connect dispatches and no session change.
The stale case paused the result of a real DPAPI server-password lookup. A second activation connected the same tab with a new generation while the original request was paused. Releasing the old result returned target_changed, kept the replacement in the protected room, and did not dispatch an extra Connect. The test pauses only local delivery of the lookup result; it does not mock the join or delay network traffic.
Windows integration receipt: target/protected-bookmark-beta14.log: 1 passed, 0 failed, 0 ignored; 15.14 s. The test removed its client profile, the runner removed the server runtime, and independent teardown found zero fixture listeners (UDP 19987, TCP 30053 and 19080) and zero disposable temp directories. Startup microphone-only mute and acknowledgement ordering are covered separately in the bookmark schema evidence; this run covers manual activation. Headless Slint uses the ordinary UI binding but skips HWND-dependent attachment. No physical audio devices, independent peer readback, mobile secret store, or public server were tested.