test: valid-shape Telegram token in port-binding guard fixture
The #62803 branch predates PR #64636's Telegram token-shape validation on the messaging platform PUT endpoint; align the new guard test's fixture with the validated format.fix/verification-admin-route-recovery
parent
e984a61306
commit
fe2d847aca
|
|
@ -367,7 +367,7 @@ class TestMultiplexPortBindingGuard:
|
||||||
resp = client.put(
|
resp = client.put(
|
||||||
"/api/messaging/platforms/telegram",
|
"/api/messaging/platforms/telegram",
|
||||||
params={"profile": "worker_alpha"},
|
params={"profile": "worker_alpha"},
|
||||||
json={"enabled": True, "env": {"TELEGRAM_BOT_TOKEN": "worker-token"}},
|
json={"enabled": True, "env": {"TELEGRAM_BOT_TOKEN": _VALID_WORKER_BOT_TOKEN}},
|
||||||
)
|
)
|
||||||
assert resp.status_code == 200
|
assert resp.status_code == 200
|
||||||
cfg = yaml.safe_load(
|
cfg = yaml.safe_load(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue