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
@@ -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