Files
client/docs/evidence/official-parity/channel-fetch-banner-beta14.md
T
omar 87cfa59252 test: verify live beta14 channel banner fetch
Reject zero channel IDs at the fetch_banner command boundary. Verify exact classic download bytes and rendered Slint row pixels, permission refusal, missing-file fallback and stale-reference rejection on disposable loopback beta14.
2026-11-28 10:04:25 +03:00

3.8 KiB

Windows beta14 command:fetch_banner receipt

Base: b370474999 on work/integration-verified. The compatibility entry requires a positive channel ID, rejection of unknown fields, server-authorized fetching, selected-channel artwork, and a fallback on missing or failed artwork without opening arbitrary URLs.

Pass on private classic beta14. The runner seeded an 8 x 2 PNG in disposable classic storage and advertised a ts3image:// reference on the scratch channel. A real native guest retrieved the exact 74 bytes, MIME image/png, SHA-256 fbedfd286063b8b7ad2108d4c6b67107330671d3b8fa88a89bfb2a94b6aa92bc. The selected channel row painted RGB [213, 37, 107]; its neighbor stayed [27, 35, 54] and the selection outline stayed [21, 136, 250].

  • The same PNG in a restricted channel returned beta14's PermissionsClientInsufficient; the fixture did not override that restriction.
  • A channel without a banner returned not_found. A missing file returned beta14's FileNotFound. Changing the reference removed the old image without changing the adjacent row or selection outline, and replaying the former token did not restore it.
  • An advertised .invalid HTTPS URL did not produce a Slint tree fetch action. Calling the core returned external_media. The runtime was isolated with public network services and OS actions disabled; the test-only switch enabled the real banner request on the fixed loopback session. No HTTP or browser navigation was used.
  • The parser test accepted a positive channel ID and rejected a missing, zero, negative, fractional, or string ID and an extra url field. The live test also rejected a typed zero ID as bad_request.

The live test passed in 34.59 s (1 passed, 824 filtered out); the core parser test passed (1 passed, 261 filtered out). The runner stopped the server and removed its private runtime. The post-run check found zero listeners on UDP 19987 and TCP 30053/19080 and zero matching private runtime directories. Local logs: target/fetch-banner-live-3.log, target/fetch-banner-protocol.log. Screenshots: target/fetch-banner-live/fetch-banner-live.png and target/fetch-banner-live/fetch-banner-missing.png.

This receipt covers only command:fetch_banner on Windows classic beta14. It does not claim a command:fetch_server_banner or preference:showChannelBanners pass, HTTP image fetching, a cross-session or late in-flight network response test, or S3/HTTPFT parity. The stale case here is a token for a live channel whose advertised reference was replaced. Compatibility status entries were left unchanged.

Reproduce

Use a staged Windows beta14 release and pinned WebRTC. Keep UDP 19987 and TCP 30053/19080 free. The runner uses private temporary state and an ephemeral bootstrap key; Query is off while the client test runs.

$env:TEAMSPEACH_BETA14_RELEASE = 'C:/path/to/staged/beta14/release'
$env:LK_CUSTOM_WEBRTC = 'C:/path/to/pinned/webrtc'
$env:CARGO_TARGET_DIR = Join-Path $PWD 'target'
$env:TEAMSPEACH_CHANNEL_BANNER_EVIDENCE = Join-Path $PWD 'target/fetch-banner-live'
$runner = (Resolve-Path 'native/tests/fixtures/beta14-server-admin.ps1').Path
$env:CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_RUNNER = "powershell.exe -NoProfile -ExecutionPolicy Bypass -File $runner"
cargo test --offline --locked --target x86_64-pc-windows-msvc -p teamspeach-native --no-default-features --features webrtc,test-harness --lib -- --include-ignored --test-threads=1 --nocapture --exact smoke::channel_banners::live::fetch_banner_renders_classic_beta14_channel_row
Remove-Item Env:CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_RUNNER
cargo test --offline --locked --target x86_64-pc-windows-msvc -p teamspeach-core --lib protocol::tests::fetch_banner_requires_only_a_positive_channel_id -- --exact

Use a worktree path without spaces for the Cargo runner variable.