Compare commits
No commits in common. "d36a3ea615cb1b4964a6a2392f39b41dc7f350cf" and "7ddb88b54ee34a53af003a9f57e695827dd689d4" have entirely different histories.
d36a3ea615
...
7ddb88b54e
2 changed files with 0 additions and 3 deletions
1
app.py
1
app.py
|
|
@ -3402,7 +3402,6 @@ class MediaHandoffPayload(BaseModel):
|
|||
directory: str | None = Field(None, max_length=1000)
|
||||
release: str | None = Field(None, max_length=500)
|
||||
cleanName: str | None = Field(None, max_length=500)
|
||||
expectedFiles: int | None = Field(None, ge=1, le=100)
|
||||
jobId: str | None = Field(None, max_length=80)
|
||||
reason: str | None = Field(None, max_length=300)
|
||||
|
||||
|
|
|
|||
|
|
@ -81,14 +81,12 @@ def test_media_handoff_proxies_strict_category_contract(monkeypatch):
|
|||
"directory": "/usenet/complete/serien4k/Show.S01E01",
|
||||
"release": "Show.S01E01-GRP",
|
||||
"cleanName": "Show S01E01",
|
||||
"expectedFiles": 2,
|
||||
},
|
||||
)
|
||||
assert response.status_code == 200
|
||||
assert response.json()["state"] == "registered"
|
||||
assert captured["url"] == "http://n8n:5678/webhook/media-handoff"
|
||||
assert captured["json"]["category"] == "serien4k"
|
||||
assert captured["json"]["expectedFiles"] == 2
|
||||
|
||||
|
||||
def test_media_handoff_rejects_untrusted_caller_before_proxy(monkeypatch):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue