metube: media/metube optional — the second-drive copy carries the downloads, off-site does not (D44 #25, felhom.eu R-1283; ported from drill 6733764); check-download-binds allows optional for a NAMED ruling only, with decoys
gates / gates (push) Successful in 56s

This commit is contained in:
admin committed 2026-10-26 09:12:22 +01:00
1 parent cd0cf48fab
commit 73c165d60f
4 files changed
+23 -2

No files matched your search

+4
View File
@@ -923,6 +923,10 @@ def download_binds_cases():
run("FACT: `class: excluded` only in a COMMENT, the field optional", {"dl/docker-compose.yml": compose([dl]), "dl/.felhom.yml": felhom([("media/dl", "optional")], comment=" # - path: media/dl\n # class: excluded\n")}, 1, ("optional",))
run("FACT: a /watch sub-folder optional under an excluded parent", {"dl/docker-compose.yml": compose([dl, "${USERDATA_PATH}/media/dl/watch:/watch"]), "dl/.felhom.yml": felhom([("media/dl", "excluded"), ("media/dl/watch", "optional")])}, 1, ("media/dl/watch",))
run("FACT: a target below /downloads", {"dl/docker-compose.yml": compose(["${USERDATA_PATH}/media/done:/downloads/complete"]), "dl/.felhom.yml": felhom([("media/done", "optional")])}, 1, ("media/done",))
mt = "${USERDATA_PATH}/media/metube:/downloads"
run("GENUINE (R-1283): metube's folder optional by ruling", {"metube/docker-compose.yml": compose([mt]), "metube/.felhom.yml": felhom([("media/metube", "optional")])}, 0, ("every one",))
run("FACT (R-1283): metube's folder mandatory — the ruling allows optional only", {"metube/docker-compose.yml": compose([mt]), "metube/.felhom.yml": felhom([("media/metube", "mandatory")])}, 1, ("templates/metube", "mandatory"))
run("FACT (R-1283): metube's folder UNLISTED", {"metube/docker-compose.yml": compose([mt]), "metube/.felhom.yml": felhom([("media/other", "excluded")])}, 1, ("UNLISTED",))
run("FACT: no download bind anywhere (nothing to judge)", {"dl/docker-compose.yml": compose(["${USERDATA_PATH}/media:/media:ro"]), "dl/.felhom.yml": felhom([("media", "excluded")])}, 3, ("nothing to judge",))
run("FACT: no templates/ at all (nothing to judge)", {}, 3, ("nothing to judge",), no_templates=True)
finally: