Publication atomique du catalogue par lien symbolique, droits du volume, repli sur le catalogue de l'image
build / Garde-fou (pull_request) Successful in 11s
build / Images Harbor (catalog-sync, Dockerfile.catalog-sync) (pull_request) Skipped
build / Images Harbor (web, Dockerfile) (pull_request) Skipped
build / Images Harbor (catalog-sync, Dockerfile.catalog-sync) (push) Successful in 9m49s
build / Garde-fou (push) Successful in 10s
build / Images Harbor (web, Dockerfile) (push) Successful in 11m25s

This commit is contained in:
hcornet committed 2026-09-10 13:39:42 +02:00
1 parent c51a6379bd
commit 5f76b08ae6
9 files changed
+126 -38

No files matched your search

+15
View File
@@ -76,3 +76,18 @@ def test_api_de_generation():
def test_sante():
reponse = create_app().test_client().get("/sante")
assert reponse.get_json()["statut"] == "ok"
def test_repli_sur_le_catalogue_de_l_image(tmp_path, monkeypatch):
"""Un volume vide ne doit jamais donner un site sans aucun pack."""
import importlib
monkeypatch.setenv("ENCLUME_CATALOG", str(tmp_path))
monkeypatch.setenv("ENCLUME_CATALOG_FALLBACK", "catalog")
import enclume.webapp as webapp
importlib.reload(webapp)
reponse = webapp.create_app().test_client().get("/sante")
donnees = reponse.get_json()
assert donnees["packs"] >= 20
assert donnees["source_catalogue"] == "catalog"