Verify domain definition projection against pinned frontend source
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s
Build and Publish Container Image / build-and-push (push) Successful in 20s

Assistant: codex
Assistant-Model: gpt-6-astra
Assistant-Session: 01a0e241-8285-7a63-8c0c-51c9cb824dc3
This commit is contained in:
tegwick 2026-09-27 15:26:04 +02:00
parent c12a8fbcfb
commit 68063cc57a
4 changed files with 42 additions and 2 deletions

View file

@ -62,3 +62,13 @@ def test_refuses_authority_expansion(change):
elif change=='tag':c['image']='forgejo.coulomb.social/coulomb/activity-core:latest'
else:after.pop()
with pytest.raises(ValueError):load('check_gitops_promotion').validate(before,after,evidence,now)
def test_frontend_projection_checks_content_and_pin(tmp_path):
renderer=load('render_gitops')
cm=next(d for d in yaml.safe_load_all(renderer.render()) if d['metadata']['name']=='actcore-external-activity-definitions')
for name,body in cm['data'].items():
if name.startswith('frontend-patterns-'): (tmp_path/name).write_text(body)
renderer.verify_frontend(tmp_path)
(tmp_path/'frontend-patterns-daily.md').write_text('tampered')
with pytest.raises(ValueError): renderer.verify_frontend(tmp_path)