[deploy] Calls: the VM test takes uclient's refusal in either of its words
ci / check (pull_request) Failing after 52s
ci / check (pull_request) Failing after 52s
This commit is contained in:
@@ -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.
|
# 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:]
|
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")
|
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"
|
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.
|
# Refusals: a wrong token, a malformed id, a body that is not JSON.
|
||||||
|
|||||||
Reference in New Issue
Block a user