fix(editorial): upgrade only verified installed runtime payload
Deploy Canina / deploy (push) Failing after 2m51s
Deploy Canina / deploy (push) Failing after 2m51s
This commit is contained in:
1 parent
f94ef580fb
commit
cc0358bb12
4 files changed
+129
-4
No files matched your search
@@ -15,6 +15,9 @@ ALLOWED = {'nginx.conf', 'Dockerfile', 'backend/Dockerfile', '.dockerignore',
|
||||
'scripts/provision-revalidation-env.py', 'scripts/tests/test_revalidation_runtime.py',
|
||||
'scripts/tests/test_ci_host_boundary.py', 'scripts/tests/test_stage_provision_wiring.py',
|
||||
'scripts/tests/test_stage_rollout.py',
|
||||
# CI1285 verified-payload upgrade repair; no model, cron or payload wildcard.
|
||||
'infra/hermes-editorial/installer.py',
|
||||
'infra/hermes-editorial/tests/test_installer.py',
|
||||
'backend/src/common/revalidation/revalidation.service.ts',
|
||||
'backend/src/common/revalidation/revalidation.service.spec.ts',
|
||||
'backend/src/orchestration-worker/worker-registration.spec.ts',
|
||||
|
||||
@@ -26,6 +26,18 @@ class ProductionGuards(unittest.TestCase):
|
||||
r['paths']=[path]
|
||||
with self.assertRaises(ValueError): m.validate_receipt(r,'a'*40,'b'*40,[path])
|
||||
|
||||
def test_exact_editorial_installer_repair_paths_allowed_only(self):
|
||||
paths = ['infra/hermes-editorial/installer.py',
|
||||
'infra/hermes-editorial/tests/test_installer.py']
|
||||
r = self.receipt(); r['paths'] = paths
|
||||
m.validate_receipt(r, 'a'*40, 'b'*40, paths)
|
||||
for path in ['infra/hermes-editorial/model-policy.json',
|
||||
'infra/hermes-editorial/payload/editorial-v4/status.json',
|
||||
'infra/hermes-editorial/other.py']:
|
||||
r['paths'] = [path]
|
||||
with self.assertRaises(ValueError):
|
||||
m.validate_receipt(r, 'a'*40, 'b'*40, [path])
|
||||
|
||||
def test_exact_stage_sha(self):
|
||||
r=self.receipt()
|
||||
m.validate_receipt(r, 'a'*40, 'b'*40, ['nginx.conf'])
|
||||
|
||||
Reference in new issue
Block a user