[deploy] Calls: the VM test takes uclient's refusal in either of its words
ci / check (pull_request) Failing after 52s

This commit is contained in:
2026-12-03 09:56:20 +01:00
parent 3c10691574
commit 1b15845c97
+4 -1
View File
@@ -108,7 +108,10 @@ pkgs.testers.runNixOSTest {
# The output goes into the message: Nix keeps only the last lines of a failed test's log.
assert received and int(received[-1]) > 0, "no packet came back through coturn: " + out[-2500:]
refused = client.fail(uclient.format(b64(os.urandom(20))) + " 2>&1")
assert "401" in refused, "a wrong password was not refused with 401: " + refused[-2500:]
# The same command with the right password just worked, so the refusal is the password's. uclient says so as
# `error 401`, or, when it keeps answering the challenge, `Cannot complete Allocation`.
assert "error 401" in refused or "Cannot complete Allocation" in refused, (
"a wrong password was not refused: " + refused[-2500:])
assert call("GET", "/v0/mailboxes/" + mid + "/blobs?wait=1", token=fetch) == "200"
# Refusals: a wrong token, a malformed id, a body that is not JSON.