lighthouse: restore checker-compatible public filter compilation

This commit is contained in:
shira committed 2026-10-25 11:12:13 +03:00
1 parent 76b5e01dac
commit 143182a27c
3 files changed
+4 -7

No files matched your search

+2 -3
View File
@@ -127,11 +127,10 @@ def main():
api("POST", path + "/messages", {"message": "bmV3IHN5bnRoZXRpYyBtZXNzYWdl"}, expected=201)
check(len(api("GET", path + "/messages", key=queue["read_key"])["messages"]) == 1,
"old active filter rejected a normal new message")
api("POST", path + "/filter", {"source": SOURCE, "label": "post restart"}, expected=403)
public_compiled = api("POST", path + "/filter", {"source": SOURCE, "label": "post restart"})
check(public_compiled["ok"] is True, "public filter compilation contract changed")
api("POST", "/api/queues/00000000-0000-0000-0000-000000000000/filter",
{"source": SOURCE, "label": "missing queue"}, expected=404)
api("POST", path + "/filter", {"source": SOURCE, "label": "post restart"},
key="0" * 48, expected=403)
compiled = api("POST", path + "/filter", {"source": SOURCE, "label": "post restart"},
key=queue["read_key"])
check(compiled["ok"] is True, "compilation contract changed after restart")