Verify domain definition projection against pinned frontend source
Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a0e241-8285-7a63-8c0c-51c9cb824dc3
This commit is contained in:
parent
c12a8fbcfb
commit
68063cc57a
4 changed files with 42 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue